| |
|
|||||||
|
|
||||||||
|
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 588 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 1157 of file cfl_nameset.h. ◆ TaNameSet() [2/4]
template<class Attr >
Copy-constructor from other TaNameSet (incl attributes and symboltable)
Definition at line 1168 of file cfl_nameset.h. ◆ TaNameSet() [3/4]
template<class Attr >
Constructor from NameSet (sets default attributes, same symboltable)
Definition at line 1178 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 1189 of file cfl_nameset.h. ◆ ~TaNameSet()
template<class Attr >
Virtual destructor Definition at line 644 of file cfl_nameset.h. Member Function Documentation◆ 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 888 of file cfl_nameset.h. ◆ Attribute() [2/6]
template<class Attr >
Definition at line 889 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 890 of file cfl_nameset.h. ◆ Attribute() [4/6]
template<class Attr >
Definition at line 894 of file cfl_nameset.h. ◆ Attribute() [5/6]
template<class Attr >
Definition at line 900 of file cfl_nameset.h. ◆ Attribute() [6/6]
template<class Attr >
Definition at line 903 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 887 of file cfl_nameset.h. ◆ Attributep() [2/2]
template<class Attr >
Definition at line 897 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 1427 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 891 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 886 of file cfl_nameset.h. ◆ Copy()
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 1225 of file cfl_nameset.h. ◆ DoCopy()
template<class Attr >
Copy to other name set. Performs a fake copy, see TBaseSet. This function maintains attributes.
Definition at line 1208 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 1216 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 1330 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 1352 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 1337 of file cfl_nameset.h. ◆ EraseSet() [1/2]
template<class Attr >
Erase elements indicated by rOtherSet
Definition at line 1358 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 1373 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 1251 of file cfl_nameset.h. ◆ Insert() [2/4]
template<class Attr >
Add an element by index incl. attribute
Definition at line 1265 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 1279 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 1287 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 1296 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 1310 of file cfl_nameset.h. ◆ operator=()
template<class Attr >
Relaxed assignment operator (uses base class to maintain attributes)
Definition at line 664 of file cfl_nameset.h. ◆ RestrictSet() [1/2]
template<class Attr >
Restrict elements indicated by rOtherSet
Definition at line 1393 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 1407 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 1448 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 1454 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 596 of file cfl_nameset.h. The documentation for this class was generated from the following file: libFAUDES 2.34e --- 2026.03.16 --- c++ api documentaion by doxygen |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||