|
faudes::TaNameSet< Attr > Class Template Reference Detailed Descriptiontemplate<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) As with TBaseSet, reading a file silently ignores unknown attributes. Thus, the above example may also be read as NameSet. Definition at line 579 of file cfl_nameset.h.
Constructor & Destructor Documentation◆ TaNameSet() [1/4]
template<class Attr >
Constructor for NameSet referring to the static SymbolTable. Definition at line 1147 of file cfl_nameset.h. ◆ TaNameSet() [2/4]
template<class Attr >
Copy-constructor from other TaNameSet (incl attributes and symboltable)
Definition at line 1158 of file cfl_nameset.h. ◆ TaNameSet() [3/4]
template<class Attr >
Constructor from NameSet (sets default attributes, same symboltable)
Definition at line 1168 of file cfl_nameset.h. ◆ TaNameSet() [4/4]
template<class Attr >
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.
Definition at line 1179 of file cfl_nameset.h. ◆ ~TaNameSet()
template<class Attr >
Virtual destructor Definition at line 635 of file cfl_nameset.h. Member Function Documentation◆ Assign()
template<class Attr >
Relaxed assignment method (uses base class to maintain attributes) Runtimetype check for TransSet, maintains attributes provided they can be casted.
Definition at line 1215 of file cfl_nameset.h. ◆ Attribute() [1/6]
template<class Attr >
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.
Reimplemented from faudes::TBaseSet< Idx >. Definition at line 879 of file cfl_nameset.h. ◆ Attribute() [2/6]
template<class Attr >
Definition at line 880 of file cfl_nameset.h. ◆ Attribute() [3/6]
template<class Attr >
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.
Reimplemented from faudes::TBaseSet< Idx >. Definition at line 881 of file cfl_nameset.h. ◆ Attribute() [4/6]
template<class Attr >
Definition at line 885 of file cfl_nameset.h. ◆ Attribute() [5/6]
template<class Attr >
Definition at line 891 of file cfl_nameset.h. ◆ Attribute() [6/6]
template<class Attr >
Definition at line 894 of file cfl_nameset.h. ◆ Attributep() [1/2]
template<class Attr >
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.
Reimplemented from faudes::TBaseSet< Idx >. Definition at line 878 of file cfl_nameset.h. ◆ Attributep() [2/2]
template<class Attr >
Definition at line 888 of file cfl_nameset.h. ◆ Attributes()
template<class Attr >
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.
Definition at line 1411 of file cfl_nameset.h. ◆ AttributeTry()
template<class Attr >
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.
Reimplemented from faudes::TBaseSet< Idx >. Definition at line 882 of file cfl_nameset.h. ◆ AttributeType()
template<class Attr >
resolve ambiguities from attribute interface ("using" wont do the job) Reimplemented from faudes::TBaseSet< Idx >. Definition at line 877 of file cfl_nameset.h. ◆ DoAssign()
template<class Attr >
Assign to other name set. Performs a fake copy, see TBaseSet. This function maintains attributes.
Definition at line 1198 of file cfl_nameset.h. ◆ DoEqual()
template<class Attr >
Test equality of configuration data, ignore attributes Ignore name of the set, insist in matching symboltables.
Definition at line 1206 of file cfl_nameset.h. ◆ Erase() [1/3]
template<class Attr >
Delete element by index. Symbolic name is not removed from SymbolTable.
Reimplemented from faudes::NameSet. Definition at line 1314 of file cfl_nameset.h. ◆ Erase() [2/3]
template<class Attr >
Delete element by iterator. Symbolic name is not removed from SymbolTable.
Reimplemented from faudes::NameSet. Definition at line 1336 of file cfl_nameset.h. ◆ Erase() [3/3]
template<class Attr >
Delete element by symbolic name. Symbolic name is not removed from SymbolTable
Reimplemented from faudes::NameSet. Definition at line 1321 of file cfl_nameset.h. ◆ EraseSet() [1/2]
template<class Attr >
Erase elements indicated by rOtherSet
Definition at line 1342 of file cfl_nameset.h. ◆ EraseSet() [2/2]
template<class Attr >
Erase elements specified by rOtherSet This function requires a runtime cast to access the synboltable. An expection is thrown if the cast fails.
Reimplemented from faudes::NameSet. Definition at line 1357 of file cfl_nameset.h. ◆ Insert() [1/4]
template<class Attr >
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.
Definition at line 1235 of file cfl_nameset.h. ◆ Insert() [2/4]
template<class Attr >
Add an element by index incl. attribute
Definition at line 1249 of file cfl_nameset.h. ◆ Insert() [3/4]
template<class Attr >
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.
Definition at line 1263 of file cfl_nameset.h. ◆ Insert() [4/4]
template<class Attr >
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.
Definition at line 1271 of file cfl_nameset.h. ◆ InsertSet() [1/2]
template<class Attr >
Inserts elements of rOtherSet. Attributes of this set are maintained, newly inserted elements obtain the attribute from rOtherSet provided they can be casted appropriately.
Reimplemented from faudes::NameSet. Definition at line 1280 of file cfl_nameset.h. ◆ InsertSet() [2/2]
template<class Attr >
Inserts all elements of rOtherSet. This variant requires a runtime cast to access the synboltable. An expection is thrown if the cast fails.
Reimplemented from faudes::NameSet. Definition at line 1294 of file cfl_nameset.h. ◆ operator=()
template<class Attr >
Relaxed assignment operator (uses base class to maintain attributes)
Definition at line 655 of file cfl_nameset.h. ◆ RestrictSet() [1/2]
template<class Attr >
Restrict elements indicated by rOtherSet
Definition at line 1377 of file cfl_nameset.h. ◆ RestrictSet() [2/2]
template<class Attr >
Restrict to elements specified by rOtherSet This function requires a runtime cast to access the synboltable. An expection is thrown if the cast fails.
Reimplemented from faudes::NameSet. Definition at line 1391 of file cfl_nameset.h. ◆ Str() [1/2]
template<class Attr >
Return pretty printable symbolic name for index. Primary meant for debugging messages.
Reimplemented from faudes::NameSet. Definition at line 1432 of file cfl_nameset.h. ◆ Str() [2/2]
template<class Attr >
Return pretty printable string for entire set Primary meant for debugging messages.
Reimplemented from faudes::NameSet. Reimplemented in faudes::RelabelMap. Definition at line 1438 of file cfl_nameset.h. Friends And Related Symbol Documentation◆ NameSet
template<class Attr >
We implement "protected privacy for template classes" by friendship. This is used for the pragmatic implemention conversion constructors. Definition at line 587 of file cfl_nameset.h. The documentation for this class was generated from the following file: libFAUDES 2.33k --- 2025.09.16 --- c++ api documentaion by doxygen |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||