faudes::TaNameSet< Attr > Class Template Reference Set of indices with symbolic names and attributes. More...
Detailed Descriptiontemplate<class Attr>
|
faudes::TaNameSet< Attr >::TaNameSet | ( | void | ) |
Constructor for NameSet referring to the static SymbolTable.
Definition at line 901 of file cfl_nameset.h.
faudes::TaNameSet< Attr >::TaNameSet | ( | const TaNameSet< Attr > & | rOtherSet | ) |
Copy-constructor from other TaNameSet (incl attributes and symboltable)
rOtherSet | Set to copy |
Definition at line 912 of file cfl_nameset.h.
faudes::TaNameSet< Attr >::TaNameSet | ( | const NameSet & | rOtherSet | ) |
Constructor from NameSet (sets default attributes, same symboltable)
rOtherSet | Set to copy |
Definition at line 922 of file cfl_nameset.h.
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.
rFilename | Name of File |
rLabel | Section for the set in the file; |
Definition at line 933 of file cfl_nameset.h.
|
inlinevirtual |
Virtual destructor.
Definition at line 612 of file cfl_nameset.h.
|
virtual |
Relaxed assignment method (uses base class to maintain attributes)
Runtimetype check for TransSet, maintains attributes provided they can be casted.
rSrc | Source from which to assign |
Definition at line 968 of file cfl_nameset.h.
|
inline |
Get attribute by element.
This function returns a const reference to the attribute of the specified element.
rElem | Specify element |
Exception |
|
Reimplemented from faudes::TAttrMap< Idx, Attr >.
Definition at line 844 of file cfl_nameset.h.
|
inline |
Set attribute.
This method sets the attribute of the sepcified element to the given value.
rElem | Specify element |
attr | Attribute value. |
Exception |
|
Reimplemented from faudes::TAttrMap< Idx, Attr >.
Definition at line 845 of file cfl_nameset.h.
|
inline |
Set attribute.
Provided that the attribute can be casted to the appropriate type, this method sets the attribute of the sepcified element to the given value.
rElem | Specify element |
attr | Attribute value. |
Exception |
|
Reimplemented from faudes::TAttrMap< Idx, Attr >.
Definition at line 846 of file cfl_nameset.h.
|
inline |
Get attribute reference by element.
Note that in order to produce a non-const reference this method will insert an explicit default attribute if necessary. If a const reference is sufficient, you should use Attribute(rElem) const instead.
rElem | Specify element |
Exception |
|
Reimplemented from faudes::TAttrMap< Idx, Attr >.
Definition at line 843 of file cfl_nameset.h.
|
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.
rOtherSet | Other IndexSet |
Exception |
|
Definition at line 1164 of file cfl_nameset.h.
|
inline |
Set attribute.
Provided that the attribute can be casted to the appropriate type, this method sets the attribute of the sepcified element to the given value. If the cast fails, this method does nothing.
rElem | Specify element |
attr | Attribute value. |
Exception |
|
Reimplemented from faudes::TAttrMap< Idx, Attr >.
Definition at line 847 of file cfl_nameset.h.
|
inline |
resolve ambiguities from attribute interface ("using" wont do the job)
Reimplemented from faudes::TAttrMap< Idx, Attr >.
Definition at line 842 of file cfl_nameset.h.
|
protected |
Assign to other name set.
Performs a fake copy, see TBaseSet. This function maintains attributes.
rSourceSet | Destination to copy from |
Definition at line 952 of file cfl_nameset.h.
|
protected |
Test equality of configuration data, ignore attributes Ignore name of the set, insist in matching symboltables.
rOtherSet | Other object to compare with. |
Reimplemented from faudes::NameSet.
Definition at line 960 of file cfl_nameset.h.
|
virtual |
Delete element by index.
Symbolic name is not removed from SymbolTable.
rIndex | Index to delete |
Reimplemented from faudes::NameSet.
Definition at line 1067 of file cfl_nameset.h.
|
virtual |
Delete element by symbolic name.
Symbolic name is not removed from SymbolTable
rName | Symbolic name of element to dlete |
Exception |
|
Reimplemented from faudes::NameSet.
Definition at line 1074 of file cfl_nameset.h.
|
virtual |
Delete element by iterator.
Symbolic name is not removed from SymbolTable.
pos | TaNameSet::iterator |
Exception |
|
Reimplemented from faudes::NameSet.
Definition at line 1089 of file cfl_nameset.h.
|
virtual |
Erase elements indicated by rOtherSet.
Exception |
|
rOtherSet | Other StateSet |
Reimplemented from faudes::NameSet.
Definition at line 1095 of file cfl_nameset.h.
|
virtual |
Erase elements specified by rOtherSet.
This function requires a runtime cast to access the synboltable. An expection is thrown if the cast fails.
rOtherSet | Other NameSet |
Exception |
|
Reimplemented from faudes::NameSet.
Definition at line 1110 of file cfl_nameset.h.
|
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.
rIndex | Index to add |
Exception |
|
Reimplemented from faudes::NameSet.
Definition at line 988 of file cfl_nameset.h.
|
virtual |
Add an element by index incl.
attribute
rIndex | Index to add |
rAttr | Attribute to add |
Exception |
|
Reimplemented from faudes::TAttrMap< Idx, Attr >.
Definition at line 1002 of file cfl_nameset.h.
|
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.
rName | symbolic name of element to add |
Reimplemented from faudes::NameSet.
Definition at line 1016 of file cfl_nameset.h.
|
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.
rName | symbolic name of element to add |
rAttr | Attribute |
Definition at line 1024 of file cfl_nameset.h.
|
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.
rOtherSet | Other StateSet |
Exception |
|
Reimplemented from faudes::NameSet.
Definition at line 1033 of file cfl_nameset.h.
|
virtual |
Inserts all elements of rOtherSet.
This variant requires a runtime cast to access the synboltable. An expection is thrown if the cast fails.
rOtherSet | Other NameSet |
Exception |
|
Reimplemented from faudes::NameSet.
Definition at line 1047 of file cfl_nameset.h.
|
inlinevirtual |
Relaxed assignment operator
(uses base class to maintain attributes)
rSrc | Source from which to assign |
Definition at line 633 of file cfl_nameset.h.
|
virtual |
Restrict elements indicated by rOtherSet.
Exception |
|
rOtherSet | Other EventSet |
Reimplemented from faudes::NameSet.
Definition at line 1130 of file cfl_nameset.h.
|
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.
rOtherSet | Other NameSet |
Exception |
|
Reimplemented from faudes::NameSet.
Definition at line 1144 of file cfl_nameset.h.
|
virtual |
Return pretty printable symbolic name for index.
Primary meant for debugging messages.
rIndex | Index to print |
Reimplemented from faudes::NameSet.
Definition at line 1185 of file cfl_nameset.h.
|
friend |
We implement "protected privacy for template classes" by friendship.
This is used for the pragmatic implemention conversion constructors.
Definition at line 572 of file cfl_nameset.h.
libFAUDES 2.28a --- 2016.09.13 --- c++ api documentaion by doxygen