![]() |
ATLAS Offline Software
|
This class is a a vector of DataLink for objects of type DC It uses an internal chain to keep track of modified entries. A call to cleanup is required after processing an event or prior to process a new event. cleanup will call the clear() method of all the touched DataLink instances. The template expects the DataLink to export the DigitCollection class type (DC) and the DigitCollection identifier type. More...
#include <DataLinkVector.h>
Classes | |
class | DataHolder |
class DataHolder is a simple class which holds a pointer to an object of type DC. More... | |
class | Entry |
class Entry is a link in a chained list, used for efficient cleanup of vectors. More... | |
class | iterator |
class iterator - iterator over elements in DataLinkVector which manages the Entry objects More... | |
Public Types | |
typedef DC | value_type |
typedef DC * | pointer |
typedef const DC * | const_pointer |
typedef DC & | reference |
typedef const DC & | const_reference |
typedef DataHolder | DataLinkT |
typedef DataLinkVector< DC > | MyType |
typedef std::vector< Entry > | EntryVector |
typedef EntryVector::iterator | EntryVectorIt |
Public Member Functions | |
DataLinkVector () | |
Default constructor. More... | |
~DataLinkVector () | |
Default destructor. More... | |
void | init (unsigned int nbr) |
initialize vector with nbr DataLinks More... | |
iterator | begin () const |
return iterator on first entry More... | |
iterator | end () const |
return iterator on after last entry More... | |
iterator | find (IdentifierHash id) const |
return iterator on the found entry or end() if out of range More... | |
bool | setObjectOwnership (IdentifierHash idhash, bool flag) |
set object ownership More... | |
DataLinkT & | operator[] (int id) |
return reference on DataLink BEWARE: Doesn't check for boundary limits ! More... | |
virtual void | cleanup () |
cleans up the DataLinkVector goes trough all chained entries and call clear() method of DataLink and clear chain of course. More... | |
int | size () const |
access to size of vector More... | |
Protected Member Functions | |
void | chainEntry (Entry *e) const |
add pointed entry in chain of modified entries More... | |
Protected Attributes | |
EntryVector | m_vect |
Entry * | m_last |
Friends | |
class | iterator |
This class is a a vector of DataLink for objects of type DC It uses an internal chain to keep track of modified entries. A call to cleanup is required after processing an event or prior to process a new event. cleanup will call the clear() method of all the touched DataLink instances. The template expects the DataLink to export the DigitCollection class type (DC) and the DigitCollection identifier type.
Definition at line 33 of file DataLinkVector.h.
typedef const DC* DataLinkVector< DC >::const_pointer |
Definition at line 39 of file DataLinkVector.h.
typedef const DC& DataLinkVector< DC >::const_reference |
Definition at line 41 of file DataLinkVector.h.
typedef DataHolder DataLinkVector< DC >::DataLinkT |
Definition at line 80 of file DataLinkVector.h.
typedef std::vector<Entry> DataLinkVector< DC >::EntryVector |
Definition at line 121 of file DataLinkVector.h.
typedef EntryVector::iterator DataLinkVector< DC >::EntryVectorIt |
Definition at line 122 of file DataLinkVector.h.
typedef DataLinkVector<DC> DataLinkVector< DC >::MyType |
Definition at line 81 of file DataLinkVector.h.
typedef DC* DataLinkVector< DC >::pointer |
Definition at line 38 of file DataLinkVector.h.
typedef DC& DataLinkVector< DC >::reference |
Definition at line 40 of file DataLinkVector.h.
typedef DC DataLinkVector< DC >::value_type |
Definition at line 37 of file DataLinkVector.h.
DataLinkVector< DC >::DataLinkVector |
DataLinkVector< DC >::~DataLinkVector |
Default destructor.
Definition at line 412 of file DataLinkVector.h.
DataLinkVector< DC >::iterator DataLinkVector< DC >::begin |
return iterator on first entry
Definition at line 429 of file DataLinkVector.h.
|
protected |
add pointed entry in chain of modified entries
Definition at line 502 of file DataLinkVector.h.
|
virtual |
cleans up the DataLinkVector goes trough all chained entries and call clear() method of DataLink and clear chain of course.
Definition at line 474 of file DataLinkVector.h.
DataLinkVector< DC >::iterator DataLinkVector< DC >::end |
return iterator on after last entry
Definition at line 435 of file DataLinkVector.h.
DataLinkVector< DC >::iterator DataLinkVector< DC >::find | ( | IdentifierHash | id | ) | const |
void DataLinkVector< DC >::init | ( | unsigned int | nbr | ) |
initialize vector with nbr DataLinks
Definition at line 420 of file DataLinkVector.h.
DataLinkVector< DC >::DataLinkT & DataLinkVector< DC >::operator[] | ( | int | id | ) |
return reference on DataLink BEWARE: Doesn't check for boundary limits !
Definition at line 461 of file DataLinkVector.h.
bool DataLinkVector< DC >::setObjectOwnership | ( | IdentifierHash | idhash, |
bool | flag | ||
) |
int DataLinkVector< DC >::size |
access to size of vector
Definition at line 496 of file DataLinkVector.h.
|
friend |
Definition at line 175 of file DataLinkVector.h.
|
mutableprotected |
Definition at line 217 of file DataLinkVector.h.
|
mutableprotected |
Definition at line 216 of file DataLinkVector.h.