The Gaudi Framework  v36r9p1 (5c15b2bb)
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. 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...
 
 _Accessor (const _Accessor &)=default
 Default copy 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

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

Definition at line 307 of file NTuple.h.

Member Typedef Documentation

◆ _My

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

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

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

◆ operator=() [1/2]

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

Assignment operator.

Definition at line 316 of file NTuple.h.

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

◆ operator=() [2/2]

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

Assignment operator.

Definition at line 322 of file NTuple.h.

322  {
323  this->m_ptr->set( data->get() );
324  return *this;
325  }

The documentation for this class was generated from the following file:
NTuple::_Accessor< _Item< bool > >::m_ptr
_Item< bool > * m_ptr
Pointer to instance.
Definition: NTuple.h:234
NTuple::_Item::get
virtual TYP get() const
Access to data by reference (CONST)
Definition: NTuple.h:161
NTuple::_Item::set
void set(const TYP &item)
Access to data by reference.
Definition: NTuple.h:159