| # Gaudi Framework, version v22r4 |

Home |  | Generated: Fri Sep 2 2011

Public Member Functions | Private Types

# 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]

List of all members.

## 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)
## 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 250 of file NTuple.h.

## Member Typedef Documentation

template<class TYP>

typedef Item<TYP> NTuple::Item< TYP >::_My`[private]`

Definition at line 251 of file NTuple.h.

## Constructor & Destructor Documentation

template<class TYP>

NTuple::Item< TYP >::Item | ( | ) | `[inline]`

Standard Constructor.

Definition at line 254 of file NTuple.h.

    {    }

## Member Function Documentation

template<class TYP>

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

Automatic type conversion.

Definition at line 256 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 258 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 260 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 285 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 262 of file NTuple.h.

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

template<class TYP>

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

Definition at line 263 of file NTuple.h.

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

template<class TYP>

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

Definition at line 277 of file NTuple.h.

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

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& NTuple::Item< TYP >::operator-- | ( | ) | `[inline]`

Definition at line 264 of file NTuple.h.

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

template<class TYP>

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

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

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

template<class TYP>
template<class T >

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

Assignment operator.

Definition at line 273 of file NTuple.h.

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

template<class TYP>

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

Assignment operator.

Definition at line 267 of file NTuple.h.

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

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

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines