Moses::FactorFriend Struct Reference
#include <FactorCollection.h>
List of all members.
Detailed Description
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: