Abstract class describing a matrix column in a N tuple.
More...
#include </builds/gaudi/Gaudi/GaudiKernel/include/GaudiKernel/NTuple.h>
|
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. More...
|
|
template<class TYP>
class NTuple::_Matrix< TYP >
Abstract class describing a matrix column in a N tuple.
Definition at line 54 of file NTuple.h.
◆ column() [1/2]
Access to data by reference.
Definition at line 218 of file NTuple.h.
218 {
return this->m_buffer + i *
m_rows; }
◆ column() [2/2]
Access to data by reference (CONST)
Definition at line 220 of file NTuple.h.
220 {
return this->m_buffer + i *
m_rows; }
◆ create()
template<class TYP >
NTuple::_Matrix< TYP > * NTuple::_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 50 of file NTupleItems.cpp.
53 return new _MatrixImp<TYP>( tup,
name, info, idx, ncol, nrow, min, max, def );
◆ operator=()
template<class TYP >
template<class T >
Assignment operator.
Definition at line 207 of file NTuple.h.
208 long len = this->length();
209 if ( len == copy.length() ) {
210 const T* source = (
const T*)copy.buffer();
211 std::copy_n( source, len, this->m_buffer );
214 throw std::out_of_range(
"N-tuple matrix cannot be copied! The index range does not match!" );
◆ m_rows
Number of rows per column.
Definition at line 199 of file NTuple.h.
The documentation for this class was generated from the following files: