Getter のインターフェイスのパターン
- info_t GetInfo() const
- const info_t* GetInfo() const
- const info_t& GetInfo() const
- void GetInfo(info_t* info) const
- void GetInfo(info_t& info) const
- GetInfo()->a, GetInfo.a といった利便性が高い方が良い場合もある
- サンプリングとしての側面を意識させて GetInfo()->a, GetInfo.a を禁止すべき場合もある
- マルチスレッドの場合などその瞬間の情報をコピーして参照する