DiaDes  0.1
DIAgnosis of Discrete-Event System
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
Diades::Altarica::TypeData Class Reference

#include <Type.hh>

Public Types

typedef Utils::Exception< TypeDataException
 

Public Member Functions

 ~TypeData ()
 
const string & label () const throw (Exception)
 
unsigned code () const
 

Static Public Member Functions

static string typeName ()
 

Private Member Functions

 TypeData (const string &label, unsigned code) throw (Exception)
 
 TypeData (const string &label, const vector< Type > &fields, unsigned code) throw (Exception)
 
 TypeData (const string &label, const StructureFields &fields, unsigned code) throw (Exception)
 

Private Attributes

TypeTemplate _template
 
string _internalLabel
 
unsigned _code
 
union {
   vector< Type > *   _array
 
   map< Identifier, Type > *   _structure
 
_fields
 

Friends

class Type
 
class TypeFactory
 

Detailed Description

Data structure that contains the data refered by a Type. Type is just a reference to TypeData and can be used like a reference (efficient copy).

Definition at line 59 of file Type.hh.

Member Typedef Documentation

Definition at line 63 of file Type.hh.

Constructor & Destructor Documentation

Diades::Altarica::TypeData::TypeData ( const string &  label,
unsigned  code 
)
throw (Exception
)
private
Diades::Altarica::TypeData::TypeData ( const string &  label,
const vector< Type > &  fields,
unsigned  code 
)
throw (Exception
)
private
Diades::Altarica::TypeData::TypeData ( const string &  label,
const StructureFields fields,
unsigned  code 
)
throw (Exception
)
private
Diades::Altarica::TypeData::~TypeData ( )

Member Function Documentation

unsigned Diades::Altarica::TypeData::code ( ) const
inline

Definition at line 84 of file Type.hh.

Referenced by Diades::Altarica::Type::operator<().

const string& Diades::Altarica::TypeData::label ( ) const
throw (Exception
)
inline

Definition at line 79 of file Type.hh.

References ensure.

Referenced by Diades::Altarica::Type::label().

static string Diades::Altarica::TypeData::typeName ( )
inlinestatic

Definition at line 62 of file Type.hh.

Friends And Related Function Documentation

friend class Type
friend

Definition at line 85 of file Type.hh.

friend class TypeFactory
friend

Definition at line 86 of file Type.hh.

Member Data Documentation

vector<Type>* Diades::Altarica::TypeData::_array

Definition at line 71 of file Type.hh.

unsigned Diades::Altarica::TypeData::_code
private

Definition at line 68 of file Type.hh.

union { ... } Diades::Altarica::TypeData::_fields
string Diades::Altarica::TypeData::_internalLabel
private

Definition at line 67 of file Type.hh.

map<Identifier, Type>* Diades::Altarica::TypeData::_structure

Definition at line 72 of file Type.hh.

TypeTemplate Diades::Altarica::TypeData::_template
private

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