|
faudes::TAttrMap< T, Attr, Cmp > Class Template Reference Detailed Descriptiontemplate<class T, class Attr, class Cmp> class faudes::TAttrMap< T, Attr, Cmp > Attribute interface for TBaseSet. TAttrMap provides a typed interface to access the attributes associated with elements of a TBaseSet. It is meant to faciltate classes derived from TBaseSet that use non-trivial attributes. Note that the actual attribute map is hosted by TBaseSet itself. Note: technically, the TAttrMap holds a reference to the associated TBaseSet. When deriving from a child of TBaseSet, the interface is introduced by additional inheritance of TAttrMap. Effectively, this avoids the diomand-shape inheritance we used to have in pre 2.30 versions of libFAUDES and which caused various issues with the MS Visual Studio compilers regarding covaraint return values in the context of templates. Definition at line 51 of file cfl_baseset.h.
Member Typedef Documentation◆ aiterator
template<class T , class Attr , class Cmp >
use TBaseSet STL iterators Definition at line 244 of file cfl_attrmap.h. ◆ const_aiterator
template<class T , class Attr , class Cmp >
use TBaseSet STL iterators Definition at line 247 of file cfl_attrmap.h. ◆ const_iterator
template<class T , class Attr , class Cmp >
use TBaseSet STL iterators Definition at line 241 of file cfl_attrmap.h. ◆ iterator
template<class T , class Attr , class Cmp >
use TBaseSet STL iterators Definition at line 238 of file cfl_attrmap.h. Constructor & Destructor Documentation◆ TAttrMap()
template<class T , class Attr , class Cmp >
◆ ~TAttrMap()
template<class T , class Attr , class Cmp >
Virtual destructor Definition at line 285 of file cfl_attrmap.h. Member Function Documentation◆ AssignWithAttributes()
template<class T , class Attr , class Cmp >
Copy from a TBaseSet to the associated TBaseSet, with attributes, provided that they can be casted accordingly.
Definition at line 292 of file cfl_attrmap.h. ◆ Attribute() [1/3]
template<class T , class Attr , class Cmp >
Get attribute by element. This function returns a const reference to the attribute of the specified element.
Definition at line 463 of file cfl_attrmap.h. ◆ Attribute() [2/3]
template<class T , class Attr , class Cmp >
Set attribute. This method sets the attribute of the sepcified element to the given value.
Definition at line 513 of file cfl_attrmap.h. ◆ Attribute() [3/3]
template<class T , class Attr , class Cmp >
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.
Definition at line 480 of file cfl_attrmap.h. ◆ Attributep()
template<class T , class Attr , class Cmp >
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.
Definition at line 445 of file cfl_attrmap.h. ◆ AttributeTry()
template<class T , class Attr , class Cmp >
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.
Definition at line 498 of file cfl_attrmap.h. ◆ AttributeType()
template<class T , class Attr , class Cmp >
Attribute typeinfo.
Definition at line 437 of file cfl_attrmap.h. ◆ Erase() [1/2]
template<class T , class Attr , class Cmp >
Erase Element (incl its attribute)
Definition at line 369 of file cfl_attrmap.h. ◆ Erase() [2/2]
template<class T , class Attr , class Cmp >
Erase element by iterator (incl attribute)
Definition at line 376 of file cfl_attrmap.h. ◆ EraseSet()
template<class T , class Attr , class Cmp >
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.
Definition at line 386 of file cfl_attrmap.h. ◆ Insert() [1/2]
template<class T , class Attr , class Cmp >
Insert element. If the element exists, the attribute is maintained. If the element does not exist, it is inserted with default attribute.
Definition at line 323 of file cfl_attrmap.h. ◆ Insert() [2/2]
template<class T , class Attr , class Cmp >
Insert element with attribute.
Definition at line 331 of file cfl_attrmap.h. ◆ InsertSet()
template<class T , class Attr , class Cmp >
Inserts elements from rOtherSet. Attributes of this set are maintained, newly inserted elements receive attributes from rOtherSet, provided that can be casted appropriately.
Definition at line 340 of file cfl_attrmap.h. ◆ RestrictSet()
template<class T , class Attr , class Cmp >
Restrict to specified subset. Erases any elements not in the specified set. This function ignores the attributes of the other set and maintains the attributes of the remaining elements in this set.
Definition at line 409 of file cfl_attrmap.h. Member Data Documentation◆ pBaseSet
template<class T , class Attr , class Cmp >
reference to associated TBaseSet Definition at line 250 of file cfl_attrmap.h. The documentation for this class was generated from the following files: libFAUDES 2.33k --- 2025.09.16 --- c++ api documentaion by doxygen |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||