![]() |
ATLAS Offline Software
|
code only expands with the ASSOCIATIONMAP_CONTEXT More...
#include <AssociationMap.h>
Public Member Functions | |
Constructors and Destructor | |
| AssociationObjectIterator () | |
| default constructor | |
| AssociationObjectIterator (const store_type &theStore) | |
| useful alternate constructor | |
| AssociationObjectIterator (const store_type &theStore, const typename store_type::const_iterator &pos) | |
| useful alternate constructor | |
| AssociationObjectIterator (const AssociationObjectIterator &rhs) | |
| copy constructor | |
| AssociationObjectIterator & | operator= (const AssociationObjectIterator &rhs) |
| assignment operator | |
| ~AssociationObjectIterator () | |
| default destructor | |
Iterator Manipulation | |
| AssociationObjectIterator | begin () |
| begin object iterator | |
| AssociationObjectIterator | end () |
| end object iterator | |
| AssociationObjectIterator | begin () const |
| AssociationObjectIterator | end () const |
| end object iterator | |
| AssociationObjectIterator | next () |
| forward advancement | |
| AssociationObjectIterator | prev () |
| backward stepping | |
| AssociationObjectIterator | operator++ () |
| post-forward advancement operator | |
| AssociationObjectIterator | operator++ (int) |
| pre-forward advancement operator | |
| AssociationObjectIterator | operator-- () |
| post-backward stepping operator | |
| AssociationObjectIterator | operator-- (int) |
| pre-backward stepping operator | |
Iterator Comparisons | |
| bool | operator== (const AssociationObjectIterator &anOther) const |
| equality comparison | |
| bool | operator!= (const AssociationObjectIterator &anOther) const |
| inequality comparison | |
Data Access | |
| const store_type * | m_store {} |
| store_type::const_iterator | m_actual {} |
| AssociationObjectIterator | operator* () const |
* operator returns iterator by value | |
| const object_type * | operator-> () |
| access to underlying object | |
| const object_type * | operator-> () const |
| access to underlying object | |
| const object_type * | first () const |
| access to object pointer | |
| asso_iterator | second () const |
| access to iterator of first association | |
| AssociationObjectIterator | find (const object_type *objectPointer) const |
| find a given object in store | |
| const object_type * | getObject () const |
| retrieve the pointer to a given object | |
| const object_link & | getObjectLink () const |
| retrieve link to the object. | |
| bool | isValid () const |
| asso_iterator | getFirstAssociation () const |
| retrieve iterator to first associated object | |
| asso_iterator | getLastAssociation () const |
| retrieve end iterator to internal associated object store | |
| asso_iterator | findAssociation (const asso_type *assoPointer) const |
| find the iterator for a given object | |
| bool | containsAssociation (const asso_type *assoPointer) const |
| check if the given object can be matched among the associated objects | |
| size_t | getNumberOfAssociations () const |
| get number of association for current pointed-to object | |
| size_t | size () const |
code only expands with the ASSOCIATIONMAP_CONTEXT
The AssociationObjectIterator protects the AssociationMap class from specifics of the internal look-up map.
object iterator for association maps (internal use only!)
This is not a stand-alone class. It can only be compiled within the AssociationMap class, or similar classes providing the required type definitions!
fn AssociationObjectIterator begin() brief begin object iterator
fn AssociationObjectIterator end() brief end object iterator
fn AssociationObjectIterator next() brief advances iterator forward
fn AssociationObjectIterator prev() brief steps iterator back
fn AssociationObjectIterator operator++() brief same as next()
fn AssociationObjectIterator operator++(int) brief same as next()
fn AssociationObjectIterator operator--() brief same as prev()
fn AssociationObjectIterator operator--(int) brief same as prev()
fn bool operator==(const AssociationObjectIterator&) brief equality comparator
fn bool operator!=(const AssociationObjectIterator&) brief inequality comparator
fn AssociationObjectIterator operator*() brief iterator value access operator
var const object_type* first brief public variable holding object pointer
var asso_iterator second brief public variable holding iterator to associations
fn AssociationObjectIterator find(const object_type*) brief returns iterator for a given object
fn const object_type* getObject() brief get pointer to object (same as first )
fn const object_link& getObjectLink() brief get link to object
fn asso_iterator getFirstAssociation() brief get iterator to first association (same as second.begin() )
fn asso_iterator getLastAssocation() brief get end iterator for associations (same as second.end() )
fn asso_iterator findAssociation(const asso_type*) brief returns iterator for specific associated object
fn bool containsAssociation(const asso_type*) brief checks if given object is associated with current object
fn size_t size() brief number of associations for current object
Definition at line 89 of file AssociationMap.h.
|
inline |
default constructor
Definition at line 96 of file AssociationMap.h.
|
inline |
useful alternate constructor
| theStore | - reference to association map |
Definition at line 103 of file AssociationMap.h.
|
inline |
useful alternate constructor
| theStore | - reference to association map |
| pos | - reference to a position in the association map |
Definition at line 113 of file AssociationMap.h.
|
inline |
copy constructor
Definition at line 121 of file AssociationMap.h.
|
inline |
default destructor
Definition at line 138 of file AssociationMap.h.
|
inline |
|
inline |
Definition at line 153 of file AssociationMap.h.
|
inline |
check if the given object can be matched among the associated objects
Definition at line 297 of file AssociationMap.h.
|
inline |
end object iterator
Definition at line 150 of file AssociationMap.h.
|
inline |
end object iterator
Definition at line 157 of file AssociationMap.h.
|
inline |
find a given object in store
| objectPointer | - pointer reference to the object searched for |
This method returns an AssociationObjectIterator which can immediately provide access to the associations using the second public variable, the appropriate getFirstAssociation, getLastAssociation methods.
Definition at line 244 of file AssociationMap.h.
|
inline |
find the iterator for a given object
Definition at line 289 of file AssociationMap.h.
|
inline |
access to object pointer
Definition at line 232 of file AssociationMap.h.
|
inline |
retrieve iterator to first associated object
Definition at line 277 of file AssociationMap.h.
|
inline |
retrieve end iterator to internal associated object store
Definition at line 283 of file AssociationMap.h.
|
inline |
get number of association for current pointed-to object
Definition at line 301 of file AssociationMap.h.
|
inline |
retrieve the pointer to a given object
This method allows direct access to the object pointer stored in each AssociationObjectIterator instance.
Definition at line 269 of file AssociationMap.h.
|
inline |
retrieve link to the object.
Definition at line 272 of file AssociationMap.h.
|
inline |
Definition at line 274 of file AssociationMap.h.
|
inline |
forward advancement
Definition at line 161 of file AssociationMap.h.
|
inline |
inequality comparison
| anOther | - an other AssociationObjectIterator |
Definition at line 205 of file AssociationMap.h.
|
inline |
* operator returns iterator by value
Definition at line 221 of file AssociationMap.h.
|
inline |
post-forward advancement operator
Definition at line 169 of file AssociationMap.h.
|
inline |
pre-forward advancement operator
Definition at line 177 of file AssociationMap.h.
|
inline |
|
inline |
|
inline |
access to underlying object
Definition at line 224 of file AssociationMap.h.
|
inline |
access to underlying object
Definition at line 228 of file AssociationMap.h.
|
inline |
assignment operator
Definition at line 128 of file AssociationMap.h.
|
inline |
equality comparison
| anOther | - an other AssociationObjectIterator |
Definition at line 197 of file AssociationMap.h.
|
inline |
backward stepping
Definition at line 165 of file AssociationMap.h.
|
inline |
access to iterator of first association
Definition at line 234 of file AssociationMap.h.
|
inline |
Definition at line 304 of file AssociationMap.h.
|
private |
Definition at line 309 of file AssociationMap.h.
|
private |
Definition at line 308 of file AssociationMap.h.