
17 Nov
2005
17 Nov
'05
3:23 p.m.
class NamedWholes { public: typedef std::map<std::string,std::Whole> NameWholeMap; typedef Whole::Actions Actions;
void GetAllActions(Actions &actions);
private: NameWholeMap m_nameWholeMap; };
One solution that has come to mind is to remove any Action stuff from NamedWholes and move it to another class that works with Actions and NamedWholes. Although this would most likely solve the circular reference issue, it would also decouple an operation (i.e. a function) on NamedWholes from that class to a helper class, which doesn't seem very object oriented. I am interested in hearing other ideas. Michael Goldshteyn