faudes::TaNameSet< Attr > Class Template Reference

#include <cfl_nameset.h>

Public Member Functions

 TaNameSet (void)
 
 TaNameSet (const TaNameSet &rOtherSet)
 
 TaNameSet (const NameSet &rOtherSet)
 
 TaNameSet (const std::string &rFilename, const std::string &rLabel="")
 
virtual ~TaNameSet (void)
 
virtual TaNameSetAssign (const TBaseSet< Idx > &rSrc)
 
TaNameSetoperator= (const NameSet &rSrc)
 
virtual bool Insert (const Idx &rIndex)
 
virtual bool Insert (const Idx &rIndex, const Attr &rAttr)
 
virtual Idx Insert (const std::string &rName)
 
virtual Idx Insert (const std::string &rName, const Attr &rAttr)
 
virtual void InsertSet (const NameSet &rOtherSet)
 
virtual void InsertSet (const TBaseSet< Idx > &rOtherSet)
 
virtual bool Erase (const Idx &rIndex)
 
virtual bool Erase (const std::string &rName)
 
virtual NameSet::Iterator Erase (const Iterator &pos)
 
virtual void EraseSet (const NameSet &rOtherSet)
 
virtual void EraseSet (const TBaseSet< Idx > &rOtherSet)
 
virtual void RestrictSet (const NameSet &rOtherSet)
 
virtual void RestrictSet (const TBaseSet< Idx > &rOtherSet)
 
virtual void Attributes (const TBaseSet< Idx > &rOtherSet)
 
std::string Str (const Idx &rIndex) const
 
const Attr * AttributeType (void) const
 
Attr * Attributep (const Idx &rElem)
 
const Attr & Attribute (const Idx &rElem) const
 
void Attribute (const Idx &rElem, const Attr &rAttr)
 
void Attribute (const Idx &rElem, const Type &rAttr)
 
void AttributeTry (const Idx &rElem, const Type &rAttr)
 
const Attr & Attribute (const std::string &rName) const
 
Attr * Attributep (const std::string &rName)
 
void Attribute (const std::string &rName, const Attr &rAttr)
 
void Attribute (const std::string &rName, const Type &rAttr)
 
- Public Member Functions inherited from faudes::NameSet
 NameSet (void)
 
 NameSet (const NameSet &rOtherSet)
 
 NameSet (const std::string &rFilename, const std::string &rLabel="")
 
virtual ~NameSet (void)
 
SymbolTableSymbolTablep (void) const
 
void SymbolTablep (SymbolTable *pSymTab)
 
bool Insert (const Idx &rIndex)
 
Idx Insert (const std::string &rName)
 
void EraseSet (const NameSet &rOtherSet)
 
void RestrictSet (const NameSet &rOtherSet)
 
void SymbolicName (Idx index, const std::string &rName)
 
void SymbolicName (const std::string &rName, const std::string &rNewName)
 
std::string SymbolicName (Idx index) const
 
Idx Index (const std::string &rName) const
 
bool Exists (const Idx &rIndex) const
 
bool Exists (const std::string &rName) const
 
NameSet::Iterator Find (const Idx &rIndex) const
 
NameSet::Iterator Find (const std::string &rName) const
 
NameSet operator+ (const NameSet &rOtherSet) const
 
NameSet operator- (const NameSet &rOtherSet) const
 
NameSet operator* (const NameSet &rOtherSet) const
 
bool operator<= (const NameSet &rOtherSet) const
 
bool operator>= (const NameSet &rOtherSet) const
 
std::string Str (const Idx &rIndex) const
 
- Public Member Functions inherited from faudes::TBaseSet< Idx >
 TBaseSet (void)
 
 TBaseSet (const TBaseSet &rOtherSet)
 
 TBaseSet (const std::string &rFilename, const std::string &rLabel="BaseSet")
 
virtual ~TBaseSet (void)
 
const std::string & Name (void) const
 
