The Gaudi Framework  v36r9p1 (5c15b2bb)
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 259 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 265 of file NTuple.h.

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

◆ operator*() [1/2]

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

Dereference operator for pointers.

Definition at line 267 of file NTuple.h.

267 { 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 269 of file NTuple.h.

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

◆ operator*=()

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

Definition at line 294 of file NTuple.h.

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

◆ operator++() [1/2]

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

Definition at line 271 of file NTuple.h.

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

◆ operator++() [2/2]

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

Definition at line 272 of file NTuple.h.

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

◆ operator+=()

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

Definition at line 286 of file NTuple.h.

286  {
287  this->m_ptr->set( this->m_ptr->get() + data );
288  return *this;
289  }

◆ operator--() [1/2]

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

Definition at line 273 of file NTuple.h.

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

◆ operator--() [2/2]

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

Definition at line 274 of file NTuple.h.

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

◆ operator-=()

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

Definition at line 290 of file NTuple.h.

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

◆ operator/=()

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

Definition at line 298 of file NTuple.h.

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

◆ operator=() [1/2]

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

Assignment operator.

Definition at line 282 of file NTuple.h.

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

◆ operator=() [2/2]

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

Assignment operator.

Definition at line 276 of file NTuple.h.

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

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