Reranker Framework (ReFr)
Reranking framework for structure prediction and discriminative language modeling
|
A container for all the member initializers for a particular Factory-constructible instance. More...
#include <factory.H>
Public Types | |
typedef unordered_map< string, MemberInitializer * > ::const_iterator | const_iterator |
Forward the const_iterator typedef of the internal data structure, to make code compact and readable. More... | |
typedef unordered_map< string, MemberInitializer * > ::iterator | iterator |
Forward the iterator typedef of the internal data structure, to make code compact and readable. More... | |
Public Member Functions | |
Initializers () | |
Constructs a new instance. More... | |
virtual | ~Initializers () |
Destroys this instance. More... | |
template<typename T > | |
void | Add (const string &name, T *member, bool required=false) |
const_iterator | begin () const |
Returns a const iterator pointing to the beginning of the map from member names to pointers to TypedMemberInitializer instances. More... | |
const_iterator | end () const |
Returns a const iterator pointing to the end of the map from member names to pointers to TypedMemberInitializer instances. More... | |
iterator | begin () |
Returns an iterator pointing to the beginning of the map from member names to pointers to TypedMemberInitializer instances. More... | |
iterator | end () |
Returns an iterator pointing to the end of the map from member names to pointers to TypedMemberInitializer instances. More... | |
const_iterator | find (const string &name) const |
Returns a const_iterator pointing to the MemberInitializer associated with the specified name, or else end if no such TypedMemberInitializer exists. More... | |
iterator | find (const string &name) |
Returns an iterator pointing to the MemberInitializer associated with the specified name, or else end if no such TypedMemberInitializer exists. More... | |
A container for all the member initializers for a particular Factory-constructible instance.
This class provides an easy, consistent syntax for Factory-constructible classes to specify which members they want/need initialized by the Factory based on the specification string.
typedef unordered_map<string, MemberInitializer *>::const_iterator reranker::Initializers::const_iterator |
typedef unordered_map<string, MemberInitializer *>::iterator reranker::Initializers::iterator |
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
Returns a const iterator pointing to the beginning of the map from member names to pointers to TypedMemberInitializer instances.
|
inline |
Returns an iterator pointing to the beginning of the map from member names to pointers to TypedMemberInitializer instances.
|
inline |
Returns a const iterator pointing to the end of the map from member names to pointers to TypedMemberInitializer instances.
|
inline |
Returns an iterator pointing to the end of the map from member names to pointers to TypedMemberInitializer instances.
|
inline |
Returns a const_iterator
pointing to the MemberInitializer associated with the specified name, or else end if no such TypedMemberInitializer exists.
|
inline |
Returns an iterator
pointing to the MemberInitializer associated with the specified name, or else end if no such TypedMemberInitializer exists.