The Gaudi Framework  master (ff829712)
Loading...
Searching...
No Matches
NTuple::Item< TYP > Class Template Reference

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

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

Inheritance diagram for NTuple::Item< TYP >:
Collaboration diagram for NTuple::Item< TYP >:

Public Member Functions

 Item ()=default
 Standard Constructor.
 
 operator const TYP () const
 Automatic type conversion.
 
TYP operator* ()
 Dereference operator for pointers.
 
const TYP operator* () const
 Dereference operator for pointers(CONST)
 
Itemoperator++ ()
 
Itemoperator++ (int)
 
Itemoperator-- ()
 
Itemoperator-- (int)
 
Itemoperator= (const TYP data)
 Assignment operator.
 
template<class T>
Itemoperator= (const Item< T > &data)
 Assignment operator.
 
Item< TYP > & operator+= (const TYP data)
 
Item< TYP > & operator-= (const TYP data)
 
Item< TYP > & operator*= (const TYP data)
 
Item< TYP > & operator/= (const TYP data)
 
- Public Member Functions inherited from NTuple::_Accessor< _Item< TYP > >
 _Accessor ()=default
 Standard Constructor.
 
 _Accessor (const _Accessor &)=default
 Default copy constructor.
 
virtual ~_Accessor ()=default
 Standard Destructor.
 
bool operator! () const
 Check if column is present.
 
 operator const void * () const
 Check if column is present.
 
TYP * operator-> ()
 Dereference operator.
 
const TYP * operator-> () const
 Dereference operator (CONST)
 
const Range< TYP > & range () const
 Access the range.
 

Private Types

typedef Item< TYP > _My
 

Additional Inherited Members

- Protected Attributes inherited from NTuple::_Accessor< _Item< TYP > >
TYP * m_ptr
 Pointer to instance.
 

Detailed Description

template<class TYP>
class NTuple::Item< TYP >

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

Definition at line 251 of file NTuple.h.

Member Typedef Documentation

◆ _My

template<class TYP>
typedef Item<TYP> NTuple::Item< TYP >::_My
private

Definition at line 252 of file NTuple.h.

Constructor & Destructor Documentation

◆ Item()

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

Standard Constructor.

Member Function Documentation

◆ operator const TYP()

template<class TYP>
NTuple::Item< TYP >::operator const TYP ( ) const
inline

Automatic type conversion.

Definition at line 258 of file NTuple.h.

258{ return this->m_ptr->get(); }

◆ operator*() [1/2]

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

Dereference operator for pointers.

Definition at line 260 of file NTuple.h.

260{ return this->m_ptr->get(); }

◆ operator*() [2/2]

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

Dereference operator for pointers(CONST)

Definition at line 262 of file NTuple.h.

262{ return this->m_ptr->get(); }

◆ operator*=()

template<class TYP>
Item< TYP > & NTuple::Item< TYP >::operator*= ( const TYP data)
inline

Definition at line 287 of file NTuple.h.

287 {
288 this->m_ptr->set( this->m_ptr->get() * data );
289 return *this;
290 }
Class acting as a smart pointer holding a N tuple _Item.
Definition NTuple.h:251

◆ operator++() [1/2]

template<class TYP>
Item & NTuple::Item< TYP >::operator++ ( )
inline

Definition at line 264 of file NTuple.h.

264{ return *this += TYP( 1 ); }

◆ operator++() [2/2]

template<class TYP>
Item & NTuple::Item< TYP >::operator++ ( int )
inline

Definition at line 265 of file NTuple.h.

265{ return *this += TYP( 1 ); }

◆ operator+=()

template<class TYP>
Item< TYP > & NTuple::Item< TYP >::operator+= ( const TYP data)
inline

Definition at line 279 of file NTuple.h.

279 {
280 this->m_ptr->set( this->m_ptr->get() + data );
281 return *this;
282 }

◆ operator--() [1/2]

template<class TYP>
Item & NTuple::Item< TYP >::operator-- ( )
inline

Definition at line 266 of file NTuple.h.

266{ return *this -= TYP( 1 ); }

◆ operator--() [2/2]

template<class TYP>
Item & NTuple::Item< TYP >::operator-- ( int )
inline

Definition at line 267 of file NTuple.h.

267{ return *this -= TYP( 1 ); }

◆ operator-=()

template<class TYP>
Item< TYP > & NTuple::Item< TYP >::operator-= ( const TYP data)
inline

Definition at line 283 of file NTuple.h.

283 {
284 this->m_ptr->set( this->m_ptr->get() - data );
285 return *this;
286 }

◆ operator/=()

template<class TYP>
Item< TYP > & NTuple::Item< TYP >::operator/= ( const TYP data)
inline

Definition at line 291 of file NTuple.h.

291 {
292 this->m_ptr->set( this->m_ptr->get() / data );
293 return *this;
294 }

◆ operator=() [1/2]

template<class TYP>
template<class T>
Item & NTuple::Item< TYP >::operator= ( const Item< T > & data)
inline

Assignment operator.

Definition at line 275 of file NTuple.h.

275 {
276 this->m_ptr->set( data->get() );
277 return *this;
278 }

◆ operator=() [2/2]

template<class TYP>
Item & NTuple::Item< TYP >::operator= ( const TYP data)
inline

Assignment operator.

Definition at line 269 of file NTuple.h.

269 {
270 this->m_ptr->set( data );
271 return *this;
272 }

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