SH::ShTypeInfo Struct Reference

A holder of information about a data type and how to allocate it. More...

#include <ShTypeInfo.hpp>

Inheritance diagram for SH::ShTypeInfo:

Inheritance graph
[legend]
Collaboration diagram for SH::ShTypeInfo:

Collaboration graph
[legend]
List of all members.

Public Types

typedef ShPairHashMap< ShValueType,
ShDataType, const ShTypeInfo * > 
TypeInfoMap

Public Member Functions

virtual ~ShTypeInfo ()
virtual const char * name () const =0
 Returns a the name of the value type.
virtual int datasize () const =0
 Returns size of type.
virtual const ShVariantFactoryvariantFactory () const =0
 Returns the factory that generates ShVariant objects of this type.

Static Public Member Functions

static void init ()
 Initializes the variant factories, automatic promotions, and other variant casters.
static const ShTypeInfoget (ShValueType valueType, ShDataType dataType)
 Returns the type info with the requested value and data types.

Detailed Description

A holder of information about a data type and how to allocate it.

See also:
ShDataType.hpp

Definition at line 41 of file ShTypeInfo.hpp.


The documentation for this struct was generated from the following files:
Generated on Thu Feb 16 14:57:22 2006 for Sh by  doxygen 1.4.6