faudes::TaBaseSet< T, Attr, Cmp > Class Template Reference
|
Public Types | |
typedef TBaseSet< T, Cmp > ::Iterator | Iterator |
Use TBaseSet iterators. | |
Public Member Functions | |
TaBaseSet (void) | |
Constructor. | |
TaBaseSet (const TaBaseSet &rOtherSet) | |
Copy-constructor. | |
TaBaseSet (const TBaseSet< T, Cmp > &rOtherSet) | |
Copy-constructor. | |
TaBaseSet (const std::string &rFilename, const std::string &rLabel="BaseSet") | |
Constructor from file. | |
virtual | ~TaBaseSet (void) |
Virtual destructor. | |
virtual TaBaseSet * | New (void) const |
Faudes Type interface. | |
virtual TaBaseSet * | Copy (void) const |
Faudes Type interface. | |
virtual const Type * | Cast (const Type *pType) const |
Faudes Type interface. | |
virtual TaBaseSet & | Assign (const TaBaseSet &rSourceSet) |
Copy from a TaBaseSet with matching attributes. | |
virtual TaBaseSet & | Assign (const TBaseSet< T, Cmp > &rSourceSet) |
Copy from a TBaseSet with attributes, provided that they can be casted acciordingly. | |
virtual TaBaseSet & | AssignWithoutAttributes (const TBaseSet< T, Cmp > &rSourceSet) |
Copy from a TBaseSet without attributes. | |
virtual TaBaseSet & | operator= (const TaBaseSet &rSource) |
Faudes Type interface. | |
virtual TaBaseSet & | operator= (const TBaseSet< T, Cmp > &rSource) |
Faudes Type interface (extension). | |
virtual void | Clear (void) |
Clear all set. | |
const Attr * | Attributep (void) const |
Attribute typeinfo. | |
const Attr & | Attribute (void) const |
Attribute typeinfo. | |
virtual bool | AttributeTry (const Type &rAttr) const |
Attribute typeinfo. | |
virtual Idx | AttributesSize (void) const |
Get number of explicit (aka non-default) attributes. | |
virtual void | ClearAttributes (void) |
Clear all attributes to default value. | |
virtual bool | EqualAttributes (const TBaseSet< T, Cmp > &rOtherSet) const |
Test whether attributes match with other set, Return true if attributes match for shared elements. | |
virtual bool | operator== (const TBaseSet< T, Cmp > &rOtherSet) const |
Test set equality. | |
virtual bool | EqualAttributes (const TaBaseSet &rOtherSet) const |
Test whether attributes match with other set, Return true if attributes match for shared elements. | |
virtual Attr * | Attributep (const T &rElem) |
Get attribute reference by element. | |
virtual const Attr & | Attribute (const T &rElem) const |
Get attribute by element. | |
virtual void | Attribute (const T &rElem, const Type &attr) |
Set attribute. | |
virtual void | Attribute (const T &rElem, const Attr &attr) |
Set attribute. | |
virtual void | AttributeTry (const T &rElem, const Type &attr) |
Set attribute. | |
virtual void | Attributes (const TBaseSet< T, Cmp > &rOtherSet) |
Set attributes. | |
virtual void | Attributes (const TaBaseSet &rOtherSet) |
Set attributes. | |
virtual void | ClrAttribute (const T &rElem) |
Clear attribute to default value. | |
bool | Insert (const T &rElem) |
Insert element. | |
bool | Insert (const T &rElem, const Attr &attr) |
Insert element with attribute. | |
void | InsertSet (const TBaseSet< T, Cmp > &rOtherSet) |
Inserts elements of rOtherSet. | |
void | InsertSet (const TaBaseSet &rOtherSet) |
Inserts elements of rOtherSet. | |
bool | Erase (const T &rElem) |
Erase Element (incl its attribute). | |
Iterator | Erase (const Iterator &pos) |
Erase element by iterator (incl attribute). | |
void | EraseSet (const TBaseSet< T, Cmp > &rOtherSet) |
Erase elements given by other set. | |
void | RestrictSet (const TBaseSet< T, Cmp > &rOtherSet) |
Restrict to specified subset. | |
void | SetUnion (const TBaseSet< T, Cmp > &rOtherSet) |
Set union. | |
void | SetIntersection (const TBaseSet< T, Cmp > &rOtherSet) |
Set intersection. | |
virtual void | Detach (void) const |
Detach from extern storage (reimplement base). | |
Protected Types | |
typedef TBaseSet< T, Cmp > ::iterator | iterator |
use TBaseSet STL iterators | |
typedef TBaseSet< T, Cmp > ::const_iterator | const_iterator |
use TBaseSet STL iterators | |
typedef TBaseSet< T, Cmp > ::aiterator | aiterator |
use TBaseSet STL iterators | |
typedef TBaseSet< T, Cmp > ::const_aiterator | const_aiterator |
use TBaseSet STL iterators | |
Protected Member Functions | |
virtual void | DoAssign (const TaBaseSet &rSourceSet) |
assignment from source with matching attributes | |
virtual bool | DoEqual (const TBaseSet< T, Cmp > &rOtherSet) const |
test equality, ignore attributes | |
virtual void | DoAttributep (const T &rElem, const Type *pAttr) |
set attribute in map (assume elem exists in set, NULL <=> set to default) | |
virtual void | DoAttributep (const T &rElem, const Attr *pAttr) |
set attribute in map (assume elem exists in set, NULL <=> set to default) | |
virtual const Attr * | DoAttributep (const T &rElem) const |
get attribute from map (return null if elem does not exist in map) | |
virtual Attr * | DoAttributep (const T &rElem) |
get attribute from map (insert explicit default if elem does not exist in map) | |
Protected Attributes | |
Attr * | mpDefAttribute |
default attribute |
Set with nontrivial attributes.
The TaBaseSet implements the attribute interface introduced in TBaseSet.
Note: while TaBaseSet is indirectly derived from Type, we avoid the FAUDES_TYPE_DECLARATION macro and define the Type interface explicitely. This is for cosmetic reasons only.
Definition at line 48 of file cfl_abaseset.h.
typedef TBaseSet<T,Cmp>::aiterator faudes::TaBaseSet< T, Attr, Cmp >::aiterator [protected] |
use TBaseSet STL iterators
Reimplemented from faudes::TBaseSet< T, Cmp >.
Definition at line 450 of file cfl_abaseset.h.
typedef TBaseSet<T,Cmp>::const_aiterator faudes::TaBaseSet< T, Attr, Cmp >::const_aiterator [protected] |
use TBaseSet STL iterators
Reimplemented from faudes::TBaseSet< T, Cmp >.
Definition at line 453 of file cfl_abaseset.h.
typedef TBaseSet<T,Cmp>::const_iterator faudes::TaBaseSet< T, Attr, Cmp >::const_iterator [protected] |
use TBaseSet STL iterators
Reimplemented from faudes::TBaseSet< T, Cmp >.
Definition at line 447 of file cfl_abaseset.h.
typedef TBaseSet<T,Cmp>::iterator faudes::TaBaseSet< T, Attr, Cmp >::iterator [protected] |
use TBaseSet STL iterators
Reimplemented from faudes::TBaseSet< T, Cmp >.
Definition at line 444 of file cfl_abaseset.h.
typedef TBaseSet<T,Cmp>::Iterator faudes::TaBaseSet< T, Attr, Cmp >::Iterator |
Use TBaseSet iterators.
Reimplemented in faudes::TaIndexSet< Attr >, faudes::TaTransSet< Attr >, faudes::TaIndexSet< DiagLabelSet >, faudes::TaIndexSet< HioStateFlags >, and faudes::TaIndexSet< StateAttr >.
Definition at line 331 of file cfl_abaseset.h.
faudes::TaBaseSet< T, Attr, Cmp >::TaBaseSet | ( | void | ) | [inline] |
Constructor.
Definition at line 504 of file cfl_abaseset.h.
faudes::TaBaseSet< T, Attr, Cmp >::TaBaseSet | ( | const TaBaseSet< T, Attr, Cmp > & | rOtherSet | ) | [inline] |
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 | ) | [inline] |
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" | |||
) | [inline] |
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.
faudes::TaBaseSet< T, Attr, Cmp >::~TaBaseSet | ( | void | ) | [inline, virtual] |
Virtual destructor.
Definition at line 541 of file cfl_abaseset.h.
TaBaseSet< T, Attr, Cmp > & faudes::TaBaseSet< T, Attr, Cmp >::Assign | ( | const TBaseSet< T, Cmp > & | rSourceSet | ) | [inline, 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.
TaBaseSet< T, Attr, Cmp > & faudes::TaBaseSet< T, Attr, Cmp >::Assign | ( | const TaBaseSet< T, Attr, Cmp > & | rSourceSet | ) | [inline, virtual] |
Copy from a TaBaseSet with matching attributes.
rSourceSet | Set to copy from |
Definition at line 563 of file cfl_abaseset.h.
TaBaseSet< T, Attr, Cmp > & faudes::TaBaseSet< T, Attr, Cmp >::AssignWithoutAttributes | ( | const TBaseSet< T, Cmp > & | rSourceSet | ) | [inline, 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.
void faudes::TaBaseSet< T, Attr, Cmp >::Attribute | ( | const T & | rElem, | |
const Attr & | attr | |||
) | [inline, 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.
void faudes::TaBaseSet< T, Attr, Cmp >::Attribute | ( | const T & | rElem, | |
const Type & | attr | |||
) | [inline, 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.
const Attr & faudes::TaBaseSet< T, Attr, Cmp >::Attribute | ( | const T & | rElem | ) | const [inline, 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.
const Attr & faudes::TaBaseSet< T, Attr, Cmp >::Attribute | ( | void | ) | const [inline, virtual] |
Attribute typeinfo.
Reimplemented from faudes::TBaseSet< T, Cmp >.
Definition at line 872 of file cfl_abaseset.h.
Attr * faudes::TaBaseSet< T, Attr, Cmp >::Attributep | ( | const T & | rElem | ) | [inline, 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.
const Attr * faudes::TaBaseSet< T, Attr, Cmp >::Attributep | ( | void | ) | const [inline, virtual] |
Attribute typeinfo.
Reimplemented from faudes::TBaseSet< T, Cmp >.
Definition at line 867 of file cfl_abaseset.h.
void faudes::TaBaseSet< T, Attr, Cmp >::Attributes | ( | const TaBaseSet< T, Attr, Cmp > & | rOtherSet | ) | [inline, 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.
void faudes::TaBaseSet< T, Attr, Cmp >::Attributes | ( | const TBaseSet< T, Cmp > & | rOtherSet | ) | [inline, 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.
Idx faudes::TaBaseSet< T, Attr, Cmp >::AttributesSize | ( | void | ) | const [inline, virtual] |
Get number of explicit (aka non-default) attributes.
Reimplemented from faudes::TBaseSet< T, Cmp >.
Definition at line 1212 of file cfl_abaseset.h.
void faudes::TaBaseSet< T, Attr, Cmp >::AttributeTry | ( | const T & | rElem, | |
const Type & | attr | |||
) | [inline, 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.
bool faudes::TaBaseSet< T, Attr, Cmp >::AttributeTry | ( | const Type & | rAttr | ) | const [inline, 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 const Type* faudes::TaBaseSet< T, Attr, Cmp >::Cast | ( | const Type * | pType | ) | const [inline, virtual] |
Faudes Type interface.
Cast object to my type.
Reimplemented from faudes::Type.
Definition at line 109 of file cfl_abaseset.h.
void faudes::TaBaseSet< T, Attr, Cmp >::Clear | ( | void | ) | [inline, virtual] |
Clear all set.
Reimplemented from faudes::TBaseSet< T, Cmp >.
Reimplemented in faudes::TaIndexSet< Attr >, faudes::TaTransSet< Attr >, faudes::TaIndexSet< DiagLabelSet >, faudes::TaIndexSet< HioStateFlags >, and faudes::TaIndexSet< StateAttr >.
Definition at line 695 of file cfl_abaseset.h.
void faudes::TaBaseSet< T, Attr, Cmp >::ClearAttributes | ( | void | ) | [inline, virtual] |
Clear all attributes to default value.
Reimplemented from faudes::TBaseSet< T, Cmp >.
Definition at line 1014 of file cfl_abaseset.h.
void faudes::TaBaseSet< T, Attr, Cmp >::ClrAttribute | ( | const T & | rElem | ) | [inline, virtual] |
Clear attribute to default value.
rElem | Specify element |
Reimplemented from faudes::TBaseSet< T, Cmp >.
Definition at line 1008 of file cfl_abaseset.h.
virtual TaBaseSet* faudes::TaBaseSet< T, Attr, Cmp >::Copy | ( | void | ) | const [inline, virtual] |
Faudes Type interface.
Construct copy on heap.
Reimplemented from faudes::Type.
Definition at line 102 of file cfl_abaseset.h.
void faudes::TaBaseSet< T, Attr, Cmp >::Detach | ( | void | ) | const [inline, virtual] |
Detach from extern storage (reimplement base).
Reimplemented from faudes::TBaseSet< T, Cmp >.
Definition at line 667 of file cfl_abaseset.h.
void faudes::TaBaseSet< T, Attr, Cmp >::DoAssign | ( | const TaBaseSet< T, Attr, Cmp > & | rSourceSet | ) | [inline, protected, virtual] |
assignment from source with matching attributes
Definition at line 550 of file cfl_abaseset.h.
Attr * faudes::TaBaseSet< T, Attr, Cmp >::DoAttributep | ( | const T & | rElem | ) | [inline, protected, virtual] |
get attribute from map (insert explicit default if elem does not exist in map)
Definition at line 1107 of file cfl_abaseset.h.
const Attr * faudes::TaBaseSet< T, Attr, Cmp >::DoAttributep | ( | const T & | rElem | ) | const [inline, protected, virtual] |
get attribute from map (return null if elem does not exist in map)
Definition at line 1099 of file cfl_abaseset.h.
void faudes::TaBaseSet< T, Attr, Cmp >::DoAttributep | ( | const T & | rElem, | |
const Attr * | pAttr | |||
) | [inline, protected, virtual] |
set attribute in map (assume elem exists in set, NULL <=> set to default)
Definition at line 1172 of file cfl_abaseset.h.
void faudes::TaBaseSet< T, Attr, Cmp >::DoAttributep | ( | const T & | rElem, | |
const Type * | pAttr | |||
) | [inline, protected, virtual] |
set attribute in map (assume elem exists in set, NULL <=> set to default)
Definition at line 1128 of file cfl_abaseset.h.
bool faudes::TaBaseSet< T, Attr, Cmp >::DoEqual | ( | const TBaseSet< T, Cmp > & | rOtherSet | ) | const [inline, protected, virtual] |
test equality, ignore attributes
Reimplemented from faudes::TBaseSet< T, Cmp >.
Definition at line 616 of file cfl_abaseset.h.
bool faudes::TaBaseSet< T, Attr, Cmp >::EqualAttributes | ( | const TaBaseSet< T, Attr, Cmp > & | rOtherSet | ) | const [inline, 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.
bool faudes::TaBaseSet< T, Attr, Cmp >::EqualAttributes | ( | const TBaseSet< T, Cmp > & | rOtherSet | ) | const [inline, 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.
TaBaseSet< T, Attr, Cmp >::Iterator faudes::TaBaseSet< T, Attr, Cmp >::Erase | ( | const Iterator & | pos | ) | [inline, virtual] |
Erase element by iterator (incl attribute).
pos | Iterator to specify element |
Reimplemented from faudes::TBaseSet< T, Cmp >.
Reimplemented in faudes::TaIndexSet< Attr >, faudes::TaNameSet< Attr >, faudes::TaTransSet< Attr >, faudes::TaIndexSet< DiagLabelSet >, faudes::TaIndexSet< HioStateFlags >, faudes::TaIndexSet< StateAttr >, faudes::TaNameSet< AttributeSimCondition >, faudes::TaNameSet< AttributeFailureEvents >, faudes::TaNameSet< EventAttr >, faudes::TaNameSet< HioEventFlags >, faudes::TaNameSet< AttributeSignalEvent >, faudes::TaNameSet< SimEventAttribute >, and faudes::TaNameSet< AttributeSimplenetEvent >.
Definition at line 781 of file cfl_abaseset.h.
bool faudes::TaBaseSet< T, Attr, Cmp >::Erase | ( | const T & | rElem | ) | [inline, virtual] |
Erase Element (incl its attribute).
rElem | Specify element |
Reimplemented from faudes::TBaseSet< T, Cmp >.
Reimplemented in faudes::TaIndexSet< Attr >, faudes::TaNameSet< Attr >, faudes::TaTransSet< Attr >, faudes::TaIndexSet< DiagLabelSet >, faudes::TaIndexSet< HioStateFlags >, faudes::TaIndexSet< StateAttr >, faudes::TaNameSet< AttributeSimCondition >, faudes::TaNameSet< AttributeFailureEvents >, faudes::TaNameSet< EventAttr >, faudes::TaNameSet< HioEventFlags >, faudes::TaNameSet< AttributeSignalEvent >, faudes::TaNameSet< SimEventAttribute >, and faudes::TaNameSet< AttributeSimplenetEvent >.
Definition at line 773 of file cfl_abaseset.h.
void faudes::TaBaseSet< T, Attr, Cmp >::EraseSet | ( | const TBaseSet< T, Cmp > & | rOtherSet | ) | [inline, 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.
bool faudes::TaBaseSet< T, Attr, Cmp >::Insert | ( | const T & | rElem, | |
const Attr & | attr | |||
) | [inline] |
Insert element with attribute.
rElem | Specify element | |
attr | Specify attribute of (new) element |
Reimplemented in faudes::TaIndexSet< Attr >, faudes::TaNameSet< Attr >, faudes::TaTransSet< Attr >, faudes::TaIndexSet< DiagLabelSet >, faudes::TaIndexSet< HioStateFlags >, faudes::TaIndexSet< StateAttr >, faudes::TaNameSet< AttributeSimCondition >, faudes::TaNameSet< AttributeFailureEvents >, faudes::TaNameSet< EventAttr >, faudes::TaNameSet< HioEventFlags >, faudes::TaNameSet< AttributeSignalEvent >, faudes::TaNameSet< SimEventAttribute >, and faudes::TaNameSet< AttributeSimplenetEvent >.
Definition at line 710 of file cfl_abaseset.h.
bool faudes::TaBaseSet< T, Attr, Cmp >::Insert | ( | const T & | rElem | ) | [inline, 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::TaIndexSet< Attr >, faudes::TaNameSet< Attr >, faudes::TaTransSet< Attr >, faudes::TaIndexSet< DiagLabelSet >, faudes::TaIndexSet< HioStateFlags >, faudes::TaIndexSet< StateAttr >, faudes::TaNameSet< AttributeSimCondition >, faudes::TaNameSet< AttributeFailureEvents >, faudes::TaNameSet< EventAttr >, faudes::TaNameSet< HioEventFlags >, faudes::TaNameSet< AttributeSignalEvent >, faudes::TaNameSet< SimEventAttribute >, and faudes::TaNameSet< AttributeSimplenetEvent >.
Definition at line 703 of file cfl_abaseset.h.
void faudes::TaBaseSet< T, Attr, Cmp >::InsertSet | ( | const TaBaseSet< T, Attr, Cmp > & | rOtherSet | ) | [inline] |
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.
void faudes::TaBaseSet< T, Attr, Cmp >::InsertSet | ( | const TBaseSet< T, Cmp > & | rOtherSet | ) | [inline, 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.
virtual TaBaseSet* faudes::TaBaseSet< T, Attr, Cmp >::New | ( | void | ) | const [inline, virtual] |
Faudes Type interface.
Construct object of same type on heap.
Reimplemented from faudes::Type.
Definition at line 96 of file cfl_abaseset.h.
virtual TaBaseSet& faudes::TaBaseSet< T, Attr, Cmp >::operator= | ( | const TBaseSet< T, Cmp > & | rSource | ) | [inline, virtual] |
Faudes Type interface (extension).
Assignment operator incl attribute cast.
rSource | Object to assign from |
Definition at line 150 of file cfl_abaseset.h.
virtual TaBaseSet& faudes::TaBaseSet< T, Attr, Cmp >::operator= | ( | const TaBaseSet< T, Attr, Cmp > & | rSource | ) | [inline, virtual] |
Faudes Type interface.
Assignment operator with strict type matching.
rSource | Object to assign from |
Definition at line 143 of file cfl_abaseset.h.
bool faudes::TaBaseSet< T, Attr, Cmp >::operator== | ( | const TBaseSet< T, Cmp > & | rOtherSet | ) | const [inline, 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.
void faudes::TaBaseSet< T, Attr, Cmp >::RestrictSet | ( | const TBaseSet< T, Cmp > & | rOtherSet | ) | [inline, 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.
void faudes::TaBaseSet< T, Attr, Cmp >::SetIntersection | ( | const TBaseSet< T, Cmp > & | rOtherSet | ) | [inline, 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.
void faudes::TaBaseSet< T, Attr, Cmp >::SetUnion | ( | const TBaseSet< T, Cmp > & | rOtherSet | ) | [inline, 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.
Attr* faudes::TaBaseSet< T, Attr, Cmp >::mpDefAttribute [protected] |
default attribute
Definition at line 457 of file cfl_abaseset.h.
libFAUDES 2.23h --- 2014.04.03 --- c++ api documentaion by doxygen