| # Gaudi Framework, version v23r0 |

Home |  | Generated: Mon Jan 30 2012

Public Types | Public Member Functions

# NTuple::_MatrixImp< TYP > Class Template Reference

Concrete class discribing a matrix column in a N tuple. More...

`#include <NTupleItems.h>`

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

List of all members.

## Public Types
typedef Range< TYP > | ItemRange
| Set type definition to make life more easy easy.
## Public Member Functions
| _MatrixImp (INTuple *tup, const std::string &name, const std::type_info &typ, const std::string &index, long ncol, long nrow, TYP min, TYP max, TYP def)
| Standard Constructor.
virtual | ~_MatrixImp ()
| Standard Destructor.
virtual void | setDefault (const TYP val)
| Compiler type ID.
virtual const ItemRange & | range () const
| Access the range if specified.
virtual long | size () const
| Size of entire object.
virtual long | ndim () const
| Dimension.
virtual long | dim (long i) const
| Access individual dimensions.

## Detailed Description

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

Concrete class discribing a matrix column in a N tuple.

Definition at line 211 of file NTupleItems.h.

## Member Typedef Documentation

template<class TYP>

typedef Range<TYP> NTuple::_MatrixImp< TYP >::ItemRange

Set type definition to make life more easy easy.

Reimplemented from NTuple::_DataImp< TYP >.

Definition at line 215 of file NTupleItems.h.

## Constructor & Destructor Documentation

template<class TYP>

NTuple::_MatrixImp< TYP >::_MatrixImp | ( | INTuple * | tup,
|  | const std::string & | name,
|  | const std::type_info & | typ,
|  | const std::string & | index,
|  | long | ncol,
|  | long | nrow,
|  | TYP | min,
|  | TYP | max,
|  | TYP | def
| ) |  | `[inline]`

Standard Constructor.

Definition at line 217 of file NTupleItems.h.

        : _DataImp<TYP>(tup, name, typ, index, nrow*ncol, min, max, def)    {
          this->m_rows = nrow;
        }

template<class TYP>

virtual NTuple::_MatrixImp< TYP >::~_MatrixImp | ( | ) | `[inline, virtual]`

Standard Destructor.

Definition at line 223 of file NTupleItems.h.

    {                                     }

## Member Function Documentation

template<class TYP>

virtual long NTuple::_MatrixImp< TYP >::dim | ( | long | i ) | const`[inline, virtual]`

Access individual dimensions.

Reimplemented from NTuple::_DataImp< TYP >.

Definition at line 235 of file NTupleItems.h.

                                                 {
          return (this->hasIndex()) ?
            ((i==0) ?
             this->m_rows : this->m_length/this->m_rows) : ((i==1) ? this->m_length/this->m_rows : this->m_rows);
        }

template<class TYP>

virtual long NTuple::_MatrixImp< TYP >::ndim | ( | ) | const`[inline, virtual]`

Dimension.

Reimplemented from NTuple::_DataImp< TYP >.

Definition at line 233 of file NTupleItems.h.

    { return 2;                           }

template<class TYP>

virtual const ItemRange& NTuple::_MatrixImp< TYP >::range | ( | ) | const`[inline, virtual]`

Access the range if specified.

Reimplemented from NTuple::_DataImp< TYP >.

Definition at line 229 of file NTupleItems.h.

    { return this->m_range;               }

template<class TYP>

virtual void NTuple::_MatrixImp< TYP >::setDefault | ( | const TYP | val ) | `[inline, virtual]`

Compiler type ID.

Set default value

Reimplemented from NTuple::_DataImp< TYP >.

Definition at line 227 of file NTupleItems.h.

    { this->m_def = val;                  }

template<class TYP>

virtual long NTuple::_MatrixImp< TYP >::size | ( | void | ) | const`[inline, virtual]`

Size of entire object.

Reimplemented from NTuple::_DataImp< TYP >.

Definition at line 231 of file NTupleItems.h.

    { return this->m_length*sizeof(TYP);  }

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r0/GaudiKernel/GaudiKernel/NTupleItems.h

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