void Name (const std::string &rName)
 
virtual void Clear (void)
 
Idx Size (void) const
 
bool Empty (void) const
 
virtual std::string Str (const Idx &rElem) const
 
Iterator Begin (void) const
 
Iterator End (void) const
 
virtual bool Valid (const Idx &rElem) const
 
virtual bool Erase (const Idx &rElem)
 
virtual Iterator Erase (const Iterator &pos)
 
virtual void EraseSet (const TBaseSet &rOtherSet)
 
virtual void RestrictSet (const TBaseSet &rOtherSet)
 
virtual bool Disjoint (const TBaseSet &rOtherSet) const
 
virtual bool Insert (const Idx &rElem)
 
virtual Iterator Inject (const Iterator &pos, const Idx &rElem)
 
virtual void Inject (const Idx &rElem)
 
virtual void InsertSet (const TBaseSet &rOtherSet)
 
bool Exists (const Idx &rElem) const
 
Iterator Find (const Idx &rElem) const
 
TBaseSet operator+ (const TBaseSet &rOtherSet) const
 
TBaseSet operator- (const TBaseSet &rOtherSet) const
 
TBaseSet operator* (const TBaseSet &rOtherSet) const
 
bool operator<= (const TBaseSet &rOtherSet) const
 
bool operator>= (const TBaseSet &rOtherSet) const
 
bool operator< (const TBaseSet &rOtherSet) const
 
void DValid (const std::string &rMessage="") const
 
void Detach (DetachMode flag=AttrIncl) const
 
void Lock (void) const
 
virtual bool AttributeTest (const Type &rAttr) const
 
virtual TBaseSetAssignWithoutAttributes (const TBaseSet &rSourceSet)
 
virtual void Attributes (const TBaseSet &rOtherSet)
 
Idx AttributesSize (void) const
 
void ClearAttributes (void)
 
bool EqualAttributes (const TBaseSet &rOtherSet) const
 
virtual AttributeVoidAttributep (const Idx &rElem)
 
virtual const AttributeVoidAttribute (const Idx &rElem) const
 
virtual void Attribute (const Idx &rElem, const Type &rAttr)
 
virtual void ClrAttribute (const Idx &rElem)
 
virtual void XElementTag (const std::string &rTag)
 
virtual const std::string & TypeName (void) const
 
virtual void TypeName (const std::string &rType)
 
Typeoperator= (const Type &rSrc)
 
bool operator== (const Type &rOther) const
 
bool operator!= (const Type &rOther) const
 
- Public Member Functions inherited from faudes::Type
 Type (void)
 
 Type (const Type &rType)
 
virtual ~Type (void)
 
virtual TypeNew (void) const
 
virtual TypeCopy (void) const
 
virtual const TypeCast (const Type *pOther) const
 
virtual TypeAssign (const Type &rSrc)
 
Typeoperator= (const Type &rSrc)
 
virtual bool Equal (const Type &rOther) const
 
bool operator== (const Type &rOther) const
 
bool operator!= (const Type &rOther) const
 
void Write (const Type *pContext=0) const
 
void Write (const std::string &pFileName, const std::string &rLabel="", const Type *pContext=0, std::ios::openmode openmode=std::ios::out|std::ios::trunc) const
 
void Write (const std::string &pFileName, std::ios::openmode openmode) const
 
