DiaDes
0.1
DIAgnosisofDiscrete-EventSystem
|
#include <Type.hh>
Public Types | |
typedef Utils::Exception< TypeFactory > | Exception |
typedef Type * | Pointer |
Public Member Functions | |
TypeFactory (AltaricaModel &model) | |
void | init () |
void | clear () |
~TypeFactory () | |
const Type & | nullType () const |
const Type & | getBoolean () const |
const Type & | getInteger () const |
const Type & | getIdentifier () const |
const Type & | getStructureType (const Type::StructureFields &fields) |
const Type & | getArrayType (const Type &itemType, unsigned size) |
const AltaricaModel & | owner () const |
Static Public Member Functions | |
static string | typeName () |
Private Attributes | |
vector< Pointer > | _types |
unordered_map< string, unsigned > | _internalLabelToTypeCodes |
AltaricaModel & | _owner |
Type | _nullType |
Diades::Altarica::TypeFactory::TypeFactory | ( | AltaricaModel & | model | ) |
Default constructor
Diades::Altarica::TypeFactory::~TypeFactory | ( | ) |
Destructor
void Diades::Altarica::TypeFactory::clear | ( | ) |
Clear the factory
itemType | the Type of any item of the array |
size | the size of the array |
Referenced by Diades::Altarica::AltaricaModel::getArrayType().
|
inline |
Definition at line 272 of file Type.hh.
Referenced by Diades::Altarica::AltaricaModel::getBoolean().
|
inline |
Definition at line 280 of file Type.hh.
Referenced by Diades::Altarica::AltaricaModel::getIdentifier().
|
inline |
Definition at line 276 of file Type.hh.
Referenced by Diades::Altarica::AltaricaModel::getInteger().
const Type& Diades::Altarica::TypeFactory::getStructureType | ( | const Type::StructureFields & | fields | ) |
fields | the fields of a Structure |
Referenced by Diades::Altarica::AltaricaModel::getStructureType().
void Diades::Altarica::TypeFactory::init | ( | ) |
Initialisation of the TypeFactory
_owner | the owner of the TypeFactory |
|
inline |
Definition at line 268 of file Type.hh.
Referenced by Diades::Altarica::AltaricaModel::nullType().
const AltaricaModel& Diades::Altarica::TypeFactory::owner | ( | ) | const |
|
inlinestatic |
|
private |
|
private |
|
private |