Moses::FactorCollection Class Reference

#include <FactorCollection.h>

Collaboration diagram for Moses::FactorCollection:

Collaboration graph
[legend]

List of all members.

Classes

struct  EqualsFactor
struct  HashFactor

Public Member Functions

 ~FactorCollection ()
const FactorAddFactor (const StringPiece &factorString)
const FactorAddFactor (FactorDirection, FactorType, const StringPiece &factorString)
 TO_STRING ()

Static Public Member Functions

static FactorCollectionInstance ()

Friends

std::ostream & operator<< (std::ostream &, const FactorCollection &)


Detailed Description

collection of factors

All Factors in moses are accessed and created by a FactorCollection. By enforcing this strict creation processes (ie, forbidding factors from being created on the stack, etc), their memory addresses can be used as keys to uniquely identify them. Only 1 FactorCollection object should be created.

Definition at line 60 of file FactorCollection.h.


Constructor & Destructor Documentation

Moses::FactorCollection::~FactorCollection (  ) 

Definition at line 69 of file FactorCollection.cpp.


Member Function Documentation

const Factor* Moses::FactorCollection::AddFactor ( FactorDirection  ,
FactorType  ,
const StringPiece factorString 
) [inline]

Definition at line 112 of file FactorCollection.h.

References AddFactor().

Here is the call graph for this function:

const Factor * Moses::FactorCollection::AddFactor ( const StringPiece factorString  ) 

static FactorCollection& Moses::FactorCollection::Instance (  )  [inline, static]

Moses::FactorCollection::TO_STRING (  ) 


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const FactorCollection  
) [friend]


The documentation for this class was generated from the following files:

Generated on Wed Feb 8 23:04:10 2012 for Moses by  doxygen 1.5.9