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 107 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 110 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 117 of file TypeCollection.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
UNKNOWN_TYPE 

Definition at line 112 of file TypeCollection.h.


Constructor & Destructor Documentation

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

Definition at line 120 of file TypeCollection.h.


Member Function Documentation

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

Definition at line 122 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 130 of file TypeCollection.h.

References dispatch_.


Member Data Documentation

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

Definition at line 139 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 Thu Jun 7 12:54:36 2007 for DTN Reference Implementation by  doxygen 1.5.1