oasys::TypeCollection Class Reference

#include <TypeCollection.h>

Inheritance diagram for oasys::TypeCollection:

oasys::TypeCollectionInstance< _Collection > List of all members.

Detailed Description

Generic base class for templated type collections.

Definition at line 128 of file TypeCollection.h.

Public Types

enum  { UNKNOWN_TYPE = 0xffffffff }
typedef u_int32_t TypeCode_t
 Typedef for type codes.
typedef int(*) Allocator_t (TypeCode_t typecode, SerializableObject **data)
 Typedef for an allocator function usable as a callback.

Public Member Functions

 TypeCollection ()
void reg (TypeCode_t typecode, TypeCollectionHelper *helper)
const char * type_name (TypeCode_t typecode)
 Return the stringified type code.

Protected Attributes

std::map< TypeCode_t, TypeCollectionHelper * > dispatch_


Member Typedef Documentation

typedef u_int32_t oasys::TypeCollection::TypeCode_t

Typedef for type codes.

Definition at line 131 of file TypeCollection.h.

typedef int(*) oasys::TypeCollection::Allocator_t(TypeCode_t typecode, SerializableObject **data)

Typedef for an allocator function usable as a callback.

Definition at line 138 of file TypeCollection.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
UNKNOWN_TYPE 

Definition at line 133 of file TypeCollection.h.


Constructor & Destructor Documentation

oasys::TypeCollection::TypeCollection (  )  [inline]

Definition at line 141 of file TypeCollection.h.


Member Function Documentation

void oasys::TypeCollection::reg ( TypeCode_t  typecode,
TypeCollectionHelper helper 
) [inline]

Definition at line 143 of file TypeCollection.h.

References ASSERT, and dispatch_.

const char* oasys::TypeCollection::type_name ( TypeCode_t  typecode  )  [inline]

Return the stringified type code.

Definition at line 151 of file TypeCollection.h.

References dispatch_.


Member Data Documentation

std::map<TypeCode_t, TypeCollectionHelper*> oasys::TypeCollection::dispatch_ [protected]

Definition at line 160 of file TypeCollection.h.

Referenced by oasys::TypeCollectionInstance< _Collection >::new_object(), reg(), and type_name().


The documentation for this class was generated from the following file:
Generated on Fri Dec 22 14:48:07 2006 for DTN Reference Implementation by  doxygen 1.5.1