Abstract class describing a matrix column in a N tuple.
More...
#include <NTuple.h>
List of all members.
Public Member Functions |
| template<class T > |
| _Matrix< TYP > & | operator= (const _Matrix< T > ©) |
| | Assignment operator.
|
| TYP * | column (long i) |
| | Access to data by reference.
|
| const TYP * | column (long i) const |
| | Access to data by reference (CONST)
|
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.
|
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
Access to data by reference.
Definition at line 217 of file NTuple.h.
Access to data by reference (CONST)
Definition at line 219 of file NTuple.h.
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 >
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
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_v23r4/GaudiKernel/GaudiKernel/NTuple.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r4/GaudiKernel/src/Lib/NTupleItems.cpp