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 | List of all members
reranker::TypeName< T > Class Template Reference

We use the templated class TypeName to be able to take an actual C++ type and get the type name string used by the Interpreter and Environment classes. More...

#include <factory.H>

Public Member Functions

string ToString ()
 

Detailed Description

template<typename T>
class reranker::TypeName< T >

We use the templated class TypeName to be able to take an actual C++ type and get the type name string used by the Interpreter and Environment classes.

This is so that the Init method of the TypedMemberInitializer class, defined below, can give the Environment::ReadAndSet method an explicit type name of the data member is about to read and set.

The basic implementation here works for Factory-constructible types, returning the result of the Factory::BaseName method for an instance of Factory<T>.

Definition at line 77 of file factory.H.

Member Function Documentation

template<typename T >
string reranker::TypeName< T >::ToString ( )
inline

Definition at line 79 of file factory.H.


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