ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
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 More...
 
bool hasData () const
 is pointer set More...
 
const_pointer operator-> () const
 access to pointer More...
 
 operator const_pointer () const
 access to pointer More...
 
const_pointer cptr () const
 access to pointer More...
 
void reset ()
 reset pointer to 0 More...
 
void setDataPtr (const DC *obj)
 set pointer More...
 
pointer getDataPtr () const
 access to pointer More...
 

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

access to pointer

Definition at line 244 of file DataLinkVector.h.

245 {
246  return this->getDataPtr();
247 }

◆ getDataPtr()

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

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

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->

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 }

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:
DataLinkVector::DataHolder::m_obj
pointer m_obj
Definition: DataLinkVector.h:76
DataLinkVector::DataHolder::getDataPtr
pointer getDataPtr() const
access to pointer
Definition: DataLinkVector.h:265
DataLinkVector::pointer
DC * pointer
Definition: DataLinkVector.h:38
python.PyAthena.obj
obj
Definition: PyAthena.py:132