| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Types | List of all members
NTuple::Item< TYP > Class Template Reference

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

`#include <NTuple.h>`

Inheritance diagram for NTuple::Item< TYP >:
[legend]
Collaboration diagram for NTuple::Item< TYP >:
[legend]

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

## Private Types
typedef Item< TYP > | _My

## Additional Inherited Members
Protected Attributes inherited from NTuple::_Accessor< _Item< TYP > >
_Item< TYP > * | m_ptr
| Pointer to instance.

## Detailed Description

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

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

Definition at line 252 of file NTuple.h.

## Member Typedef Documentation

template<class TYP>

typedef Item<TYP> NTuple::Item< TYP >::_My
| private

Definition at line 253 of file NTuple.h.

## Constructor & Destructor Documentation

template<class TYP>

NTuple::Item< TYP >::Item | ( |  | ) |
| inline

Standard Constructor.

Definition at line 256 of file NTuple.h.

{ }

## Member Function Documentation

template<class TYP>

NTuple::Item< TYP >::operator const TYP | ( |  | ) | const
| inline

Automatic type conversion.

Definition at line 258 of file NTuple.h.

{ return this->m_ptr->get(); }
template<class TYP>

TYP NTuple::Item< TYP >::operator* | ( |  | ) |
| inline

Dereference operator for pointers.

Definition at line 260 of file NTuple.h.

{ return this->m_ptr->get(); }
template<class TYP>

const TYP NTuple::Item< TYP >::operator* | ( |  | ) | const
| inline

Dereference operator for pointers(CONST)

Definition at line 262 of file NTuple.h.

{ return this->m_ptr->get(); }
template<class TYP>

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

Definition at line 287 of file NTuple.h.

{
this->m_ptr->set ( this->m_ptr->get() * data );
return *this;
}
template<class TYP>

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

Definition at line 264 of file NTuple.h.

{ return *this += TYP(1); }
template<class TYP>

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

Definition at line 265 of file NTuple.h.

{ return *this += TYP(1); }
template<class TYP>

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

Definition at line 279 of file NTuple.h.

{
this->m_ptr->set ( this->m_ptr->get() + data );
return *this;
}
template<class TYP>

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

Definition at line 266 of file NTuple.h.

{ return *this -= TYP(1); }
template<class TYP>

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

Definition at line 267 of file NTuple.h.

{ return *this -= TYP(1); }
template<class TYP>

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

Definition at line 283 of file NTuple.h.

{
this->m_ptr->set ( this->m_ptr->get() - data );
return *this;
}
template<class TYP>

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

Definition at line 291 of file NTuple.h.

{
this->m_ptr->set ( this->m_ptr->get() / data );
return *this;
}
template<class TYP>

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

Assignment operator.

Definition at line 269 of file NTuple.h.

{
this->m_ptr->set( data );
return *this;
}
template<class TYP>
template<class T >

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

Assignment operator.

Definition at line 275 of file NTuple.h.

{
this->m_ptr->set( data->get() );
return *this;
}

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r0/GaudiKernel/GaudiKernel/NTuple.h