ATLAS Offline Software
Loading...
Searching...
No Matches
DataLinkVector< DC >::Entry Class Reference

class Entry is a link in a chained list, used for efficient cleanup of vectors. More...

#include <DataLinkVector.h>

Collaboration diagram for DataLinkVector< DC >::Entry:

Public Member Functions

 Entry ()
 constructor
Entryoperator= (const Entry &e)
 assignement operator
EntrypreviousEntry ()
 access to next entry
DataLinkTdataLink ()
 access to the DataLink
bool ownObject () const
 ownObject is true if this object should be deleted by DLV.
void setPreviousEntry (Entry *entry)
 set previous entry
void setDataLink (const DataLinkT &link)
 set data link
void setOwnObject (bool owns)
 set object ownership

Private Attributes

Entrym_previousEntry
DataLinkT m_dataLink
bool m_ownObject

Detailed Description

template<class DC>
class DataLinkVector< DC >::Entry

class Entry is a link in a chained list, used for efficient cleanup of vectors.

Entry objects are chained together which allows fast iteration over non-empty elements

Definition at line 87 of file DataLinkVector.h.

Constructor & Destructor Documentation

◆ Entry()

template<class DC>
DataLinkVector< DC >::Entry::Entry ( )

constructor

Definition at line 271 of file DataLinkVector.h.

272 :
274 m_ownObject(false)
275{
277}
This class is a a vector of DataLink for objects of type DC It uses an internal chain to keep track o...
DataHolder DataLinkT

Member Function Documentation

◆ dataLink()

template<class DC>
DataLinkVector< DC >::DataLinkT & DataLinkVector< DC >::Entry::dataLink ( )

access to the DataLink

Definition at line 297 of file DataLinkVector.h.

298{
299 return m_dataLink;
300}

◆ operator=()

template<class DC>
DataLinkVector< DC >::Entry & DataLinkVector< DC >::Entry::operator= ( const Entry & e)

assignement operator

Definition at line 281 of file DataLinkVector.h.

281 {
282 m_dataLink = e.m_dataLink ;
283 m_previousEntry = e.m_previousEntry;
284 m_ownObject = e.m_ownObject;
285 return *this;
286}

◆ ownObject()

template<class DC>
bool DataLinkVector< DC >::Entry::ownObject ( ) const

ownObject is true if this object should be deleted by DLV.

Definition at line 304 of file DataLinkVector.h.

305{
306 return m_ownObject;
307}

◆ previousEntry()

template<class DC>
DataLinkVector< DC >::Entry * DataLinkVector< DC >::Entry::previousEntry ( )

access to next entry

Definition at line 290 of file DataLinkVector.h.

291{
292 return m_previousEntry;
293}

◆ setDataLink()

template<class DC>
void DataLinkVector< DC >::Entry::setDataLink ( const DataLinkT & link)

set data link

Definition at line 318 of file DataLinkVector.h.

319{
321}

◆ setOwnObject()

template<class DC>
void DataLinkVector< DC >::Entry::setOwnObject ( bool owns)

set object ownership

Definition at line 325 of file DataLinkVector.h.

326{
328}

◆ setPreviousEntry()

template<class DC>
void DataLinkVector< DC >::Entry::setPreviousEntry ( Entry * entry)

set previous entry

Definition at line 311 of file DataLinkVector.h.

312{
314}

Member Data Documentation

◆ m_dataLink

template<class DC>
DataLinkT DataLinkVector< DC >::Entry::m_dataLink
private

Definition at line 116 of file DataLinkVector.h.

◆ m_ownObject

template<class DC>
bool DataLinkVector< DC >::Entry::m_ownObject
private

Definition at line 119 of file DataLinkVector.h.

◆ m_previousEntry

template<class DC>
Entry* DataLinkVector< DC >::Entry::m_previousEntry
private

Definition at line 115 of file DataLinkVector.h.


The documentation for this class was generated from the following file: