Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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 45 of file ShTypeInfo.hpp.


The documentation for this struct was generated from the following files:
Generated on Wed Jun 15 18:16:39 2005 for Sh by  doxygen 1.4.3-20050530