ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
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 More...
 
Entryoperator= (const Entry &e)
 assignement operator More...
 
EntrypreviousEntry ()
 access to next entry More...
 
DataLinkTdataLink ()
 access to the DataLink More...
 
bool ownObject () const
 ownObject is true if this object should be deleted by DLV. More...
 
void setPreviousEntry (Entry *entry)
 set previous entry More...
 
void setDataLink (const DataLinkT &link)
 set data link More...
 
void setOwnObject (bool owns)
 set object ownership More...
 

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  :
273  m_previousEntry(NULL),
274  m_ownObject(false)
275 {
276  m_dataLink = DataLinkT();
277 }

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

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 {
320  m_dataLink = link;
321 }

◆ setOwnObject()

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

set object ownership

Definition at line 325 of file DataLinkVector.h.

326 {
327  m_ownObject = owns;
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:
DataLinkVector::Entry::m_dataLink
DataLinkT m_dataLink
Definition: DataLinkVector.h:116
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
DataLinkVector::DataLinkT
DataHolder DataLinkT
Definition: DataLinkVector.h:80
DataLinkVector::Entry::m_previousEntry
Entry * m_previousEntry
Definition: DataLinkVector.h:115
GetAllXsec.entry
list entry
Definition: GetAllXsec.py:132
DataLinkVector::Entry::m_ownObject
bool m_ownObject
Definition: DataLinkVector.h:119