Move getters inside the class definition

This should implicitly mark them inline (the c++ book, 4th ed.)