| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

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).
Itemoperator++ ()
Itemoperator++ (int)
Itemoperator-- ()
Itemoperator-- (int)
Itemoperator= (const TYP data)
 Assignment operator.
template<class T>
Itemoperator= (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)
bool operator! () const
 Check if column is present.
 operator const void * () const
 Check if column is present.
TYP * operator-> ()
 Dereference operator.
const TYP * operator-> () const
 Dereference operator (CONST).
const Range< TYP > & range () const
 Access the range.

Protected Attributes

TYP * m_ptr
 Pointer to instance.

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.

00254 {    }


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.

00256 { 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.

00258 { 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.

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

template<class TYP>
Item& NTuple::Item< TYP >::operator++ (  )  [inline]

Definition at line 262 of file NTuple.h.

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

template<class TYP>
Item& NTuple::Item< TYP >::operator++ ( int   )  [inline]

Definition at line 263 of file NTuple.h.

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

template<class TYP>
Item& NTuple::Item< TYP >::operator-- (  )  [inline]

Definition at line 264 of file NTuple.h.

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

template<class TYP>
Item& NTuple::Item< TYP >::operator-- ( int   )  [inline]

Definition at line 265 of file NTuple.h.

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

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

Assignment operator.

Definition at line 267 of file NTuple.h.

00267                                     {
00268       this->m_ptr->set( data );
00269       return *this;
00270     }

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.

00273                                          {
00274       this->m_ptr->set( data->get() );
00275       return *this;
00276     }

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

Definition at line 277 of file NTuple.h.

00277                                                {
00278       this->m_ptr->set ( this->m_ptr->get() + data );
00279       return *this;
00280     }

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

Definition at line 281 of file NTuple.h.

00281                                                {
00282       this->m_ptr->set ( this->m_ptr->get() - data );
00283       return *this;
00284     }

template<class TYP>
Item<TYP>& NTuple::Item< TYP >::operator *= ( const TYP  data  )  [inline]

Definition at line 285 of file NTuple.h.

00285                                                {
00286       this->m_ptr->set ( this->m_ptr->get() * data );
00287       return *this;
00288     }

template<class TYP>
Item<TYP>& NTuple::Item< TYP >::operator/= ( const TYP  data  )  [inline]

Definition at line 289 of file NTuple.h.

00289                                                {
00290       this->m_ptr->set ( this->m_ptr->get() / data );
00291       return *this;
00292     }

template<class TYP>
bool NTuple::_Accessor< TYP >::operator! (  )  const [inline, inherited]

Check if column is present.

Definition at line 237 of file NTuple.h.

00237 { return m_ptr != 0;             }

template<class TYP>
NTuple::_Accessor< TYP >::operator const void * (  )  const [inline, inherited]

Check if column is present.

Definition at line 239 of file NTuple.h.

00239 { return m_ptr;                  }

template<class TYP>
TYP* NTuple::_Accessor< TYP >::operator-> (  )  [inline, inherited]

Dereference operator.

Definition at line 241 of file NTuple.h.

00241 { return m_ptr;                  }

template<class TYP>
const TYP* NTuple::_Accessor< TYP >::operator-> (  )  const [inline, inherited]

Dereference operator (CONST).

Definition at line 243 of file NTuple.h.

00243 { return m_ptr;                  }

template<class TYP>
const Range<TYP>& NTuple::_Accessor< TYP >::range (  )  const [inline, inherited]

Access the range.

Definition at line 245 of file NTuple.h.

00245 { return m_ptr->range();         }


Member Data Documentation

template<class TYP>
TYP* NTuple::_Accessor< TYP >::m_ptr [mutable, protected, inherited]

Pointer to instance.

Definition at line 230 of file NTuple.h.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 19:57:18 2011 for GaudiKernel by doxygen 1.4.7