|
Gaudi Framework, version v23r2 |
| Home | Generated: Thu Jun 28 2012 |
Abstract class describing a column-array in a N tuple. More...
#include <NTuple.h>


Public Member Functions | |
| template<class T > | |
| _Array< TYP > & | operator= (const _Array< T > ©) |
| Assignment operator. | |
| const TYP & | data (long i) const |
| Access to data by reference (CONST) | |
| TYP & | data (long i) |
| Access to data by reference (CONST) | |
Static Public Member Functions | |
| static _Array * | create (INTuple *tup, const std::string &name, const std::type_info &info, const std::string &index, long len, TYP min, TYP max, TYP def) |
| Create instance. | |
Abstract class describing a column-array in a N tuple.
Definition at line 150 of file NTuple.h.
| NTuple::_Array< TYP > * NTuple::_Array< TYP >::create | ( | INTuple * | tup, |
| const std::string & | name, | ||
| const std::type_info & | info, | ||
| const std::string & | index, | ||
| long | len, | ||
| TYP | min, | ||
| TYP | max, | ||
| TYP | def | ||
| ) | [static] |
Create instance.
Definition at line 34 of file NTupleItems.cpp.
| TYP& NTuple::_Array< TYP >::data | ( | long | i ) | [inline] |
| const TYP& NTuple::_Array< TYP >::data | ( | long | i ) | const [inline] |
| _Array<TYP>& NTuple::_Array< TYP >::operator= | ( | const _Array< T > & | copy ) | [inline] |
Assignment operator.
Definition at line 163 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;
}