| |
libFAUDES
Sections
Index
|
faudes::TBaseSet< T, Cmp > Class Template Reference |
Public Member Functions | |
virtual TBaseSet * | New (void) const |
Construct on heap. | |
virtual TBaseSet * | Copy (void) const |
Construct on heap. | |
virtual const TBaseSet * | Cast (const Type *pOther) const |
Cast other object to this type. | |
virtual TBaseSet & | Assign (const Type &rSrc) |
Assign configuration data from other object. | |
virtual bool | Equal (const Type &rOther) const |
Test equality of configuration data. | |
virtual TBaseSet & | operator= (const TBaseSet &rSrc) |
virtual bool | operator== (const TBaseSet &rOther) const |
virtual bool | operator!= (const TBaseSet &rOther) const |
TBaseSet (void) | |
Constructor. | |
TBaseSet (const TBaseSet &rOtherSet) | |
Copy-constructor. | |
TBaseSet (const std::string &rFilename, const std::string &rLabel="BaseSet") | |
Constructor from file. | |
virtual | ~TBaseSet (void) |
Virtual destructor. | |
const std::string & | Name (void) const |
Return name of TBaseSet. | |
void | Name (const std::string &rName) |
Set name of TBaseSet. | |
virtual void | Clear (void) |
Clear all set. | |
Idx | Size (void) const |
Get Size of TBaseSet. | |
bool | Empty (void) const |
Check if the TBaseSet ist Empty. | |
virtual std::string | Str (const T &rElem) const |
Return pretty printable element. | |
Iterator | Begin (void) const |
Iterator to the begin of set. | |
Iterator | End (void) const |
Iterator to the end of set. | |
virtual bool | Valid (const T &rElem) const |
Test validty of candidate element. | |
virtual bool | Erase (const T &rElem) |
Erase element by reference. | |
virtual Iterator | Erase (const Iterator &pos) |
Erase element by iterator. | |
virtual void | EraseSet (const TBaseSet &rOtherSet) |
Erase elements given by other set. | |
virtual void | RestrictSet (const TBaseSet &rOtherSet) |
Restrict elements given by other set. | |
virtual bool | Insert (const T &rElem) |
Insert specified element. | |
virtual void | InsertSet (const TBaseSet &rOtherSet) |
Insert elements given by rOtherSet. | |
virtual void | SetUnion (const TBaseSet &rOtherSet) |
Set Union, result is accumulated in this set. | |
virtual void | SetIntersection (const TBaseSet &rOtherSet) |
Set Intersection, result is stored in this set. | |
bool | Exists (const T &rElem) const |
Test existence of element. | |
Iterator | Find (const T &rElem) const |
Find element and return iterator. | |
TBaseSet | operator+ (const TBaseSet &rOtherSet) const |
Set union operator. | |
TBaseSet | operator- (const TBaseSet &rOtherSet) const |
Set difference operator. | |
TBaseSet | operator* (const TBaseSet &rOtherSet) const |
Set intersection operator. | |
bool | operator<= (const TBaseSet &rOtherSet) const |
Test for subset. | |
bool | operator>= (const TBaseSet &rOtherSet) const |
Test for superset. | |
bool | operator< (const TBaseSet &rOtherSet) const |
Order for sorting containers of TBaseSet. | |
void | DValid (const std::string &rMessage="") const |
Some validation of deferred copy mechanism (provoke abort). | |
virtual void | Detach (void) const |
Detach from extern storage (incl allocation and true copy). | |
virtual void | Lock (void) const |
Detach and lock any further reallocation. | |
virtual const AttributeVoid * | Attributep (void) const |
Attribute typeinfo. | |
virtual const AttributeVoid & | Attribute (void) const |
Attribute typeinfo. | |
virtual bool | AttributeTry (const Type &rAttr) const |
Attribute typeinfo. | |
virtual TBaseSet & | AssignWithoutAttributes (const TBaseSet &rSourceSet) |
Attribute access. | |
virtual void | Attributes (const TBaseSet &rOtherSet) |
Attributes access. | |
virtual Idx | AttributesSize (void) const |
Attribute access. | |
virtual void | ClearAttributes (void) |
Attribute access. | |
virtual bool | EqualAttributes (const TBaseSet &rOtherSet) const |
Attribute access. | |
virtual AttributeVoid * | Attributep (const T &rElem) |
Attribute access. | |
virtual const AttributeVoid & | Attribute (const T &rElem) const |
Attribute access. | |
virtual void | Attribute (const T &rElem, const Type &rAttr) |
Attribute access. | |
virtual void | AttributeTry (const T &rElem, const Type &rAttr) |
Attribute access. | |
virtual void | ClrAttribute (const T &rElem) |
Attribute access. | |
Protected Types | |
typedef std::set< T, Cmp > ::iterator | iterator |
STL iterator, non-const version. | |
typedef std::set< T, Cmp > ::const_iterator | const_iterator |
STL iterator, const version. | |
typedef std::map< T, AttributeVoid * >::iterator | aiterator |
STL attribute iterator, non-const version. | |
typedef std::map< T, AttributeVoid * > ::const_iterator | const_aiterator |
STL attribute iterator, const version. | |
Protected Member Functions | |
virtual void | DoWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const |
Token output, see Type::DWrite for public wrappers. | |
virtual void | DoDWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const |
Token output, debugging see Type::DWrite for public wrappers. | |
virtual void | DoSWrite (TokenWriter &rTw) const |
Token output, see Type::SWrite for public wrappers. | |
virtual void | DoRead (TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0) |
Token input, see Type::Read for public wrappers. | |
virtual TBaseSet & | DoAssign (const TBaseSet &rSourceSet) |
assign my members | |
virtual bool | DoEqual (const TBaseSet &rOtherSet) const |
test equality | |
TBaseSet< T, Cmp >::Iterator | ThisIterator (const typename std::set< T, Cmp >::const_iterator &sit) const |
Convert STL iterator. | |
void | RelinkReferences (void) |
Ensure that we do not serve contents to anyone else. | |
void | AttachReference (TBaseSet *pRef) const |
Record that we serve contents to some other TBaseSet. | |
void | DetachReference (TBaseSet *pRef) const |
Record that we stop serving contents to some TBaseSet. | |
void | AttachIterator (Iterator *pFit) const |
Record that an iterator refers to this TBaseSet. | |
void | DetachIterator (Iterator *pFit) const |
Record that an iterator stops to refer to this TBaseSet. | |
Protected Attributes | |
std::set< T, Cmp > * | mpSet |
STL set, if the object owns content (else NULL). | |
std::map< T, AttributeVoid * > * | mpAttributes |
Attribute map, if this object owns content (else NULL). | |
std::set< T, Cmp > * | pSet |
Pointer on STL set to operate on. | |
std::map< T, AttributeVoid * > * | pAttributes |
Pointer to attribute map to operate on. | |
std::string | mMyName |
Name of TBaseSet. | |
std::set< TBaseSet< T, Cmp > * > | mReferences |
Other BaseSets, that refer to the STL set provided by this TBaseSet. | |
TBaseSet< T, Cmp > * | pBaseSet |
Pointer on BaseSet that owns the STL set this BaseSet referrs to. | |
bool | mDetached |
Indicate "has no references, provides STL set". | |
bool | mLocked |
Indicate "dont re-allocate the STL set again". | |
std::set< Iterator * > | mIterators |
Iterators that refer to this TBaseSet. | |
Static Protected Attributes | |
static std::set< T, Cmp > | mEmptySet = std::set<T,Cmp>() |
static empty STL set for default constructor | |
static std::map< T, AttributeVoid * > | mEmptyAttributes = std::map<T,AttributeVoid*>() |
static empty STL map for default constructor | |
Friends | |
class | TaBaseSet |
We implement "protected privacy for template classes" by friendship. | |
Classes | |
class | Iterator |
Iterator class for high-level api to TBaseSet. More... |
typedef std::set<T,Cmp>::iterator faudes::TBaseSet< T, Cmp >::iterator [protected] |
STL iterator, non-const version.
Reimplemented in faudes::TaBaseSet< T, Attr, Cmp >, faudes::TaBaseSet< long unsigned int, faudes::SimEventAttribute >, faudes::TaBaseSet< long unsigned int, faudes::AttributeCFlags >, faudes::TaBaseSet< long unsigned int, EventAttr >, faudes::TaBaseSet< long unsigned int, faudes::HioStateFlags >, faudes::TaBaseSet< long unsigned int, StateAttr >, faudes::TaBaseSet< long unsigned int, faudes::AttributeTimedState >, faudes::TaBaseSet< long unsigned int, faudes::AttributeFailureEvents >, faudes::TaBaseSet< long unsigned int, faudes::DiagLabelSet >, faudes::TaBaseSet< long unsigned int, faudes::HioEventFlags >, faudes::TaBaseSet< long unsigned int, faudes::AttributeSimplenetEvent >, faudes::TaBaseSet< long unsigned int, Attr >, faudes::TaBaseSet< long unsigned int, faudes::AttributeSignalEvent >, faudes::TaBaseSet< faudes::Transition, Attr, faudes::TransSort::X1EvX2 >, and faudes::TaBaseSet< long unsigned int, faudes::SimConditionAttribute >.
typedef std::set<T,Cmp>::const_iterator faudes::TBaseSet< T, Cmp >::const_iterator [protected] |
STL iterator, const version.
Reimplemented in faudes::TaBaseSet< T, Attr, Cmp >, faudes::TaBaseSet< long unsigned int, faudes::SimEventAttribute >, faudes::TaBaseSet< long unsigned int, faudes::AttributeCFlags >, faudes::TaBaseSet< long unsigned int, EventAttr >, faudes::TaBaseSet< long unsigned int, faudes::HioStateFlags >, faudes::TaBaseSet< long unsigned int, StateAttr >, faudes::TaBaseSet< long unsigned int, faudes::AttributeTimedState >, faudes::TaBaseSet< long unsigned int, faudes::AttributeFailureEvents >, faudes::TaBaseSet< long unsigned int, faudes::DiagLabelSet >, faudes::TaBaseSet< long unsigned int, faudes::HioEventFlags >, faudes::TaBaseSet< long unsigned int, faudes::AttributeSimplenetEvent >, faudes::TaBaseSet< long unsigned int, Attr >, faudes::TaBaseSet< long unsigned int, faudes::AttributeSignalEvent >, faudes::TaBaseSet< faudes::Transition, Attr, faudes::TransSort::X1EvX2 >, and faudes::TaBaseSet< long unsigned int, faudes::SimConditionAttribute >.
typedef std::map<T,AttributeVoid*>::iterator faudes::TBaseSet< T, Cmp >::aiterator [protected] |
STL attribute iterator, non-const version.
Reimplemented in faudes::TaBaseSet< T, Attr, Cmp >, faudes::TaBaseSet< long unsigned int, faudes::SimEventAttribute >, faudes::TaBaseSet< long unsigned int, faudes::AttributeCFlags >, faudes::TaBaseSet< long unsigned int, EventAttr >, faudes::TaBaseSet< long unsigned int, faudes::HioStateFlags >, faudes::TaBaseSet< long unsigned int, StateAttr >, faudes::TaBaseSet< long unsigned int, faudes::AttributeTimedState >, faudes::TaBaseSet< long unsigned int, faudes::AttributeFailureEvents >, faudes::TaBaseSet< long unsigned int, faudes::DiagLabelSet >, faudes::TaBaseSet< long unsigned int, faudes::HioEventFlags >, faudes::TaBaseSet< long unsigned int, faudes::AttributeSimplenetEvent >, faudes::TaBaseSet< long unsigned int, Attr >, faudes::TaBaseSet< long unsigned int, faudes::AttributeSignalEvent >, faudes::TaBaseSet< faudes::Transition, Attr, faudes::TransSort::X1EvX2 >, and faudes::TaBaseSet< long unsigned int, faudes::SimConditionAttribute >.
typedef std::map<T,AttributeVoid*>::const_iterator faudes::TBaseSet< T, Cmp >::const_aiterator [protected] |
STL attribute iterator, const version.
Reimplemented in faudes::TaBaseSet< T, Attr, Cmp >, faudes::TaBaseSet< long unsigned int, faudes::SimEventAttribute >, faudes::TaBaseSet< long unsigned int, faudes::AttributeCFlags >, faudes::TaBaseSet< long unsigned int, EventAttr >, faudes::TaBaseSet< long unsigned int, faudes::HioStateFlags >, faudes::TaBaseSet< long unsigned int, StateAttr >, faudes::TaBaseSet< long unsigned int, faudes::AttributeTimedState >, faudes::TaBaseSet< long unsigned int, faudes::AttributeFailureEvents >, faudes::TaBaseSet< long unsigned int, faudes::DiagLabelSet >, faudes::TaBaseSet< long unsigned int, faudes::HioEventFlags >, faudes::TaBaseSet< long unsigned int, faudes::AttributeSimplenetEvent >, faudes::TaBaseSet< long unsigned int, Attr >, faudes::TaBaseSet< long unsigned int, faudes::AttributeSignalEvent >, faudes::TaBaseSet< faudes::Transition, Attr, faudes::TransSort::X1EvX2 >, and faudes::TaBaseSet< long unsigned int, faudes::SimConditionAttribute >.
faudes::TBaseSet< T, Cmp >::TBaseSet | ( | void | ) | [inline] |
faudes::TBaseSet< T, Cmp >::TBaseSet | ( | const TBaseSet< T, Cmp > & | rOtherSet | ) | [inline] |
faudes::TBaseSet< T, Cmp >::TBaseSet | ( | const std::string & | rFilename, | |
const std::string & | rLabel = "BaseSet" | |||
) | [inline] |
faudes::TBaseSet< T, Cmp >::~TBaseSet | ( | void | ) | [inline, virtual] |
TBaseSet< T, Cmp > * faudes::TBaseSet< T, Cmp >::New | ( | void | ) | const [inline, virtual] |
Construct on heap.
Technically not a constructor, this function creates an object with the same type Type. New() is defined as a virtual function and derived classes are meant to re-implement with the appropiate constructor. This can be done via the provided macros FAUDES_TYPE_DECLARATION and FAUDES_TYPE_IMPLEMENTATION. As with new, it is the callers reponsabilty to delete the object when no longer needed.
Reimplemented from faudes::Type.
Reimplemented in faudes::TaBaseSet< T, Attr, Cmp >, faudes::IndexSet, faudes::TaIndexSet< Attr >, faudes::NameSet, faudes::TaNameSet< Attr >, faudes::SymbolSet, faudes::TTransSet< Cmp >, faudes::TaTransSet< Attr >, faudes::ColorSet, faudes::ClockSet, faudes::SimConditionSet, faudes::TaBaseSet< long unsigned int, faudes::SimEventAttribute >, faudes::TaBaseSet< long unsigned int, faudes::AttributeCFlags >, faudes::TaBaseSet< long unsigned int, EventAttr >, faudes::TaBaseSet< long unsigned int, faudes::HioStateFlags >, faudes::TaBaseSet< long unsigned int, StateAttr >, faudes::TaBaseSet< long unsigned int, faudes::AttributeTimedState >, faudes::TaBaseSet< long unsigned int, faudes::AttributeFailureEvents >, faudes::TaBaseSet< long unsigned int, faudes::DiagLabelSet >, faudes::TaBaseSet< long unsigned int, faudes::HioEventFlags >, faudes::TaBaseSet< long unsigned int, faudes::AttributeSimplenetEvent >, faudes::TaBaseSet< long unsigned int, Attr >, faudes::TaBaseSet< long unsigned int, faudes::AttributeSignalEvent >, faudes::TaBaseSet< faudes::Transition, Attr, faudes::TransSort::X1EvX2 >, faudes::TaBaseSet< long unsigned int, faudes::SimConditionAttribute >, faudes::TaIndexSet< faudes::AttributeTimedState >, faudes::TaIndexSet< faudes::HioStateFlags >, faudes::TaIndexSet< StateAttr >, faudes::TaIndexSet< faudes::DiagLabelSet >, faudes::TaNameSet< faudes::HioEventFlags >, faudes::TaNameSet< faudes::AttributeFailureEvents >, faudes::TaNameSet< faudes::SimConditionAttribute >, faudes::TaNameSet< faudes::AttributeSignalEvent >, faudes::TaNameSet< faudes::SimEventAttribute >, faudes::TaNameSet< faudes::AttributeSimplenetEvent >, faudes::TaNameSet< EventAttr >, faudes::TaNameSet< faudes::AttributeCFlags >, faudes::TTransSet< faudes::TransSort::EvX2X1 >, and faudes::TTransSet< faudes::TransSort::X1EvX2 >.
TBaseSet< T, Cmp > * faudes::TBaseSet< T, Cmp >::Copy | ( | void | ) | const [inline, virtual] |
Construct on heap.
Technically not a constructor, this function creates an object with the same type Type and the same configuration. Copy() is defined as a virtual function and derived classes are meant to re-implement with the appropiate copy constructor. This can be done via the provided macros FAUDES_TYPE_DECLARATION and FAUDES_TYPE_IMPLEMENTATION. As with new, it is the callers reponsabilty to delete the object when no longer needed.
Reimplemented from faudes::Type.
Reimplemented in faudes::TaBaseSet< T, Attr, Cmp >, faudes::IndexSet, faudes::TaIndexSet< Attr >, faudes::NameSet, faudes::TaNameSet< Attr >, faudes::SymbolSet, faudes::TTransSet< Cmp >, faudes::TaTransSet< Attr >, faudes::ColorSet, faudes::ClockSet, faudes::SimConditionSet, faudes::TaBaseSet< long unsigned int, faudes::SimEventAttribute >, faudes::TaBaseSet< long unsigned int, faudes::AttributeCFlags >, faudes::TaBaseSet< long unsigned int, EventAttr >, faudes::TaBaseSet< long unsigned int, faudes::HioStateFlags >, faudes::TaBaseSet< long unsigned int, StateAttr >, faudes::TaBaseSet< long unsigned int, faudes::AttributeTimedState >, faudes::TaBaseSet< long unsigned int, faudes::AttributeFailureEvents >, faudes::TaBaseSet< long unsigned int, faudes::DiagLabelSet >, faudes::TaBaseSet< long unsigned int, faudes::HioEventFlags >, faudes::TaBaseSet< long unsigned int, faudes::AttributeSimplenetEvent >, faudes::TaBaseSet< long unsigned int, Attr >, faudes::TaBaseSet< long unsigned int, faudes::AttributeSignalEvent >, faudes::TaBaseSet< faudes::Transition, Attr, faudes::TransSort::X1EvX2 >, faudes::TaBaseSet< long unsigned int, faudes::SimConditionAttribute >, faudes::TaIndexSet< faudes::AttributeTimedState >, faudes::TaIndexSet< faudes::HioStateFlags >, faudes::TaIndexSet< StateAttr >, faudes::TaIndexSet< faudes::DiagLabelSet >, faudes::TaNameSet< faudes::HioEventFlags >, faudes::TaNameSet< faudes::AttributeFailureEvents >, faudes::TaNameSet< faudes::SimConditionAttribute >, faudes::TaNameSet< faudes::AttributeSignalEvent >, faudes::TaNameSet< faudes::SimEventAttribute >, faudes::TaNameSet< faudes::AttributeSimplenetEvent >, faudes::TaNameSet< EventAttr >, faudes::TaNameSet< faudes::AttributeCFlags >, faudes::TTransSet< faudes::TransSort::EvX2X1 >, and faudes::TTransSet< faudes::TransSort::X1EvX2 >.
const TBaseSet< T, Cmp > * faudes::TBaseSet< T, Cmp >::Cast | ( | const Type * | pOther | ) | const [inline, virtual] |
Cast other object to this type.
Enables the run-time interface to test whether pObject is derived from this object. This feature is used e.g. in the faudes container classes to test attributes. Derived classes must reimplement this function using the appropriate dynamic cast.
Re-implementation can be done via the convenience macros FAUDES_TYPE_DECLARATION and FAUDES_TYPE_IMPLEMENTATION.
Reimplemented from faudes::Type.
Reimplemented in faudes::TaBaseSet< T, Attr, Cmp >, faudes::IndexSet, faudes::TaIndexSet< Attr >, faudes::NameSet, faudes::TaNameSet< Attr >, faudes::SymbolSet, faudes::TTransSet< Cmp >, faudes::TaTransSet< Attr >, faudes::ColorSet, faudes::ClockSet, faudes::SimConditionSet, faudes::TaBaseSet< long unsigned int, faudes::SimEventAttribute >, faudes::TaBaseSet< long unsigned int, faudes::AttributeCFlags >, faudes::TaBaseSet< long unsigned int, EventAttr >, faudes::TaBaseSet< long unsigned int, faudes::HioStateFlags >, faudes::TaBaseSet< long unsigned int, StateAttr >, faudes::TaBaseSet< long unsigned int, faudes::AttributeTimedState >, faudes::TaBaseSet< long unsigned int, faudes::AttributeFailureEvents >, faudes::TaBaseSet< long unsigned int, faudes::DiagLabelSet >, faudes::TaBaseSet< long unsigned int, faudes::HioEventFlags >, faudes::TaBaseSet< long unsigned int, faudes::AttributeSimplenetEvent >, faudes::TaBaseSet< long unsigned int, Attr >, faudes::TaBaseSet< long unsigned int, faudes::AttributeSignalEvent >, faudes::TaBaseSet< faudes::Transition, Attr, faudes::TransSort::X1EvX2 >, faudes::TaBaseSet< long unsigned int, faudes::SimConditionAttribute >, faudes::TaIndexSet< faudes::AttributeTimedState >, faudes::TaIndexSet< faudes::HioStateFlags >, faudes::TaIndexSet< StateAttr >, faudes::TaIndexSet< faudes::DiagLabelSet >, faudes::TaNameSet< faudes::HioEventFlags >, faudes::TaNameSet< faudes::AttributeFailureEvents >, faudes::TaNameSet< faudes::SimConditionAttribute >, faudes::TaNameSet< faudes::AttributeSignalEvent >, faudes::TaNameSet< faudes::SimEventAttribute >, faudes::TaNameSet< faudes::AttributeSimplenetEvent >, faudes::TaNameSet< EventAttr >, faudes::TaNameSet< faudes::AttributeCFlags >, faudes::TTransSet< faudes::TransSort::EvX2X1 >, and faudes::TTransSet< faudes::TransSort::X1EvX2 >.
TBaseSet< T, Cmp > & faudes::TBaseSet< T, Cmp >::Assign | ( | const Type & | rSrc | ) | [inline, virtual] |
Assign configuration data from other object.
Derived classes should reimplement this method to first try to cast the source to the respective class. If successful, the protected function DoAssign is invoked to perform the actual assignment. If the cast fails, the Assign method of the parent class is called. Thus, faudes objects are up- and downcatsted for assignment, maintaining as much of the source data as digestable by the destination object. On the downside, there is no sensible typechecking at compile-time.
Re-implementation can be done via the convenience macros FAUDES_TYPE_DECLARATION and FAUDES_TYPE_IMPLEMENTATION.
rSrc | Source to copy from |
Reimplemented from faudes::Type.
Reimplemented in faudes::IndexSet, faudes::TaIndexSet< Attr >, faudes::NameSet, faudes::TaNameSet< Attr >, faudes::SymbolSet, faudes::TTransSet< Cmp >, faudes::TaTransSet< Attr >, faudes::ColorSet, faudes::ClockSet, faudes::SimConditionSet, faudes::TaIndexSet< faudes::AttributeTimedState >, faudes::TaIndexSet< faudes::HioStateFlags >, faudes::TaIndexSet< StateAttr >, faudes::TaIndexSet< faudes::DiagLabelSet >, faudes::TaNameSet< faudes::HioEventFlags >, faudes::TaNameSet< faudes::AttributeFailureEvents >, faudes::TaNameSet< faudes::SimConditionAttribute >, faudes::TaNameSet< faudes::AttributeSignalEvent >, faudes::TaNameSet< faudes::SimEventAttribute >, faudes::TaNameSet< faudes::AttributeSimplenetEvent >, faudes::TaNameSet< EventAttr >, faudes::TaNameSet< faudes::AttributeCFlags >, faudes::TTransSet< faudes::TransSort::EvX2X1 >, and faudes::TTransSet< faudes::TransSort::X1EvX2 >.
bool faudes::TBaseSet< T, Cmp >::Equal | ( | const Type & | rOther | ) | const [inline, virtual] |
Test equality of configuration data.
Derived classes should reimplement this method to return true if both actual types and configuration data match. The object name is not consired in the test.
This method calls the virtual method DoEqual(). Re-implementation can be done via the convenience macros FAUDES_TYPE_DECLARATION and FAUDES_TYPE_IMPLEMENTATION.
rOther | Other objevt to compare with. |
Reimplemented from faudes::Type.
Reimplemented in faudes::IndexSet, faudes::TaIndexSet< Attr >, faudes::NameSet, faudes::TaNameSet< Attr >, faudes::SymbolSet, faudes::TTransSet< Cmp >, faudes::TaTransSet< Attr >, faudes::ColorSet, faudes::ClockSet, faudes::SimConditionSet, faudes::TaIndexSet< faudes::AttributeTimedState >, faudes::TaIndexSet< faudes::HioStateFlags >, faudes::TaIndexSet< StateAttr >, faudes::TaIndexSet< faudes::DiagLabelSet >, faudes::TaNameSet< faudes::HioEventFlags >, faudes::TaNameSet< faudes::AttributeFailureEvents >, faudes::TaNameSet< faudes::SimConditionAttribute >, faudes::TaNameSet< faudes::AttributeSignalEvent >, faudes::TaNameSet< faudes::SimEventAttribute >, faudes::TaNameSet< faudes::AttributeSimplenetEvent >, faudes::TaNameSet< EventAttr >, faudes::TaNameSet< faudes::AttributeCFlags >, faudes::TTransSet< faudes::TransSort::EvX2X1 >, and faudes::TTransSet< faudes::TransSort::X1EvX2 >.
TBaseSet< T, Cmp > & faudes::TBaseSet< T, Cmp >::operator= | ( | const TBaseSet< T, Cmp > & | rSrc | ) | [inline, virtual] |
bool faudes::TBaseSet< T, Cmp >::operator== | ( | const TBaseSet< T, Cmp > & | rOther | ) | const [inline, virtual] |
bool faudes::TBaseSet< T, Cmp >::operator!= | ( | const TBaseSet< T, Cmp > & | rOther | ) | const [inline, virtual] |
const std::string & faudes::TBaseSet< T, Cmp >::Name | ( | void | ) | const [inline, virtual] |
void faudes::TBaseSet< T, Cmp >::Name | ( | const std::string & | rName | ) | [inline, virtual] |
void faudes::TBaseSet< T, Cmp >::Clear | ( | void | ) | [inline, virtual] |
Clear all set.
Reimplemented from faudes::Type.
Reimplemented in faudes::TaBaseSet< T, Attr, Cmp >, faudes::TaIndexSet< Attr >, faudes::TaTransSet< Attr >, faudes::TaBaseSet< long unsigned int, faudes::SimEventAttribute >, faudes::TaBaseSet< long unsigned int, faudes::AttributeCFlags >, faudes::TaBaseSet< long unsigned int, EventAttr >, faudes::TaBaseSet< long unsigned int, faudes::HioStateFlags >, faudes::TaBaseSet< long unsigned int, StateAttr >, faudes::TaBaseSet< long unsigned int, faudes::AttributeTimedState >, faudes::TaBaseSet< long unsigned int, faudes::AttributeFailureEvents >, faudes::TaBaseSet< long unsigned int, faudes::DiagLabelSet >, faudes::TaBaseSet< long unsigned int, faudes::HioEventFlags >, faudes::TaBaseSet< long unsigned int, faudes::AttributeSimplenetEvent >, faudes::TaBaseSet< long unsigned int, Attr >, faudes::TaBaseSet< long unsigned int, faudes::AttributeSignalEvent >, faudes::TaBaseSet< faudes::Transition, Attr, faudes::TransSort::X1EvX2 >, faudes::TaBaseSet< long unsigned int, faudes::SimConditionAttribute >, faudes::TaIndexSet< faudes::AttributeTimedState >, faudes::TaIndexSet< faudes::HioStateFlags >, faudes::TaIndexSet< StateAttr >, and faudes::TaIndexSet< faudes::DiagLabelSet >.
Idx faudes::TBaseSet< T, Cmp >::Size | ( | void | ) | const [inline] |
bool faudes::TBaseSet< T, Cmp >::Empty | ( | void | ) | const [inline] |
std::string faudes::TBaseSet< T, Cmp >::Str | ( | const T & | rElem | ) | const [inline, virtual] |
Return pretty printable element.
Reimplement this method for derived classes.
rElem | Element to print |
Reimplemented in faudes::SymbolSet.
TBaseSet< T, Cmp >::Iterator faudes::TBaseSet< T, Cmp >::Begin | ( | void | ) | const [inline] |
Iterator to the begin of set.
Reimplemented in faudes::TTransSet< Cmp >, faudes::TTransSet< faudes::TransSort::EvX2X1 >, and faudes::TTransSet< faudes::TransSort::X1EvX2 >.
TBaseSet< T, Cmp >::Iterator faudes::TBaseSet< T, Cmp >::End | ( | void | ) | const [inline] |
Iterator to the end of set.
Reimplemented in faudes::TTransSet< Cmp >, faudes::TTransSet< faudes::TransSort::EvX2X1 >, and faudes::TTransSet< faudes::TransSort::X1EvX2 >.
bool faudes::TBaseSet< T, Cmp >::Valid | ( | const T & | rElem | ) | const [inline, virtual] |
Test validty of candidate element.
Reimplement this function for particular type T of elements, eg for an index set with T=Idx indicate 0 an invalid index.
rElem | Candidate to test |
Reimplemented in faudes::SymbolSet.
bool faudes::TBaseSet< T, Cmp >::Erase | ( | const T & | rElem | ) | [inline, virtual] |
Erase element by reference.
rElem | Element to erase |
Reimplemented in faudes::TaBaseSet< T, Attr, Cmp >.
TBaseSet< T, Cmp >::Iterator faudes::TBaseSet< T, Cmp >::Erase | ( | const Iterator & | pos | ) | [inline, virtual] |
Erase element by iterator.
pos | Iterator to specify element |
Reimplemented in faudes::TaBaseSet< T, Attr, Cmp >, faudes::TaIndexSet< Attr >, faudes::NameSet, faudes::TaNameSet< Attr >, faudes::TTransSet< Cmp >, faudes::TaTransSet< Attr >, faudes::TaBaseSet< long unsigned int, faudes::SimEventAttribute >, faudes::TaBaseSet< long unsigned int, faudes::AttributeCFlags >, faudes::TaBaseSet< long unsigned int, EventAttr >, faudes::TaBaseSet< long unsigned int, faudes::HioStateFlags >, faudes::TaBaseSet< long unsigned int, StateAttr >, faudes::TaBaseSet< long unsigned int, faudes::AttributeTimedState >, faudes::TaBaseSet< long unsigned int, faudes::AttributeFailureEvents >, faudes::TaBaseSet< long unsigned int, faudes::DiagLabelSet >, faudes::TaBaseSet< long unsigned int, faudes::HioEventFlags >, faudes::TaBaseSet< long unsigned int, faudes::AttributeSimplenetEvent >, faudes::TaBaseSet< long unsigned int, Attr >, faudes::TaBaseSet< long unsigned int, faudes::AttributeSignalEvent >, faudes::TaBaseSet< faudes::Transition, Attr, faudes::TransSort::X1EvX2 >, faudes::TaBaseSet< long unsigned int, faudes::SimConditionAttribute >, faudes::TaIndexSet< faudes::AttributeTimedState >, faudes::TaIndexSet< faudes::HioStateFlags >, faudes::TaIndexSet< StateAttr >, faudes::TaIndexSet< faudes::DiagLabelSet >, faudes::TaNameSet< faudes::HioEventFlags >, faudes::TaNameSet< faudes::AttributeFailureEvents >, faudes::TaNameSet< faudes::SimConditionAttribute >, faudes::TaNameSet< faudes::AttributeSignalEvent >, faudes::TaNameSet< faudes::SimEventAttribute >, faudes::TaNameSet< faudes::AttributeSimplenetEvent >, faudes::TaNameSet< EventAttr >, faudes::TaNameSet< faudes::AttributeCFlags >, faudes::TTransSet< faudes::TransSort::EvX2X1 >, and faudes::TTransSet< faudes::TransSort::X1EvX2 >.
void faudes::TBaseSet< T, Cmp >::EraseSet | ( | const TBaseSet< T, Cmp > & | rOtherSet | ) | [inline, virtual] |
Erase elements given by other set.
rOtherSet | Set of elements to erase |
Reimplemented in faudes::TaBaseSet< T, Attr, Cmp >.
void faudes::TBaseSet< T, Cmp >::RestrictSet | ( | const TBaseSet< T, Cmp > & | rOtherSet | ) | [inline, virtual] |
Restrict elements given by other set.
rOtherSet | Set of elements to keep |
Reimplemented in faudes::TaBaseSet< T, Attr, Cmp >.
bool faudes::TBaseSet< T, Cmp >::Insert | ( | const T & | rElem | ) | [inline, virtual] |
Insert specified element.
rElem | Element to insert |
Reimplemented in faudes::TaBaseSet< T, Attr, Cmp >, and faudes::SymbolSet.
void faudes::TBaseSet< T, Cmp >::InsertSet | ( | const TBaseSet< T, Cmp > & | rOtherSet | ) | [inline, virtual] |
Insert elements given by rOtherSet.
rOtherSet | Set of elements to insert |
Reimplemented in faudes::TaBaseSet< T, Attr, Cmp >.
void faudes::TBaseSet< T, Cmp >::SetUnion | ( | const TBaseSet< T, Cmp > & | rOtherSet | ) | [inline, virtual] |
Set Union, result is accumulated in this set.
rOtherSet | Other TBaseSet |
Reimplemented in faudes::TaBaseSet< T, Attr, Cmp >.
void faudes::TBaseSet< T, Cmp >::SetIntersection | ( | const TBaseSet< T, Cmp > & | rOtherSet | ) | [inline, virtual] |
Set Intersection, result is stored in this set.
rOtherSet | Other TBaseSet |
Reimplemented in faudes::TaBaseSet< T, Attr, Cmp >.
bool faudes::TBaseSet< T, Cmp >::Exists | ( | const T & | rElem | ) | const [inline] |
TBaseSet< T, Cmp >::Iterator faudes::TBaseSet< T, Cmp >::Find | ( | const T & | rElem | ) | const [inline] |
TBaseSet< T, Cmp > faudes::TBaseSet< T, Cmp >::operator+ | ( | const TBaseSet< T, Cmp > & | rOtherSet | ) | const [inline] |
TBaseSet< T, Cmp > faudes::TBaseSet< T, Cmp >::operator- | ( | const TBaseSet< T, Cmp > & | rOtherSet | ) | const [inline] |
TBaseSet< T, Cmp > faudes::TBaseSet< T, Cmp >::operator* | ( | const TBaseSet< T, Cmp > & | rOtherSet | ) | const [inline] |
bool faudes::TBaseSet< T, Cmp >::operator<= | ( | const TBaseSet< T, Cmp > & | rOtherSet | ) | const [inline] |
bool faudes::TBaseSet< T, Cmp >::operator>= | ( | const TBaseSet< T, Cmp > & | rOtherSet | ) | const [inline] |
bool faudes::TBaseSet< T, Cmp >::operator< | ( | const TBaseSet< T, Cmp > & | rOtherSet | ) | const [inline] |
void faudes::TBaseSet< T, Cmp >::DValid | ( | const std::string & | rMessage = "" |
) | const [inline] |
void faudes::TBaseSet< T, Cmp >::Detach | ( | void | ) | const [inline, virtual] |
Detach from extern storage (incl allocation and true copy).
Reimplemented in faudes::TaBaseSet< T, Attr, Cmp >, faudes::TaBaseSet< long unsigned int, faudes::SimEventAttribute >, faudes::TaBaseSet< long unsigned int, faudes::AttributeCFlags >, faudes::TaBaseSet< long unsigned int, EventAttr >, faudes::TaBaseSet< long unsigned int, faudes::HioStateFlags >, faudes::TaBaseSet< long unsigned int, StateAttr >, faudes::TaBaseSet< long unsigned int, faudes::AttributeTimedState >, faudes::TaBaseSet< long unsigned int, faudes::AttributeFailureEvents >, faudes::TaBaseSet< long unsigned int, faudes::DiagLabelSet >, faudes::TaBaseSet< long unsigned int, faudes::HioEventFlags >, faudes::TaBaseSet< long unsigned int, faudes::AttributeSimplenetEvent >, faudes::TaBaseSet< long unsigned int, Attr >, faudes::TaBaseSet< long unsigned int, faudes::AttributeSignalEvent >, faudes::TaBaseSet< faudes::Transition, Attr, faudes::TransSort::X1EvX2 >, and faudes::TaBaseSet< long unsigned int, faudes::SimConditionAttribute >.
void faudes::TBaseSet< T, Cmp >::Lock | ( | void | ) | const [inline, virtual] |
const AttributeVoid * faudes::TBaseSet< T, Cmp >::Attributep | ( | void | ) | const [inline, virtual] |
Attribute typeinfo.
This virtual function provides an interface for derived container classes with attributes eg TaIndexSet. When not re-implemented, it returns an attribute with type AttributeVoid to indicate the absence of nontrivial attributes
Reimplemented in faudes::TaBaseSet< T, Attr, Cmp >, faudes::TaBaseSet< long unsigned int, faudes::SimEventAttribute >, faudes::TaBaseSet< long unsigned int, faudes::AttributeCFlags >, faudes::TaBaseSet< long unsigned int, EventAttr >, faudes::TaBaseSet< long unsigned int, faudes::HioStateFlags >, faudes::TaBaseSet< long unsigned int, StateAttr >, faudes::TaBaseSet< long unsigned int, faudes::AttributeTimedState >, faudes::TaBaseSet< long unsigned int, faudes::AttributeFailureEvents >, faudes::TaBaseSet< long unsigned int, faudes::DiagLabelSet >, faudes::TaBaseSet< long unsigned int, faudes::HioEventFlags >, faudes::TaBaseSet< long unsigned int, faudes::AttributeSimplenetEvent >, faudes::TaBaseSet< long unsigned int, Attr >, faudes::TaBaseSet< long unsigned int, faudes::AttributeSignalEvent >, faudes::TaBaseSet< faudes::Transition, Attr, faudes::TransSort::X1EvX2 >, and faudes::TaBaseSet< long unsigned int, faudes::SimConditionAttribute >.
const AttributeVoid & faudes::TBaseSet< T, Cmp >::Attribute | ( | void | ) | const [inline, virtual] |
Attribute typeinfo.
This virtual function provides an interface for derived container classes with attributes eg TaIndexSet. When not re-implemented, it returns an attribute with type AttributeVoid to
Reimplemented in faudes::TaBaseSet< T, Attr, Cmp >, faudes::TaBaseSet< long unsigned int, faudes::SimEventAttribute >, faudes::TaBaseSet< long unsigned int, faudes::AttributeCFlags >, faudes::TaBaseSet< long unsigned int, EventAttr >, faudes::TaBaseSet< long unsigned int, faudes::HioStateFlags >, faudes::TaBaseSet< long unsigned int, StateAttr >, faudes::TaBaseSet< long unsigned int, faudes::AttributeTimedState >, faudes::TaBaseSet< long unsigned int, faudes::AttributeFailureEvents >, faudes::TaBaseSet< long unsigned int, faudes::DiagLabelSet >, faudes::TaBaseSet< long unsigned int, faudes::HioEventFlags >, faudes::TaBaseSet< long unsigned int, faudes::AttributeSimplenetEvent >, faudes::TaBaseSet< long unsigned int, Attr >, faudes::TaBaseSet< long unsigned int, faudes::AttributeSignalEvent >, faudes::TaBaseSet< faudes::Transition, Attr, faudes::TransSort::X1EvX2 >, and faudes::TaBaseSet< long unsigned int, faudes::SimConditionAttribute >.
virtual bool faudes::TBaseSet< T, Cmp >::AttributeTry | ( | const Type & | rAttr | ) | const [inline, virtual] |
Attribute typeinfo.
This virtual function provides an interface for derived classes with attributes eg TaIndexSet. It is meant to test whether this set accepts the specified attribute type ie whether it can be casted. When not re-implemented, the set accepts any attributes derived from attribute void.
rAttr | Attribute type to test. |
Reimplemented in faudes::TaBaseSet< T, Attr, Cmp >, faudes::TaBaseSet< long unsigned int, faudes::SimEventAttribute >, faudes::TaBaseSet< long unsigned int, faudes::AttributeCFlags >, faudes::TaBaseSet< long unsigned int, EventAttr >, faudes::TaBaseSet< long unsigned int, faudes::HioStateFlags >, faudes::TaBaseSet< long unsigned int, StateAttr >, faudes::TaBaseSet< long unsigned int, faudes::AttributeTimedState >, faudes::TaBaseSet< long unsigned int, faudes::AttributeFailureEvents >, faudes::TaBaseSet< long unsigned int, faudes::DiagLabelSet >, faudes::TaBaseSet< long unsigned int, faudes::HioEventFlags >, faudes::TaBaseSet< long unsigned int, faudes::AttributeSimplenetEvent >, faudes::TaBaseSet< long unsigned int, Attr >, faudes::TaBaseSet< long unsigned int, faudes::AttributeSignalEvent >, faudes::TaBaseSet< faudes::Transition, Attr, faudes::TransSort::X1EvX2 >, and faudes::TaBaseSet< long unsigned int, faudes::SimConditionAttribute >.
virtual TBaseSet& faudes::TBaseSet< T, Cmp >::AssignWithoutAttributes | ( | const TBaseSet< T, Cmp > & | rSourceSet | ) | [inline, virtual] |
Attribute access.
This virtual function provides an interface for derived classes with attributes eg TaIndexSet. It is meant to ignore any attributes. The TBaseSet itself has no attributes, so it calls its Assign method that ignores attributes anyway.
rSourceSet | Set to copy from |
Reimplemented in faudes::TaBaseSet< T, Attr, Cmp >.
virtual void faudes::TBaseSet< T, Cmp >::Attributes | ( | const TBaseSet< T, Cmp > & | rOtherSet | ) | [inline, virtual] |
Attributes access.
This virtual function provides an interface for derived classes with attributes eg TaIndexSet. It is meant to copy attributes from the specified set. The TBaseSet itself has no attributes and thus this function does nothing.
rOtherSet | Other BaseSet |
Reimplemented in faudes::TaBaseSet< T, Attr, Cmp >.
virtual Idx faudes::TBaseSet< T, Cmp >::AttributesSize | ( | void | ) | const [inline, virtual] |
Attribute access.
This virtual function provides an interface for derived classes with attributes eg TaIndexSet. It is meant to provide the number of explicit attributes. The TBaseSet itself has no attributes and thus this function returns 0.
Reimplemented in faudes::TaBaseSet< T, Attr, Cmp >, faudes::TaBaseSet< long unsigned int, faudes::SimEventAttribute >, faudes::TaBaseSet< long unsigned int, faudes::AttributeCFlags >, faudes::TaBaseSet< long unsigned int, EventAttr >, faudes::TaBaseSet< long unsigned int, faudes::HioStateFlags >, faudes::TaBaseSet< long unsigned int, StateAttr >, faudes::TaBaseSet< long unsigned int, faudes::AttributeTimedState >, faudes::TaBaseSet< long unsigned int, faudes::AttributeFailureEvents >, faudes::TaBaseSet< long unsigned int, faudes::DiagLabelSet >, faudes::TaBaseSet< long unsigned int, faudes::HioEventFlags >, faudes::TaBaseSet< long unsigned int, faudes::AttributeSimplenetEvent >, faudes::TaBaseSet< long unsigned int, Attr >, faudes::TaBaseSet< long unsigned int, faudes::AttributeSignalEvent >, faudes::TaBaseSet< faudes::Transition, Attr, faudes::TransSort::X1EvX2 >, and faudes::TaBaseSet< long unsigned int, faudes::SimConditionAttribute >.
virtual void faudes::TBaseSet< T, Cmp >::ClearAttributes | ( | void | ) | [inline, virtual] |
Attribute access.
This virtual function provides an interface for derived classes with attributes eg TaIndexSet. The TBaseSet itself has no attributes and thus this function does nothing.
Reimplemented in faudes::TaBaseSet< T, Attr, Cmp >, faudes::TaBaseSet< long unsigned int, faudes::SimEventAttribute >, faudes::TaBaseSet< long unsigned int, faudes::AttributeCFlags >, faudes::TaBaseSet< long unsigned int, EventAttr >, faudes::TaBaseSet< long unsigned int, faudes::HioStateFlags >, faudes::TaBaseSet< long unsigned int, StateAttr >, faudes::TaBaseSet< long unsigned int, faudes::AttributeTimedState >, faudes::TaBaseSet< long unsigned int, faudes::AttributeFailureEvents >, faudes::TaBaseSet< long unsigned int, faudes::DiagLabelSet >, faudes::TaBaseSet< long unsigned int, faudes::HioEventFlags >, faudes::TaBaseSet< long unsigned int, faudes::AttributeSimplenetEvent >, faudes::TaBaseSet< long unsigned int, Attr >, faudes::TaBaseSet< long unsigned int, faudes::AttributeSignalEvent >, faudes::TaBaseSet< faudes::Transition, Attr, faudes::TransSort::X1EvX2 >, and faudes::TaBaseSet< long unsigned int, faudes::SimConditionAttribute >.
virtual bool faudes::TBaseSet< T, Cmp >::EqualAttributes | ( | const TBaseSet< T, Cmp > & | rOtherSet | ) | const [inline, virtual] |
Attribute access.
This virtual function provides an interface for derived classes with attributes eg TaIndexSet. Derived classes that provide attributes are meant to return true if attributes match for shared elements. The base set returns true as a default.
rOtherSet | Other object to compare with. |
Reimplemented in faudes::TaBaseSet< T, Attr, Cmp >.
AttributeVoid * faudes::TBaseSet< T, Cmp >::Attributep | ( | const T & | rElem | ) | [inline, virtual] |
Attribute access.
This virtual function provides an interface for derived classes with attributes eg TaIndexSet. The TBaseSet has no attributes and thus throws an exception. Derived classes that provide attributes are meant to return a pointer to the attribute specified by rElem.
rElem | Element of which the attribute is requested |
Exception |
|
Reimplemented in faudes::TaBaseSet< T, Attr, Cmp >.
const AttributeVoid & faudes::TBaseSet< T, Cmp >::Attribute | ( | const T & | rElem | ) | const [inline, virtual] |
Attribute access.
This virtual function provides an interface for derived classes with attributes eg TaIndexSet. The TBaseSet has no attributes and thus returns a void attribute. Derived classes that provide attributes are meant to return the attribute specified by rElem.
rElem | Element of which the attribute is requested |
Reimplemented in faudes::TaBaseSet< T, Attr, Cmp >.
void faudes::TBaseSet< T, Cmp >::Attribute | ( | const T & | rElem, | |
const Type & | rAttr | |||
) | [inline, virtual] |
Attribute access.
This virtual function provides an interface for derived classes with attributes eg TaIndexSet. The TBaseSet itself has void attributes and thus formally accepts any nontrivial attribute, however, ignoring any value. Derived classes that provide attributes are meant to set the attribute as specified. Only if the required cast to the actual attribute type fails an exception is thrown.
rElem | Element of which the attribute is to be set | |
rAttr | Attribute value to set. |
Exception |
|
Reimplemented in faudes::TaBaseSet< T, Attr, Cmp >.
virtual void faudes::TBaseSet< T, Cmp >::AttributeTry | ( | const T & | rElem, | |
const Type & | rAttr | |||
) | [inline, virtual] |
Attribute access.
This virtual function provides an interface for derived classes with attributes eg TaIndexSet. It is meant to try to set the attribute as specified if the type can be casted. Otherwise it does nothing.
rElem | Element of which the attribute is to be set | |
rAttr | Attribute value to set. |
Reimplemented in faudes::TaBaseSet< T, Attr, Cmp >.
virtual void faudes::TBaseSet< T, Cmp >::ClrAttribute | ( | const T & | rElem | ) | [inline, virtual] |
Attribute access.
This virtual function provides an interface for derived classes with attributes eg TaIndexSet. It is meant to set the attribute of the specified element to the default value. The TBaseSet itself has no attributes and thus this function does nothing.
rElem | Element of which the attribute is to be cleared |
Reimplemented in faudes::TaBaseSet< T, Attr, Cmp >.
void faudes::TBaseSet< T, Cmp >::DoWrite | ( | TokenWriter & | rTw, | |
const std::string & | rLabel = "" , |
|||
const Type * | pContext = 0 | |||
) | const [inline, protected, virtual] |
Token output, see Type::DWrite for public wrappers.
Reimplement this function in derived classes for specific specific template parameters. By convention, the default label "" should be translated to a) the name of the set or b) some meaningful default, eg "IndexSet" for a set of indices". The pContext pointer can de type-checked and interpreted, ie as a symboltable to provide symbolic names. It is also passed on to attributes.
rTw | Reference to TokenWriter | |
rLabel | Label of section to write, defaults to name of set | |
pContext | Write context to provide contextual information |
Reimplemented from faudes::Type.
Reimplemented in faudes::IndexSet, faudes::NameSet, faudes::SymbolSet, faudes::TTransSet< Cmp >, faudes::TTransSet< faudes::TransSort::EvX2X1 >, and faudes::TTransSet< faudes::TransSort::X1EvX2 >.
void faudes::TBaseSet< T, Cmp >::DoDWrite | ( | TokenWriter & | rTw, | |
const std::string & | rLabel = "" , |
|||
const Type * | pContext = 0 | |||
) | const [inline, protected, virtual] |
Token output, debugging see Type::DWrite for public wrappers.
Reimplement this function in derived classes for specific specific template parameters.
rTw | Reference to TokenWriter | |
rLabel | Label of section to write, defaults to name of set | |
pContext | Write context to provide contextual information |
Reimplemented from faudes::Type.
Reimplemented in faudes::NameSet.
void faudes::TBaseSet< T, Cmp >::DoSWrite | ( | TokenWriter & | rTw | ) | const [inline, protected, virtual] |
Token output, see Type::SWrite for public wrappers.
Statistics include size, name and attributey type. The latter is retrieved from the RTI, if initialized. Dereived sets may reimplement this method.
rTw | Reference to TokenWriter |
Reimplemented from faudes::Type.
void faudes::TBaseSet< T, Cmp >::DoRead | ( | TokenReader & | rTr, | |
const std::string & | rLabel = "" , |
|||
const Type * | pContext = 0 | |||
) | [inline, protected, virtual] |
Token input, see Type::Read for public wrappers.
Reimplement this function in derived classes for specific specific template parameters. By convention, the default label "" should be translated to some meaningful default, eg "IndexSet" for a set of indices". The pContext pointer can de type-checked and interpreted, ie as a symboltable to provide symbolic names. It is also passed on to attributes.
rTr | Reference to TokenReader | |
rLabel | Label of section to read, defaults to name of set | |
pContext | Read context to provide contextual information |
Reimplemented from faudes::Type.
Reimplemented in faudes::IndexSet, faudes::NameSet, and faudes::SymbolSet.
TBaseSet< T, Cmp > & faudes::TBaseSet< T, Cmp >::DoAssign | ( | const TBaseSet< T, Cmp > & | rSourceSet | ) | [inline, protected, virtual] |
bool faudes::TBaseSet< T, Cmp >::DoEqual | ( | const TBaseSet< T, Cmp > & | rOtherSet | ) | const [inline, protected, virtual] |
TBaseSet< T, Cmp >::Iterator faudes::TBaseSet< T, Cmp >::ThisIterator | ( | const typename std::set< T, Cmp >::const_iterator & | sit | ) | const [inline, protected] |
void faudes::TBaseSet< T, Cmp >::RelinkReferences | ( | void | ) | [inline, protected] |
void faudes::TBaseSet< T, Cmp >::AttachReference | ( | TBaseSet< T, Cmp > * | pRef | ) | const [inline, protected] |
void faudes::TBaseSet< T, Cmp >::DetachReference | ( | TBaseSet< T, Cmp > * | pRef | ) | const [inline, protected] |
void faudes::TBaseSet< T, Cmp >::AttachIterator | ( | Iterator * | pFit | ) | const [inline, protected] |
void faudes::TBaseSet< T, Cmp >::DetachIterator | ( | Iterator * | pFit | ) | const [inline, protected] |
friend class TaBaseSet [friend] |
std::set<T,Cmp>* faudes::TBaseSet< T, Cmp >::mpSet [protected] |
std::map<T,AttributeVoid*>* faudes::TBaseSet< T, Cmp >::mpAttributes [protected] |
std::set< T, Cmp > faudes::TBaseSet< T, Cmp >::mEmptySet = std::set<T,Cmp>() [inline, static, protected] |
std::map< T, AttributeVoid * > faudes::TBaseSet< T, Cmp >::mEmptyAttributes = std::map<T,AttributeVoid*>() [inline, static, protected] |
std::set<T,Cmp>* faudes::TBaseSet< T, Cmp >::pSet [protected] |
std::map<T,AttributeVoid*>* faudes::TBaseSet< T, Cmp >::pAttributes [protected] |
std::string faudes::TBaseSet< T, Cmp >::mMyName [protected] |
std::set< TBaseSet<T,Cmp>* > faudes::TBaseSet< T, Cmp >::mReferences [protected] |
TBaseSet<T,Cmp>* faudes::TBaseSet< T, Cmp >::pBaseSet [protected] |
bool faudes::TBaseSet< T, Cmp >::mDetached [protected] |
bool faudes::TBaseSet< T, Cmp >::mLocked [protected] |
std::set< Iterator* > faudes::TBaseSet< T, Cmp >::mIterators [protected] |
libFAUDES 2.14g --- 2009-12-3 --- c++ source docu by doxygen 1.5.6