Public Member Functions |
Protected Types |
Protected Member Functions |
Protected Attributes |
List of all members
faudes::TaBaseSet< T, Attr, Cmp > Class Template Reference Set with nontrivial attributes. More...
Detailed Descriptiontemplate<class T, class Attr, class Cmp = std::less<T>>
|
|
protected |
use TBaseSet STL iterators
Definition at line 450 of file cfl_abaseset.h.
|
protected |
use TBaseSet STL iterators
Definition at line 453 of file cfl_abaseset.h.
|
protected |
use TBaseSet STL iterators
Definition at line 447 of file cfl_abaseset.h.
|
protected |
use TBaseSet STL iterators
Definition at line 444 of file cfl_abaseset.h.
faudes::TaBaseSet< T, Attr, Cmp >::TaBaseSet | ( | void | ) |
Constructor.
Definition at line 504 of file cfl_abaseset.h.
faudes::TaBaseSet< T, Attr, Cmp >::TaBaseSet | ( | const TaBaseSet< T, Attr, Cmp > & | rOtherSet | ) |
Copy-constructor.
Uses DoAssign copy the set incl attributes.
rOtherSet | Source to copy from |
Definition at line 513 of file cfl_abaseset.h.
faudes::TaBaseSet< T, Attr, Cmp >::TaBaseSet | ( | const TBaseSet< T, Cmp > & | rOtherSet | ) |
Copy-constructor.
Sets attributes to default. Uses the DoAssign method to convert attributes if possible.
rOtherSet | Source to copy from |
Definition at line 522 of file cfl_abaseset.h.
faudes::TaBaseSet< T, Attr, Cmp >::TaBaseSet | ( | const std::string & | rFilename, |
const std::string & | rLabel = "BaseSet" |
||
) |
Constructor from file.
This constructor indicates the intended interface for derived classes. The base set itself cannot read from token streams.
rFilename | Name of File |
rLabel | Section for the set in the file; |
Definition at line 531 of file cfl_abaseset.h.
|
virtual |
Virtual destructor.
Definition at line 541 of file cfl_abaseset.h.
|
virtual |
Copy from a TaBaseSet with matching attributes.
rSourceSet | Set to copy from |
Definition at line 563 of file cfl_abaseset.h.
|
virtual |
Copy from a TBaseSet with attributes, provided that they can be casted acciordingly.
rSourceSet | Set to copy from |
Definition at line 569 of file cfl_abaseset.h.
|
virtual |
Copy from a TBaseSet without attributes.
This method clears all attributes even if they cound be casted.
rSourceSet | Set to copy from |
Reimplemented from faudes::TBaseSet< T, Cmp >.
Definition at line 606 of file cfl_abaseset.h.
|
virtual |
Attribute typeinfo.
Reimplemented from faudes::TBaseSet< T, Cmp >.
Definition at line 872 of file cfl_abaseset.h.
|
virtual |
Get attribute by element.
This function returns a const reference to the attribute of the specified element.
rElem | Specify element |
Exception |
|
Reimplemented from faudes::TBaseSet< T, Cmp >.
Definition at line 900 of file cfl_abaseset.h.
|
virtual |
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::TBaseSet< T, Cmp >.
Definition at line 917 of file cfl_abaseset.h.
|
virtual |
Set attribute.
This method sets the attribute of the sepcified element to the given value.
rElem | Specify element |
attr | Attribute value. |
Exception |
|
Definition at line 949 of file cfl_abaseset.h.
|
virtual |
Attribute typeinfo.
Reimplemented from faudes::TBaseSet< T, Cmp >.
Definition at line 867 of file cfl_abaseset.h.
|
virtual |
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::TBaseSet< T, Cmp >.
Definition at line 883 of file cfl_abaseset.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 BaseSet |
Exception |
|
Reimplemented from faudes::TBaseSet< T, Cmp >.
Definition at line 963 of file cfl_abaseset.h.
|
virtual |
Set attributes.
Attributes are copied per element from rOtherSet. Elements of this set which are not in rOtherSet maintain their attribute.
rOtherSet | Other BaseSet |
Definition at line 988 of file cfl_abaseset.h.
|
virtual |
Get number of explicit (aka non-default) attributes.
Reimplemented from faudes::TBaseSet< T, Cmp >.
Definition at line 1212 of file cfl_abaseset.h.
|
virtual |
Attribute typeinfo.
An TaBaseSet accepts all attributes that we can cast to our default attribute's type. The implementation uses the virtual function Cast of the default attribute to perform the test. Thus, it is crucial that Cast is re-implemented for attribute classes.
rAttr | Attribute type to test. |
Reimplemented from faudes::TBaseSet< T, Cmp >.
Definition at line 877 of file cfl_abaseset.h.
|
virtual |
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::TBaseSet< T, Cmp >.
Definition at line 935 of file cfl_abaseset.h.
|
inlinevirtual |
Faudes Type interface.
Cast object to my type.
Reimplemented from faudes::Type.
Definition at line 109 of file cfl_abaseset.h.
|
virtual |
Clear all set.
Reimplemented from faudes::TBaseSet< T, Cmp >.
Reimplemented in faudes::TaTransSet< Attr >, faudes::TaIndexSet< Attr >, faudes::TaIndexSet< DiagLabelSet >, faudes::TaIndexSet< HioStateFlags >, and faudes::TaIndexSet< StateAttr >.
Definition at line 695 of file cfl_abaseset.h.
|
virtual |
Clear all attributes to default value.
Reimplemented from faudes::TBaseSet< T, Cmp >.
Definition at line 1014 of file cfl_abaseset.h.
|
virtual |
Clear attribute to default value.
rElem | Specify element |
Reimplemented from faudes::TBaseSet< T, Cmp >.
Definition at line 1008 of file cfl_abaseset.h.
|
inlinevirtual |
Faudes Type interface.
Construct copy on heap.
Reimplemented from faudes::Type.
Definition at line 102 of file cfl_abaseset.h.
|
virtual |
Detach from extern storage (reimplement base)
Reimplemented from faudes::TBaseSet< T, Cmp >.
Definition at line 667 of file cfl_abaseset.h.
|
protectedvirtual |
assignment from source with matching attributes
Definition at line 550 of file cfl_abaseset.h.
|
protectedvirtual |
set attribute in map (assume elem exists in set, NULL <=> set to default)
Definition at line 1128 of file cfl_abaseset.h.
|
protectedvirtual |
set attribute in map (assume elem exists in set, NULL <=> set to default)
Definition at line 1172 of file cfl_abaseset.h.
|
protectedvirtual |
get attribute from map (return null if elem does not exist in map)
Definition at line 1099 of file cfl_abaseset.h.
|
protectedvirtual |
get attribute from map (insert explicit default if elem does not exist in map)
Definition at line 1107 of file cfl_abaseset.h.
|
protectedvirtual |
test equality, ignore attributes
Reimplemented from faudes::TBaseSet< T, Cmp >.
Definition at line 616 of file cfl_abaseset.h.
|
virtual |
Test whether attributes match with other set, Return true if attributes match for shared elements.
It uses the equality test of individual attributes and, hence, requires the type match too.
rOtherSet | Other set to compare with. |
Reimplemented from faudes::TBaseSet< T, Cmp >.
Definition at line 1029 of file cfl_abaseset.h.
|
virtual |
Test whether attributes match with other set, Return true if attributes match for shared elements.
It uses the equality test of individual attributes and, hence, requires the type match too.
rOtherSet | Other set to compare with. |
Definition at line 1068 of file cfl_abaseset.h.
|
virtual |
Erase Element (incl its attribute)
rElem | Specify element |
Reimplemented from faudes::TBaseSet< T, Cmp >.
Reimplemented in faudes::TaTransSet< Attr >, faudes::TaNameSet< Attr >, faudes::TaNameSet< AttributeSimCondition >, faudes::TaNameSet< AttributeFailureEvents >, faudes::TaNameSet< EventAttr >, faudes::TaNameSet< HioEventFlags >, faudes::TaNameSet< AttributeSignalEvent >, faudes::TaNameSet< SimEventAttribute >, faudes::TaNameSet< AttributeSimplenetEvent >, faudes::TaIndexSet< Attr >, faudes::TaIndexSet< DiagLabelSet >, faudes::TaIndexSet< HioStateFlags >, and faudes::TaIndexSet< StateAttr >.
Definition at line 773 of file cfl_abaseset.h.
|
virtual |
Erase element by iterator (incl attribute)
pos | Iterator to specify element |
Reimplemented from faudes::TBaseSet< T, Cmp >.
Reimplemented in faudes::TaTransSet< Attr >, faudes::TaNameSet< Attr >, faudes::TaNameSet< AttributeSimCondition >, faudes::TaNameSet< AttributeFailureEvents >, faudes::TaNameSet< EventAttr >, faudes::TaNameSet< HioEventFlags >, faudes::TaNameSet< AttributeSignalEvent >, faudes::TaNameSet< SimEventAttribute >, faudes::TaNameSet< AttributeSimplenetEvent >, faudes::TaIndexSet< Attr >, faudes::TaIndexSet< DiagLabelSet >, faudes::TaIndexSet< HioStateFlags >, and faudes::TaIndexSet< StateAttr >.
Definition at line 781 of file cfl_abaseset.h.
|
virtual |
Erase elements given by other set.
This function ignores the attributes of the other set and maintains the attributes of the remaining elements in this set.
rOtherSet | Elements to erase |
Reimplemented from faudes::TBaseSet< T, Cmp >.
Definition at line 795 of file cfl_abaseset.h.
|
virtual |
Insert element.
If the element exists, the attribute is maintained. If the element does not exist, it is inserted with default attribute.
rElem | Specify element |
Reimplemented from faudes::TBaseSet< T, Cmp >.
Reimplemented in faudes::TaTransSet< Attr >, faudes::TaNameSet< Attr >, faudes::TaNameSet< AttributeSimCondition >, faudes::TaNameSet< AttributeFailureEvents >, faudes::TaNameSet< EventAttr >, faudes::TaNameSet< HioEventFlags >, faudes::TaNameSet< AttributeSignalEvent >, faudes::TaNameSet< SimEventAttribute >, faudes::TaNameSet< AttributeSimplenetEvent >, faudes::TaIndexSet< Attr >, faudes::TaIndexSet< DiagLabelSet >, faudes::TaIndexSet< HioStateFlags >, and faudes::TaIndexSet< StateAttr >.
Definition at line 703 of file cfl_abaseset.h.
bool faudes::TaBaseSet< T, Attr, Cmp >::Insert | ( | const T & | rElem, |
const Attr & | attr | ||
) |
Insert element with attribute.
rElem | Specify element |
attr | Specify attribute of (new) element |
Reimplemented in faudes::TaTransSet< Attr >, faudes::TaNameSet< Attr >, faudes::TaNameSet< AttributeSimCondition >, faudes::TaNameSet< AttributeFailureEvents >, faudes::TaNameSet< EventAttr >, faudes::TaNameSet< HioEventFlags >, faudes::TaNameSet< AttributeSignalEvent >, faudes::TaNameSet< SimEventAttribute >, faudes::TaNameSet< AttributeSimplenetEvent >, faudes::TaIndexSet< Attr >, faudes::TaIndexSet< DiagLabelSet >, faudes::TaIndexSet< HioStateFlags >, and faudes::TaIndexSet< StateAttr >.
Definition at line 710 of file cfl_abaseset.h.
|
virtual |
Inserts elements of rOtherSet.
Attributes of this set are maintained, newly inserted elements have default attribute.
rOtherSet | Other BaseSet |
Reimplemented from faudes::TBaseSet< T, Cmp >.
Definition at line 719 of file cfl_abaseset.h.
void faudes::TaBaseSet< T, Attr, Cmp >::InsertSet | ( | const TaBaseSet< T, Attr, Cmp > & | rOtherSet | ) |
Inserts elements of rOtherSet.
Attributes of this set are maintained, new elements are inserted with attribute.
rOtherSet | Other BaseSet |
Definition at line 747 of file cfl_abaseset.h.
|
inlinevirtual |
Faudes Type interface.
Construct object of same type on heap.
Reimplemented from faudes::Type.
Definition at line 96 of file cfl_abaseset.h.
|
inlinevirtual |
Faudes Type interface.
Assignment operator with strict type matching.
rSource | Object to assign from |
Definition at line 143 of file cfl_abaseset.h.
|
inlinevirtual |
Faudes Type interface (extension).
Assignment operator incl attribute cast.
rSource | Object to assign from |
Definition at line 150 of file cfl_abaseset.h.
|
virtual |
Test set equality.
The test ignores attributes. It is implemented by the virtual method DoEqual().
rOtherSet | Other set to compare with. |
Definition at line 662 of file cfl_abaseset.h.
|
virtual |
Restrict to specified subset.
Erases any elements no in the specified set. This function ignores the attributes of the other set and maintains the attributes of the remaining elements in this set.
rOtherSet | Elements to erase |
Reimplemented from faudes::TBaseSet< T, Cmp >.
Definition at line 821 of file cfl_abaseset.h.
|
virtual |
Set intersection.
The intersection is wrt set of indices, the result is stored in this set. Attributes are set to default.
rOtherSet | Other BaseSet |
Reimplemented from faudes::TBaseSet< T, Cmp >.
Definition at line 860 of file cfl_abaseset.h.
|
virtual |
Set union.
The union is wrt the set of indices, the result is accumulated in this set. Attributes are set to default. See also InsertSet(const TaBaseSet&).
rOtherSet | Other BaseSet |
Reimplemented from faudes::TBaseSet< T, Cmp >.
Definition at line 854 of file cfl_abaseset.h.
|
protected |
default attribute
Definition at line 457 of file cfl_abaseset.h.
libFAUDES 2.24g --- 2014.09.15 --- c++ api documentaion by doxygen