void Write (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const
 
virtual void XWrite (const std::string &pFileName, const std::string &rLabel="", const Type *pContext=0) const
 
void XWrite (const Type *pContext=0) const
 
void XWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const
 
std::string ToString (const std::string &rLabel="", const Type *pContext=0) const
 
std::string ToText (const std::string &rLabel="", const Type *pContext=0) const
 
void DWrite (const Type *pContext=0) const
 
void DWrite (const std::string &pFileName, const std::string &rLabel="", const Type *pContext=0, std::ios::openmode openmode=std::ios::out|std::ios::trunc) const
 
void DWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const
 
void SWrite (TokenWriter &rTw) const
 
void SWrite (void) const
 
std::string ToSText (void) const
 
void Read (const std::string &rFileName, const std::string &rLabel="", const Type *pContext=0)
 
void FromString (const std::string &rString, const std::string &rLabel="", const Type *pContext=0)
 
void Read (TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0)
 
- Public Member Functions inherited from faudes::TAttrMap< Idx, Attr >
 TAttrMap (TBaseSet< Idx, std::less< Idx > > *pBaseSetRef)
 
virtual ~TAttrMap (void)
 
void AssignWithAttributes (const TBaseSet< Idx, std::less< Idx > > &rSourceSet)
 
const Attr * AttributeType (void) const
 
Attr * Attributep (const Idx &rElem)
 
const Attr & Attribute (const Idx &rElem) const
 
void Attribute (const Idx &rElem, const Type &attr)
 
void Attribute (const Idx &rElem, const Attr &attr)
 
void AttributeTry (const Idx &rElem, const Type &attr)
 
bool Insert (const Idx &rElem)
 
bool Insert (const Idx &rElem, const Attr &attr)
 
void InsertSet (const TBaseSet< Idx, std::less< Idx > > &rOtherSet)
 
bool Erase (const Idx &rElem)
 
TBaseSet< Idx, std::less< Idx > >::Iterator Erase (const typename TBaseSet< Idx, std::less< Idx > >::Iterator &pos)
 
void EraseSet (const TBaseSet< Idx, std::less< Idx > > &rOtherSet)
 
void RestrictSet (const TBaseSet< Idx, std::less< Idx > > &rOtherSet)
 

Protected Member Functions

void DoAssign (const TaNameSet &rSourceSet)
 
bool DoEqual (const NameSet &rOtherSet) const
 
- Protected Member Functions inherited from faudes::NameSet
void DoAssign (const NameSet &rSourceSet)
 
bool DoEqual (const NameSet &rOtherSet) const
 
virtual void DoWrite (TokenWriter &tw, const std::string &rLabel="", const Type *pContext=0) const
 
virtual void DoDWrite (TokenWriter &tw, const std::string &rLabel="", const Type *pContext=0) const
 
virtual void DoXWrite (TokenWriter &tw, const std::string &rLabel="", const Type *pContext=0) const
 
virtual void DoRead (TokenReader &tr, const std::string &rLabel="", const Type *pContext=0)
 
- Protected Member Functions inherited from faudes::TBaseSet< Idx >
virtual const std::string & XElementTag (void) const
 
virtual void DoSWrite (TokenWriter &rTw) const
 
void DoAssign (const TBaseSet &rSourceSet)
 
bool DoEqual (const TBaseSet &rOtherSet) const
 
void DoAttribute (const Idx &rElem, const Type *pAttr)
 
const AttributeVoidDoAttribute (const Idx &rElem) const
 
AttributeVoidDoAttributeExplicit (const Idx &rElem)
 
TBaseSet< Idx, std::less< Idx > >::Iterator ThisIterator (const typename std::set< Idx, std::less< Idx > >::const_iterator &sit) const
 
void RelinkClients (void)
 
void AttachClient (TBaseSet *pRef) const
 
void DetachClient (TBaseSet *pRef) const
 
void AttachIterator (Iterator *pFit) const
 
void DetachIterator (Iterator *pFit) const
 
virtual const TypeDefinitionTypeDefinitionp (void) const
 
- Protected Member Functions inherited from faudes::Type
void DoAssign (const Type &rSrc)
 
bool DoEqual (const Type &rOther) const
 
virtual Token XBeginTag (const std::string &rLabel="", const std::string &rFallbackLabel="") const
 

Friends

class NameSet
 

Additional Inherited Members

- Public Types inherited from faudes::TBaseSet< Idx >
enum  DetachMode
 
- Protected Types inherited from faudes::TBaseSet< Idx >
typedef std::set< Idx, std::less< Idx > >::iterator iterator
 
typedef std::set< Idx, std::less< Idx > >::const_iterator const_iterator
 
typedef std::map< Idx, AttributeVoid * >::iterator aiterator
 
typedef std::map< Idx, AttributeVoid * >::const_iterator const_aiterator
 
- Protected Types inherited from faudes::TAttrMap< Idx, Attr >
typedef TBaseSet< Idx, std::less< Idx > >::iterator iterator
 
typedef TBaseSet< Idx, std::less< Idx > >::const_iterator const_iterator
 
typedef TBaseSet< Idx, std::less< Idx > >::aiterator aiterator
 
typedef TBaseSet< Idx, std::less< Idx > >::const_aiterator const_aiterator
 
- Protected Attributes inherited from faudes::NameSet
SymbolTablempSymbolTable
 
- Protected Attributes inherited from faudes::TBaseSet< Idx >
std::string mMyName
 
std::set< Idx, std::less< Idx > > * pSet
 
std::set< Idx, std::less< Idx > > * mpSet
 
std::map< Idx, AttributeVoid * > * pAttributes
 
std::map< Idx, AttributeVoid * > * mpAttributes
 
TBaseSet< Idx, std::less< Idx > > * pHostSet
 
std::list< TBaseSet< Idx, std::less< Idx > > * >::iterator mClientRecord
 
std::list< TBaseSet< Idx, std::less< Idx > > * > * mpClients
 
bool mDetached
 
bool mLocked
 
std::set< Iterator * > mIterators
 
std::string mXElementTagDef
 
- Protected Attributes inherited from faudes::TAttrMap< Idx, Attr >
TBaseSet< Idx, std::less< Idx > > * pBaseSet
 
- Static Protected Attributes inherited from faudes::TBaseSet< Idx >
static std::set< Idx, std::less< Idx > > msEmptySet
 
static std::map< Idx, AttributeVoid * > msEmptyAttributes
 

Detailed Description

template<class Attr>
class faudes::TaNameSet< Attr >

Set of indices with symbolic names and attributes.

This class is derived from NameSet and the interface TAttrMap.

The file format is demonstrated by the following example of a set "Alphabet" consisting of events "alpha", "beta" and "gamma" with "gamma" having some attribute (see eg AtributeFlags)

"alpha"
"beta"
"gamma" 0x0f
TaNameSet< AttributeCFlags > Alphabet

As with TBaseSet, reading a file silently ignores unknown attributes. Thus, the above example may also be read as NameSet.

Definition at line 566 of file cfl_nameset.h.

Constructor & Destructor Documentation

◆ TaNameSet() [1/4]

template<class Attr >
faudes::TaNameSet< Attr >::TaNameSet ( void  )

Constructor for NameSet referring to the static SymbolTable.

Definition at line 922 of file cfl_nameset.h.

◆ TaNameSet() [2/4]

template<class Attr >
faudes::TaNameSet< Attr >::TaNameSet ( const TaNameSet< Attr > &  rOtherSet)

Copy-constructor from other TaNameSet (incl attributes and symboltable)

Parameters
rOtherSetSet to copy

Definition at line 933 of file cfl_nameset.h.

◆ TaNameSet() [3/4]

template<class Attr >
faudes::TaNameSet< Attr >::TaNameSet ( const NameSet rOtherSet)

Constructor from NameSet (sets default attributes, same symboltable)

Parameters
rOtherSetSet to copy

Definition at line 943 of file cfl_nameset.h.

◆ TaNameSet() [4/4]

template<class Attr >
faudes::TaNameSet< Attr >::TaNameSet ( const std::string &  rFilename,
const std::string &  rLabel = "" 
)

Constructor from file. This constructor reads a NameSet from a file using the DoRead(TokenReader&, const std::String&) function. The section is specified by rLabel and the static SymbolTable is used.

Parameters
rFilenameName of File
rLabelSection for the set in the file;

Definition at line 954 of file cfl_nameset.h.

◆ ~TaNameSet()

template<class Attr >
virtual faudes::TaNameSet< Attr >::~TaNameSet ( void  )
inlinevirtual

Virtual destructor

Definition at line 622 of file cfl_nameset.h.

Member Function Documentation

◆ Assign()

template<class Attr >
TaNameSet< Attr > & faudes::TaNameSet< Attr >::Assign ( const TBaseSet< Idx > &  rSrc)
virtual

Relaxed assignment method (uses base class to maintain attributes)

Runtimetype check for TransSet, maintains attributes provided they can be casted.

Parameters
rSrcSource from which to assign
Returns
Ref to this set

Definition at line 990 of file cfl_nameset.h.

◆ Attribute() [1/6]

template<class Attr >
const Attr& faudes::TaNameSet< Attr >::Attribute ( const Idx rElem) const
inline

Definition at line 853 of file cfl_nameset.h.

◆ Attribute() [2/6]

template<class Attr >
void faudes::TaNameSet< Attr >::Attribute ( const Idx rElem,
const Attr &  rAttr 
)
inline

Definition at line 854 of file cfl_nameset.h.

◆ Attribute() [3/6]

template<class Attr >
void faudes::TaNameSet< Attr >::Attribute ( const Idx rElem,
const Type rAttr 
)
inline

Definition at line 855 of file cfl_nameset.h.

◆ Attribute() [4/6]

template<class Attr >
const Attr& faudes::TaNameSet< Attr >::Attribute ( const std::string &  rName) const
inline

Definition at line 859 of file cfl_nameset.h.

◆ Attribute() [5/6]

template<class Attr >
void faudes::TaNameSet< Attr >::Attribute ( const std::string &  rName,
const Attr &  rAttr 
)
inline

Definition at line 865 of file cfl_nameset.h.

◆ Attribute() [6/6]

template<class Attr >
void faudes::TaNameSet< Attr >::Attribute ( const std::string &  rName,
const Type rAttr 
)
inline

Definition at line 868 of file cfl_nameset.h.

◆ Attributep() [1/2]

template<class Attr >
Attr* faudes::TaNameSet< Attr >::Attributep ( const Idx rElem)
inline

Definition at line 852 of file cfl_nameset.h.

◆ Attributep() [2/2]

template<class Attr >
Attr* faudes::TaNameSet< Attr >::Attributep ( const std::string &  rName)
inline

Definition at line 862 of file cfl_nameset.h.

◆ Attributes()

template<class Attr >
void faudes::TaNameSet< Attr >::Attributes ( const TBaseSet< Idx > &  rOtherSet)
virtual

Set attributes. Provided that rOtherSet has attributes that can be casted to the appropriate type, attributes are copied per element from rOtherSet. Elements of this set which are not in rOtherSet maintain their attribute.

Parameters
rOtherSetOther IndexSet
Exceptions
Exception
  • Element does not exist (63)
  • Cannot cast attribute type (63)
  • Cannot cast to NameSet (63)

Definition at line 1186 of file cfl_nameset.h.

◆ AttributeTry()

template<class Attr >
void faudes::TaNameSet< Attr >::AttributeTry ( const Idx rElem,
const Type rAttr 
)
inlinevirtual

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.

Parameters
rElemElement of which the attribute is to be set
rAttrAttribute value to set.

Reimplemented from faudes::TBaseSet< Idx >.

Definition at line 856 of file cfl_nameset.h.

◆ AttributeType()

template<class Attr >
const Attr* faudes::TaNameSet< Attr >::AttributeType ( void  ) const
inlinevirtual

resolve ambiguities from attribute interface ("using" wont do the job)

Reimplemented from faudes::TBaseSet< Idx >.

Definition at line 851 of file cfl_nameset.h.

◆ DoAssign()

template<class Attr >
void faudes::TaNameSet< Attr >::DoAssign ( const TaNameSet< Attr > &  rSourceSet)
protected

Assign to other name set. Performs a fake copy, see TBaseSet. This function maintains attributes.

Parameters
rSourceSetDestination to copy from
Returns
ref to this set

Definition at line 973 of file cfl_nameset.h.

◆ DoEqual()

template<class Attr >
bool faudes::TaNameSet< Attr >::DoEqual ( const NameSet rOtherSet) const
protected

Test equality of configuration data, ignore attributes Ignore name of the set, insist in matching symboltables.

Parameters
rOtherSetOther object to compare with.
Returns
True on match.

Definition at line 981 of file cfl_nameset.h.

◆ Erase() [1/3]

template<class Attr >
bool faudes::TaNameSet< Attr >::Erase ( const Idx rIndex)
virtual

Delete element by index. Symbolic name is not removed from SymbolTable.

Parameters
rIndexIndex to delete
Returns
True if element did exist

Reimplemented from faudes::NameSet.

Definition at line 1089 of file cfl_nameset.h.

◆ Erase() [2/3]

template<class Attr >
NameSet::Iterator faudes::TaNameSet< Attr >::Erase ( const Iterator &  pos)
virtual

Delete element by iterator. Symbolic name is not removed from SymbolTable.

Parameters
posTaNameSet::iterator
Returns
Iterator to next element
Exceptions
Exception
  • invalid iterator (id 62)

Reimplemented from faudes::NameSet.

Definition at line 1111 of file cfl_nameset.h.

◆ Erase() [3/3]

template<class Attr >
bool faudes::TaNameSet< Attr >::Erase ( const std::string &  rName)
virtual

Delete element by symbolic name. Symbolic name is not removed from SymbolTable

Parameters
rNameSymbolic name of element to dlete
Returns
True if element did exist
Exceptions
Exception
  • name not found in Symboltable (id 66)

Reimplemented from faudes::NameSet.

Definition at line 1096 of file cfl_nameset.h.

◆ EraseSet() [1/2]

template<class Attr >
void faudes::TaNameSet< Attr >::EraseSet ( const NameSet rOtherSet)
virtual

Erase elements indicated by rOtherSet

Exceptions
Exception
  • symboltable mismatch (id 67)
Parameters
rOtherSetOther StateSet

Definition at line 1117 of file cfl_nameset.h.

◆ EraseSet() [2/2]

template<class Attr >
void faudes::TaNameSet< Attr >::EraseSet ( const TBaseSet< Idx > &  rOtherSet)
virtual

Erase elements specified by rOtherSet

This function requires a runtime cast to access the synboltable. An expection is thrown if the cast fails.

Parameters
rOtherSetOther NameSet
Exceptions
Exception
  • symboltable mismatch (id 67)
  • cast to nameset failed (id 67)

Reimplemented from faudes::NameSet.

Definition at line 1132 of file cfl_nameset.h.

◆ Insert() [1/4]

template<class Attr >
bool faudes::TaNameSet< Attr >::Insert ( const Idx rIndex)
virtual

Add an element by index. Index must be already known to the global SymbolTable. If the element already exists in the set, the attribute is maintained. Otherwise, the element is inserted with default attribute.

Parameters
rIndexIndex to add
Returns
True, if element was new to set
Exceptions
Exception
  • no symbolic name for index (id 65)

Definition at line 1010 of file cfl_nameset.h.

◆ Insert() [2/4]

template<class Attr >
bool faudes::TaNameSet< Attr >::Insert ( const Idx rIndex,
const Attr &  rAttr 
)
virtual

Add an element by index incl. attribute

Parameters
rIndexIndex to add
rAttrAttribute to add
Returns
True, if index was new to set
Exceptions
Exception
  • no symbolic name for index (id 65)

Definition at line 1024 of file cfl_nameset.h.

◆ Insert() [3/4]

template<class Attr >
Idx faudes::TaNameSet< Attr >::Insert ( const std::string &  rName)
virtual

Add an element by its symbolic name. If the name is unknown, a new index will be generated and recorded in the symboltable. If the name is known, the corresponding index will be added to the set. If the element already exists in the set, the attribute is maintained. Otherwise, the element is inserted with default attribute.

Parameters
rNamesymbolic name of element to add
Returns
Index of (new) element

Definition at line 1038 of file cfl_nameset.h.

◆ Insert() [4/4]

template<class Attr >
Idx faudes::TaNameSet< Attr >::Insert ( const std::string &  rName,
const Attr &  rAttr 
)
virtual

Add an element by its symbolic name. If the name is unknown, a new index will be generated and recorded in the symboltable. If the name is known, the corresponding index will be added to the set.

Parameters
rNamesymbolic name of element to add
rAttrAttribute
Returns
Index of (new) element

Definition at line 1046 of file cfl_nameset.h.

◆ InsertSet() [1/2]

template<class Attr >
void faudes::TaNameSet< Attr >::InsertSet ( const NameSet rOtherSet)
virtual

Inserts elements of rOtherSet.

Attributes of this set are maintained, newly inserted elements obtain the attribute from rOtherSet provided they can be casted appropriately.

Parameters
rOtherSetOther StateSet
Exceptions
Exception
  • symboltable mismatch (id 67)

Reimplemented from faudes::NameSet.

Definition at line 1055 of file cfl_nameset.h.

◆ InsertSet() [2/2]

template<class Attr >
void faudes::TaNameSet< Attr >::InsertSet ( const TBaseSet< Idx > &  rOtherSet)
virtual

Inserts all elements of rOtherSet.

This variant requires a runtime cast to access the synboltable. An expection is thrown if the cast fails.

Parameters
rOtherSetOther NameSet
Exceptions
Exception
  • symboltable mismatch (id 67)
  • cast to nameset failed (id 67)

Reimplemented from faudes::NameSet.

Definition at line 1069 of file cfl_nameset.h.

◆ operator=()

template<class Attr >
TaNameSet& faudes::TaNameSet< Attr >::operator= ( const NameSet rSrc)
inline

Relaxed assignment operator (uses base class to maintain attributes)

Parameters
rSrcSource from which to assign
Returns
Ref to this set

Definition at line 642 of file cfl_nameset.h.

◆ RestrictSet() [1/2]

template<class Attr >
void faudes::TaNameSet< Attr >::RestrictSet ( const NameSet rOtherSet)
virtual

Restrict elements indicated by rOtherSet

Exceptions
Exception
  • symboltable mismatch (id 67)
Parameters
rOtherSetOther EventSet

Definition at line 1152 of file cfl_nameset.h.

◆ RestrictSet() [2/2]

template<class Attr >
void faudes::TaNameSet< Attr >::RestrictSet ( const TBaseSet< Idx > &  rOtherSet)
virtual

Restrict to elements specified by rOtherSet

This function requires a runtime cast to access the synboltable. An expection is thrown if the cast fails.

Parameters
rOtherSetOther NameSet
Exceptions
Exception
  • symboltable mismatch (id 67)
  • cast to nameset failed (id 67)

Reimplemented from faudes::NameSet.

Definition at line 1166 of file cfl_nameset.h.

◆ Str()

template<class Attr >
std::string faudes::TaNameSet< Attr >::Str ( const Idx rIndex) const

Return pretty printable symbolic name for index. Primary meant for debugging messages.

Parameters
rIndexIndex to print
Returns
String

Definition at line 1207 of file cfl_nameset.h.

Friends And Related Function Documentation

◆ NameSet

template<class Attr >
friend class NameSet ( void  )
friend

We implement "protected privacy for template classes" by friendship. This is used for the pragmatic implemention conversion constructors.

Definition at line 574 of file cfl_nameset.h.


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

libFAUDES 2.33c --- 2025.05.15 --- c++ api documentaion by doxygen