The Gaudi Framework  v30r3 (a5ef0a68)
NTuple::_Accessor< TYP > Class Template Reference

Class acting as a smart pointer holding a N tuple entry. More...

#include <GaudiKernel/NTuple.h>

Collaboration diagram for NTuple::_Accessor< TYP >:

Public Member Functions

 _Accessor ()=default
 Standard Constructor. More...
 
virtual ~_Accessor ()=default
 Standard Destructor. More...
 
bool operator! () const
 Check if column is present. More...
 
 operator const void * () const
 Check if column is present. More...
 
TYP * operator-> ()
 Dereference operator. More...
 
const TYP * operator-> () const
 Dereference operator (CONST) More...
 
const Range< TYP > & range () const
 Access the range. More...
 

Protected Attributes

TYP * m_ptr = nullptr
 Pointer to instance. More...
 

Private Member Functions

_Accessor< TYP > & operator= (const _Accessor< TYP > &)
 

Friends

class Tuple
 

Detailed Description

template<class TYP>
class NTuple::_Accessor< TYP >

Class acting as a smart pointer holding a N tuple entry.

Definition at line 47 of file NTuple.h.

Constructor & Destructor Documentation

template<class TYP>
NTuple::_Accessor< TYP >::_Accessor ( )
default

Standard Constructor.

template<class TYP>
virtual NTuple::_Accessor< TYP >::~_Accessor ( )
virtualdefault

Standard Destructor.

Member Function Documentation

template<class TYP>
NTuple::_Accessor< TYP >::operator const void * ( ) const
inline

Check if column is present.

Definition at line 248 of file NTuple.h.

248 { return m_ptr; }
TYP * m_ptr
Pointer to instance.
Definition: NTuple.h:238
template<class TYP>
bool NTuple::_Accessor< TYP >::operator! ( ) const
inline

Check if column is present.

Definition at line 246 of file NTuple.h.

246 { return m_ptr != 0; }
TYP * m_ptr
Pointer to instance.
Definition: NTuple.h:238
template<class TYP>
TYP* NTuple::_Accessor< TYP >::operator-> ( )
inline

Dereference operator.

Definition at line 250 of file NTuple.h.

250 { return m_ptr; }
TYP * m_ptr
Pointer to instance.
Definition: NTuple.h:238
template<class TYP>
const TYP* NTuple::_Accessor< TYP >::operator-> ( ) const
inline

Dereference operator (CONST)

Definition at line 252 of file NTuple.h.

252 { return m_ptr; }
TYP * m_ptr
Pointer to instance.
Definition: NTuple.h:238
template<class TYP>
_Accessor<TYP>& NTuple::_Accessor< TYP >::operator= ( const _Accessor< TYP > &  )
inlineprivate

Definition at line 234 of file NTuple.h.

234 { return *this; }
template<class TYP>
const Range<TYP>& NTuple::_Accessor< TYP >::range ( ) const
inline

Access the range.

Definition at line 254 of file NTuple.h.

254 { return m_ptr->range(); }
TYP * m_ptr
Pointer to instance.
Definition: NTuple.h:238

Friends And Related Function Documentation

template<class TYP>
friend class Tuple
friend

Definition at line 231 of file NTuple.h.

Member Data Documentation

template<class TYP>
TYP* NTuple::_Accessor< TYP >::m_ptr = nullptr
mutableprotected

Pointer to instance.

Definition at line 238 of file NTuple.h.


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