The Gaudi Framework  master (cc9a61f4)
Loading...
Searching...
No Matches
NTuple::Item< bool > Class Reference

Specialization 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< bool >:
Collaboration diagram for NTuple::Item< bool >:

Public Member Functions

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

Private Types

typedef Item< bool > _My

Additional Inherited Members

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

Detailed Description

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

Definition at line 300 of file NTuple.h.

Member Typedef Documentation

◆ _My

typedef Item<bool> NTuple::Item< bool >::_My
private

Definition at line 301 of file NTuple.h.

Constructor & Destructor Documentation

◆ Item()

NTuple::Item< bool >::Item ( )
default

Standard Constructor.

Member Function Documentation

◆ operator bool()

NTuple::Item< bool >::operator bool ( ) const
inline

Automatic type conversion.

Definition at line 307 of file NTuple.h.

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

◆ operator const bool()

NTuple::Item< bool >::operator const bool ( ) const
inline

Automatic type conversion.

Definition at line 258 of file NTuple.h.

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

◆ operator*()

bool NTuple::Item< bool >::operator* ( )
inline

Dereference operator for pointers.

Definition at line 260 of file NTuple.h.

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

◆ operator*=()

Item< bool > & NTuple::Item< bool >::operator*= ( const bool 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++()

Item & NTuple::Item< bool >::operator++ ( )
inline

Definition at line 264 of file NTuple.h.

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

◆ operator+=()

Item< bool > & NTuple::Item< bool >::operator+= ( const bool 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--()

Item & NTuple::Item< bool >::operator-- ( )
inline

Definition at line 266 of file NTuple.h.

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

◆ operator-=()

Item< bool > & NTuple::Item< bool >::operator-= ( const bool 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/=()

Item< bool > & NTuple::Item< bool >::operator/= ( const bool 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]

Item & NTuple::Item< bool >::operator= ( const bool data)
inline

Assignment operator.

Definition at line 309 of file NTuple.h.

309 {
310 this->m_ptr->set( data );
311 return *this;
312 }

◆ operator=() [2/2]

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

Assignment operator.

Definition at line 315 of file NTuple.h.

315 {
316 this->m_ptr->set( data->get() );
317 return *this;
318 }

The documentation for this class was generated from the following file:
  • GaudiKernel/include/GaudiKernel/NTuple.h