The Gaudi Framework  v33r1 (b1225454)
NTuple::Item< bool > Class Template Reference

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

#include <GaudiKernel/NTuple.h>

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

Public Member Functions

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

Private Types

typedef Item< bool > _My
 

Additional Inherited Members

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

Detailed Description

template<>
class NTuple::Item< bool >

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

Definition at line 305 of file NTuple.h.

Member Typedef Documentation

◆ _My

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

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

312 { return this->m_ptr->get(); }
virtual TYP get() const
Access to data by reference (CONST)
Definition: NTuple.h:161
_Item< bool > * m_ptr
Pointer to instance.
Definition: NTuple.h:234

◆ operator=() [1/2]

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

Assignment operator.

Definition at line 314 of file NTuple.h.

314  {
315  this->m_ptr->set( data );
316  return *this;
317  }
void set(const TYP &item)
Access to data by reference.
Definition: NTuple.h:159
_Item< bool > * m_ptr
Pointer to instance.
Definition: NTuple.h:234

◆ operator=() [2/2]

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

Assignment operator.

Definition at line 320 of file NTuple.h.

320  {
321  this->m_ptr->set( data->get() );
322  return *this;
323  }
void set(const TYP &item)
Access to data by reference.
Definition: NTuple.h:159
_Item< bool > * m_ptr
Pointer to instance.
Definition: NTuple.h:234

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