AbstractID< Size > Class Template Reference

Generic type for identifiers of an fixed length. More...

#include <AbstractId.h>

List of all members.

Public Member Functions

 AbstractID (const AbstractID< Size > &a)
 AbstractID (unsigned num)
const AbstractID< Size > & operator= (const AbstractID< Size > &a)
AbstractID< Size > & fromArray (const char *data)
 read an identifier from a memory location.
AbstractID< Size > & toArray (char *data) const
 store an identifier in a memory location.
 LEXI_BOOL_OP (==)
 LEXI_BOOL_OP (!=)
 LEXI_BOOL_OP (<)
 LEXI_BOOL_OP (>)
 LEXI_BOOL_OP (<=)
 LEXI_BOOL_OP (>=)

Public Attributes

unsigned char id [size]

Static Public Attributes

static const size_t size = Size
 the storage size of an identifier The size is the storage size of an indtifier, when written with toArray() or read with fromArray().


Detailed Description

template<unsigned Size>
class AbstractID< Size >

Generic type for identifiers of an fixed length.

The AbstractID template allows to define identifier types of an arbitrary, fixed size.


Member Data Documentation

template<unsigned Size>
unsigned char AbstractID< Size >::id[size]

we should better use an valarray<unsigned char>

template<unsigned Size>
const size_t AbstractID< Size >::size = Size [static]

the storage size of an identifier The size is the storage size of an indtifier, when written with toArray() or read with fromArray().

Referenced by AbstractID< Size >::fromArray(), and AbstractID< Size >::toArray().


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

Generated on Fri Mar 27 13:58:26 2009 for AWDS by  doxygen 1.5.8