Free Electron
Public Member Functions | Private Attributes | List of all members
fe::TypeMaster Class Reference

Run time C++ type management. More...

#include <TypeMaster.h>

Inheritance diagram for fe::TypeMaster:
Inheritance graph
[legend]

Public Member Functions

template<class T >
sp< BaseTypelookupType (void)
 
sp< BaseTypelookupType (const TypeInfo &typeInfo)
 
void dumpTypes (void) const
 
Result addTypeLoader (sp< TypeLoader > a_spTypeLoader)
 
Result loadType (String a_name)
 
template<class Converter , class In , class Out >
void registerConversion (void)
 
template<class In , class Out >
void nativeConversion (void)
 
void registerConversion (sp< TypeConversion > spConv, sp< BaseType > spInType, sp< BaseType > spOutType)
 
sp< BaseTypelookupName (const String &name)
 
sp< BaseTypelookupNameLoaded (const String &name)
 
String lookupBaseType (const sp< BaseType > &type)
 
template<class In , class Out >
sp< TypeConversion > lookupConversion (void)
 
void reverseLookup (sp< BaseType > basetype, std::list< String > &names)
 
String reverseLookup (sp< BaseType > basetype)
 
sp< TypeConversion > lookupConversion (sp< BaseType > spInType, sp< BaseType > spOutType)
 
void peek (Peeker &peeker)
 
template<class T >
sp< BaseTypeassertType (const String &name)
 
template<class T >
sp< BaseTypeassertType (void)
 
template<class T , class Info >
sp< BaseTypeassertTypeInfo (const String &name)
 
template<class T >
sp< BaseTypeassertPtr (const String &name)
 
const Stringname (void) const
 
sp< BaseTypeassertTypeInternal (const TypeInfo &typeInfo, sp< BaseType > spT, const String &name)
 
template<class T >
Result input (String a_buffer, T &a_value)
 serialize String buffer into value More...
 
template<class T >
Result output (T &a_value, String &a_buffer)
 serialize value into String buffer More...
 
- Public Member Functions inherited from fe::Counted
virtual void acquire (void)
 Increment the reference count. More...
 
virtual void acquire (int &rCount)
 Increment the reference count (and get the count) More...
 
virtual void release (void)
 Decrement the reference count. More...
 
virtual void abandon (void)
 Decrement the reference count. More...
 
int count (void) const
 Return the count of references. More...
 
void setName (const String &)
 
void trackReference (void *pReference, String what)
 
void untrackReference (void *pReference)
 
void registerRegion (void *pT, U32 bytes)
 

Private Attributes

type_info_map m_hTypeidMap
 
string_type_map m_hNameMap
 
type_string_map m_hTypeMap
 
in_out_converter_map m_hConverter
 
String m_name
 
Array< sp< TypeLoader > > m_typeLoaderArray
 

Additional Inherited Members

- Static Public Member Functions inherited from fe::Counted
static String reportTracker (void)
 
static U32 trackerCount (void)
 
- Protected Member Functions inherited from fe::Counted
int releaseInternal (void)
 Decrement the reference count. More...
 
void suppressReport (void)
 

Detailed Description

Run time C++ type management.

Member Function Documentation

◆ input()

template<class T >
Result fe::TypeMaster::input ( String  a_buffer,
T &  a_value 
)

serialize String buffer into value

◆ lookupConversion()

sp< TypeConversion > fe::TypeMaster::lookupConversion ( sp< BaseType spInType,
sp< BaseType spOutType 
)

◆ output()

template<class T >
Result fe::TypeMaster::output ( T &  a_value,
String a_buffer 
)

serialize value into String buffer


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