Moses::FactorFriend Struct Reference

#include <FactorCollection.h>

Collaboration diagram for Moses::FactorFriend:

Collaboration graph

List of all members.

Public Attributes

Factor in

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:

Generated on Thu Jul 6 00:32:59 2017 for Moses by  doxygen 1.5.9