Make "get" methods const

This function does not alter state, so it should be `const`.