InFact
Interpreter and factory for easily creating C++ objects at run-time
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
infact::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 infact::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 154 of file factory.h.

Member Function Documentation

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

Definition at line 156 of file factory.h.


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