Moses::FactorFriend Struct Reference
List of all members.
We don't want Factor
to be copyable by anybody. But we also want to store it in an STL container. The solution is that Factor's copy constructor is private and friended to FactorFriend
. The STL containers can delegate copying, so friending the container isn't sufficient. STL containers see FactorFriend's public copy constructor and everybody else sees Factor's private copy constructor.
Definition at line 56 of file FactorCollection.h.
Member Data Documentation
The documentation for this struct was generated from the following file: