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

class DataHolder is a simple class which holds a pointer to an object of type DC. More...

#include <DataLinkVector.h>

Collaboration diagram for DataLinkVector< DC >::DataHolder:

Public Member Functions

 DataHolder ()
 contructor
bool hasData () const
 is pointer set
const_pointer operator-> () const
 access to pointer
 operator const_pointer () const
 access to pointer
const_pointer cptr () const
 access to pointer
void reset ()
 reset pointer to 0
void setDataPtr (const DC *obj)
 set pointer
pointer getDataPtr () const
 access to pointer

Private Attributes

pointer m_obj

Detailed Description

template<class DC>
class DataLinkVector< DC >::DataHolder

class DataHolder is a simple class which holds a pointer to an object of type DC.

This is inserted into the Entry object of the DataLinkVector.

Definition at line 47 of file DataLinkVector.h.

Constructor & Destructor Documentation

◆ DataHolder()

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

contructor

inline definitions

Definition at line 223 of file DataLinkVector.h.

224 :
225 m_obj(0)
226{}

Member Function Documentation

◆ cptr()

template<class DC>
DataLinkVector< DC >::const_pointer DataLinkVector< DC >::DataHolder::cptr ( ) const

access to pointer

Definition at line 244 of file DataLinkVector.h.

245{
246 return this->getDataPtr();
247}
pointer getDataPtr() const
access to pointer

◆ getDataPtr()

template<class DC>
DataLinkVector< DC >::pointer DataLinkVector< DC >::DataHolder::getDataPtr ( ) const

access to pointer

Definition at line 265 of file DataLinkVector.h.

266{
267 return (m_obj);
268}

◆ hasData()

template<class DC>
bool DataLinkVector< DC >::DataHolder::hasData ( ) const

is pointer set

Definition at line 230 of file DataLinkVector.h.

231{
232 return (m_obj != 0);
233}

◆ operator const_pointer()

template<class DC>
DataLinkVector< DC >::DataHolder::operator const_pointer ( ) const
inline

access to pointer

Definition at line 60 of file DataLinkVector.h.

60{ return this->getDataPtr(); }

◆ operator->()

template<class DC>
DataLinkVector< DC >::const_pointer DataLinkVector< DC >::DataHolder::operator-> ( ) const

access to pointer

Definition at line 237 of file DataLinkVector.h.

238{
239 return this->getDataPtr();
240}

◆ reset()

template<class DC>
void DataLinkVector< DC >::DataHolder::reset ( )

reset pointer to 0

Definition at line 251 of file DataLinkVector.h.

252{
253 m_obj = 0;
254}

◆ setDataPtr()

template<class DC>
void DataLinkVector< DC >::DataHolder::setDataPtr ( const DC * obj)

set pointer

Definition at line 258 of file DataLinkVector.h.

259{
260 m_obj = const_cast<pointer>(obj);
261}
This class is a a vector of DataLink for objects of type DC It uses an internal chain to keep track o...

Member Data Documentation

◆ m_obj

template<class DC>
pointer DataLinkVector< DC >::DataHolder::m_obj
private

Definition at line 76 of file DataLinkVector.h.


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