The Gaudi Framework  master (37c0b60a)
NTuple::_Accessor< TYP > Class Template Reference

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

#include </builds/gaudi/Gaudi/GaudiKernel/include/GaudiKernel/NTuple.h>

Public Member Functions

 _Accessor ()=default
 Standard Constructor. More...
 
virtual ~_Accessor ()=default
 Standard Destructor. More...
 
 _Accessor (const _Accessor &)=default
 Default copy constructor. 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 > &)=delete
 Needs to be implemented in derived classes. More...
 

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 56 of file NTuple.h.

Constructor & Destructor Documentation

◆ _Accessor() [1/2]

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

Standard Constructor.

◆ ~_Accessor()

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

Standard Destructor.

◆ _Accessor() [2/2]

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

Default copy constructor.

Member Function Documentation

◆ operator const void *()

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

Check if column is present.

Definition at line 247 of file NTuple.h.

247 { return m_ptr; }

◆ operator!()

template<class TYP >
bool NTuple::_Accessor< TYP >::operator! ( ) const
inline

Check if column is present.

Definition at line 245 of file NTuple.h.

245 { return m_ptr != 0; }

◆ operator->() [1/2]

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

Dereference operator.

Definition at line 249 of file NTuple.h.

249 { return m_ptr; }

◆ operator->() [2/2]

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

Dereference operator (CONST)

Definition at line 251 of file NTuple.h.

251 { return m_ptr; }

◆ operator=()

template<class TYP >
_Accessor<TYP>& NTuple::_Accessor< TYP >::operator= ( const _Accessor< TYP > &  )
privatedelete

Needs to be implemented in derived classes.

◆ range()

template<class TYP >
const Range<TYP>& NTuple::_Accessor< TYP >::range ( ) const
inline

Access the range.

Definition at line 253 of file NTuple.h.

253 { return m_ptr->range(); }

Friends And Related Function Documentation

◆ Tuple

template<class TYP >
friend class Tuple
friend

Definition at line 227 of file NTuple.h.

Member Data Documentation

◆ m_ptr

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

Pointer to instance.

Definition at line 235 of file NTuple.h.


The documentation for this class was generated from the following file:
NTuple::_Accessor::m_ptr
TYP * m_ptr
Pointer to instance.
Definition: NTuple.h:235