libFAUDES

Sections

Index

faudes::AttributeColoredState Class Reference
[Multitasking PlugIn]

#include <mtc_attributes.h>

Inherits faudes::AttributeFlags.

List of all members.


Detailed Description

State attributes for multitasking automata.

Public Member Functions

 AttributeColoredState (void)
 Default constructor.
 ~AttributeColoredState (void)
virtual AttributeColoredStateNew (void) const
 Construct on heap.
virtual void Copy (AttributeVoid &rOtherAttr) const
 Copy attribute.
bool IsDefault (void) const
 Test for default value.
NameSet::Iterator Begin ()
 Iterator for first entry in mColors.
NameSet::Iterator End ()
 Iterator for last entry in mColors.
void ColorSymTab (SymbolTable *pSymTab)
 Set pointer to color symbol table.
SymbolTableColorSymTabp (void) const
 Get pointer to color symbol table.

Public Attributes

ColorSet mColors
 Colorset.

Protected Member Functions

void DoCopy (AttributeColoredState &rOtherAttr) const
 Copy attribute members.
virtual void DoWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const
 Write attributes to tokenwriter.
virtual void DoRead (TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0)
 Read attributes from tokenreader.

Protected Attributes

SymbolTablempColorSymbolTable
 Pointer to colorsymboltable.

Constructor & Destructor Documentation

faudes::AttributeColoredState::AttributeColoredState ( void   )  [inline]

Default constructor.

faudes::AttributeColoredState::~AttributeColoredState ( void   )  [inline]


Member Function Documentation

virtual AttributeColoredState* faudes::AttributeColoredState::New ( void   )  const [inline, virtual]

Construct on heap.

Technically not a constructor, this function creates an object with the same type AttributeVoid.

Returns:
Pointer to new aoid object

Reimplemented from faudes::AttributeFlags.

void faudes::AttributeColoredState::Copy ( AttributeVoid rOtherAttr  )  const [virtual]

Copy attribute.

Virtual interface to copy members using a dynamic cast to figure the actual type of the destination. If the latter is known at compiletime, performance is better via the assignment operator.

Parameters:
rOtherAttr Destination to copy to

Reimplemented from faudes::AttributeFlags.

bool faudes::AttributeColoredState::IsDefault ( void   )  const [inline, virtual]

Test for default value.

Returns:
True for defaultvalue

Reimplemented from faudes::AttributeFlags.

NameSet::Iterator faudes::AttributeColoredState::Begin ( void   ) 

Iterator for first entry in mColors.

NameSet::Iterator faudes::AttributeColoredState::End ( void   ) 

Iterator for last entry in mColors.

void faudes::AttributeColoredState::ColorSymTab ( SymbolTable pSymTab  ) 

Set pointer to color symbol table.

Parameters:
pSymTab New color symbol table

SymbolTable * faudes::AttributeColoredState::ColorSymTabp ( void   )  const

Get pointer to color symbol table.

Returns:
Pointer to current color symbol table

void faudes::AttributeColoredState::DoCopy ( AttributeColoredState rOtherAttr  )  const [protected]

Copy attribute members.

Parameters:
rOtherAttr Destination to copy to

void faudes::AttributeColoredState::DoWrite ( TokenWriter rTw,
const std::string &  rLabel = "",
const Type pContext = 0 
) const [protected, virtual]

Write attributes to tokenwriter.

Parameters:
rTw Tokenreader to write to
rLabel Section to write
pContext Write context to provide contextual information
Exceptions:
Exception I/O errors

Reimplemented from faudes::AttributeFlags.

void faudes::AttributeColoredState::DoRead ( TokenReader rTr,
const std::string &  rLabel = "",
const Type pContext = 0 
) [protected, virtual]

Read attributes from tokenreader.

Parameters:
rTr Tokenreader to read from
rLabel Section to read
pContext Read context to provide contextual information
Exceptions:
Exception Thrown on file format errors (ids 50, 51)

Reimplemented from faudes::AttributeFlags.


Member Data Documentation

Pointer to colorsymboltable.


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

libFAUDES 2.13a c++ source docu by doxygen 1.5.6