|
Boost : |
From: Michael Goldshteyn (mgoldshteyn_at_[hidden])
Date: 2005-11-17 10:23:57
> 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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk