Reranker Framework (ReFr)
Reranking framework for structure prediction and discriminative language modeling
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
reranker::MemberInitializer Class Referenceabstract

An interface for initializers of members of a Factory-constructible object. More...

#include <factory.H>

Inheritance diagram for reranker::MemberInitializer:
reranker::TypedMemberInitializer< T >

Public Member Functions

 MemberInitializer (const string &name, bool required)
 
virtual ~MemberInitializer ()
 
virtual string Name ()
 
virtual void Init (StreamTokenizer &st, Environment *env)=0
 
virtual int Initialized () const
 Returns the number of times this member initializer’s Init method has been invoked. More...
 
virtual bool Required () const
 

Protected Attributes

string name_
 The name of this member. More...
 
int initialized_
 The number of times this member initializer’s Init method has been invoked. More...
 
bool required_
 Whether this member is required to be initialized. More...
 

Detailed Description

An interface for initializers of members of a Factory-constructible object.

Definition at line 155 of file factory.H.

Constructor & Destructor Documentation

reranker::MemberInitializer::MemberInitializer ( const string &  name,
bool  required 
)
inline

Definition at line 157 of file factory.H.

virtual reranker::MemberInitializer::~MemberInitializer ( )
inlinevirtual

Definition at line 159 of file factory.H.

Member Function Documentation

virtual void reranker::MemberInitializer::Init ( StreamTokenizer st,
Environment env 
)
pure virtual
virtual int reranker::MemberInitializer::Initialized ( ) const
inlinevirtual

Returns the number of times this member initializer’s Init method has been invoked.

Definition at line 164 of file factory.H.

virtual string reranker::MemberInitializer::Name ( )
inlinevirtual

Definition at line 160 of file factory.H.

virtual bool reranker::MemberInitializer::Required ( ) const
inlinevirtual

Definition at line 165 of file factory.H.

Member Data Documentation

int reranker::MemberInitializer::initialized_
protected

The number of times this member initializer’s Init method has been invoked.

Definition at line 171 of file factory.H.

string reranker::MemberInitializer::name_
protected

The name of this member.

Definition at line 168 of file factory.H.

bool reranker::MemberInitializer::required_
protected

Whether this member is required to be initialized.

Definition at line 173 of file factory.H.


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