The Gaudi Framework  master (37c0b60a)
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>

Public Member Functions

 Item ()=default
 Standard Constructor. More...
 
 operator const TYP () const
 Automatic type conversion. More...
 
TYP operator* ()
 Dereference operator for pointers. More...
 
const TYP operator* () const
 Dereference operator for pointers(CONST) More...
 
Itemoperator++ ()
 
Itemoperator++ (int)
 
Itemoperator-- ()
 
Itemoperator-- (int)
 
Itemoperator= (const TYP data)
 Assignment operator. More...
 
template<class T >
Itemoperator= (const Item< T > &data)
 Assignment operator. More...
 
Item< TYP > & operator+= (const TYP data)
 
Item< TYP > & operator-= (const TYP data)
 
Item< TYP > & operator*= (const TYP data)
 
Item< TYP > & operator/= (const TYP data)
 

Private Types

typedef Item< TYP > _My
 

Detailed Description

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

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

Definition at line 58 of file NTuple.h.

Member Typedef Documentation

◆ _My

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

Definition at line 260 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 266 of file NTuple.h.

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

◆ operator*() [1/2]

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

Dereference operator for pointers.

Definition at line 268 of file NTuple.h.

268 { 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 270 of file NTuple.h.

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

◆ operator*=()

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

Definition at line 295 of file NTuple.h.

295  {
296  this->m_ptr->set( this->m_ptr->get() * data );
297  return *this;
298  }

◆ operator++() [1/2]

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

Definition at line 272 of file NTuple.h.

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

◆ operator++() [2/2]

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

Definition at line 273 of file NTuple.h.

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

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

◆ operator--() [1/2]

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

Definition at line 274 of file NTuple.h.

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

◆ operator--() [2/2]

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

Definition at line 275 of file NTuple.h.

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

◆ 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/=()

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

Definition at line 299 of file NTuple.h.

299  {
300  this->m_ptr->set( this->m_ptr->get() / data );
301  return *this;
302  }

◆ operator=() [1/2]

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

Assignment operator.

Definition at line 283 of file NTuple.h.

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

◆ operator=() [2/2]

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

Assignment operator.

Definition at line 277 of file NTuple.h.

277  {
278  this->m_ptr->set( data );
279  return *this;
280  }

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