| # 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 | Static Public Member Functions | Protected Attributes | List of all members
NTuple::_Matrix< TYP > Class Template Reference

Abstract class describing a matrix column in a N tuple. More...

`#include <NTuple.h>`

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

## Public Member Functions
template<class T >
_Matrix< TYP > & | operator= (const _Matrix< T > &copy)
| Assignment operator.
TYP * | column (long i)
| Access to data by reference.
const TYP * | column (long i) const
| Access to data by reference (CONST)
Public Member Functions inherited from NTuple::_Data< TYP >
virtual void | setDefault (const TYP d)=0
| Set default value.
virtual const ItemRange & | range () const =0
| Access the range if specified.
Public Member Functions inherited from INTupleItem
virtual | ~INTupleItem ()
| destructor
virtual void | release ()=0
| Destruct object.
virtual const std::type_info & | typeID () const =0
| Compiler type ID.
virtual std::string | typeName () const =0
| Proper type name of the object.
virtual const void * | buffer () const =0
| Access data buffer (CONST)
virtual bool | hasIndex () const =0
| Is the tuple have an index item?
virtual const std::string & | index () const =0
| Access the index _Item.
virtual const std::string & | name () const =0
| Access _Item name.
virtual long | type () const =0
| Type information of the item.
virtual long | length () const =0
| Access the buffer length.
virtual void | reset ()=0
| Reset column.
virtual long | ndim () const =0
| Dimension.
virtual long | dim (long i) const =0
| Access individual dimensions.
virtual long | size () const =0
| Size of entire object.
virtual long | filled () const =0
| Number of items filled.
virtual INTupleItem * | indexItem ()=0
| Pointer to index column (if present, 0 else)
virtual const INTupleItem * | indexItem () const =0
| Pointer to index column (if present, 0 else) (CONST)
virtual INTuple * | tuple ()=0
| NTuple the item belongs to.

## Static Public Member Functions
static _Matrix * | create (INTuple *tup, const std::string &name, const std::type_info &info, const std::string &index, long ncol, long nrow, TYP min, TYP max, TYP def)
| Create instance.

## Protected Attributes
long | m_rows
| Number of rows per column.
Protected Attributes inherited from NTuple::_Data< TYP >
TYP * | m_buffer
| Pointer to data buffer.

## Additional Inherited Members
Public Types inherited from NTuple::_Data< TYP >
typedef Range< TYP > | ItemRange
| Set type definition to make life more easy easy.
Protected Member Functions inherited from INTupleItem
virtual void | setType (long typ)=0
| Set the properties of the INTupleItem.

## Detailed Description

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

Abstract class describing a matrix column in a N tuple.

Definition at line 186 of file NTuple.h.

## Member Function Documentation

template<class TYP>

TYP* NTuple::_Matrix< TYP >::column | ( | long | i | ) |
| inline

Access to data by reference.

Definition at line 217 of file NTuple.h.

{ return (this->m_buffer + i*m_rows); }
template<class TYP>

const TYP* NTuple::_Matrix< TYP >::column | ( | long | i | ) | const
| inline

Access to data by reference (CONST)

Definition at line 219 of file NTuple.h.

{ return (this->m_buffer + i*m_rows); }
template<class TYP >

NTuple::_Matrix< TYP > * _Matrix< TYP >::create | ( | INTuple * | tup,
|  | const std::string & | name,
|  | const std::type_info & | info,
|  | const std::string & | index,
|  | long | ncol,
|  | long | nrow,
|  | TYP | min,
|  | TYP | max,
|  | TYP | def
| ) |  |
| static

Create instance.

Definition at line 41 of file NTupleItems.cpp.

{
_MatrixImp<TYP>* result = new _MatrixImp<TYP>(tup,name,info,idx,ncol,nrow,min,max,def);
return result;
}
template<class TYP>
template<class T >

_Matrix<TYP>& NTuple::_Matrix< TYP >::operator= | ( | const _Matrix< T > & | copy | ) |
| inline

Assignment operator.

Definition at line 203 of file NTuple.h.

{
long len = this->length();
if ( len == copy.length() ) {
const T* source = (const T*)copy.buffer();
for ( int i = 0; i < len; i++ ) {
*(this->m_buffer + i) = *(source + i);
}
return *this;
}
throw std::out_of_range
("N-tuple matrix cannot be copied! The index range does not match!");
return *this;
}

## Member Data Documentation

template<class TYP>

long NTuple::_Matrix< TYP >::m_rows
| protected

Number of rows per column.

Definition at line 189 of file NTuple.h.

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r0/GaudiKernel/GaudiKernel/NTuple.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r0/GaudiKernel/src/Lib/NTupleItems.cpp