The Gaudi Framework  master (594c33fa)
NTuple::_Array< TYP > Class Template Reference

Abstract class describing a column-array in a N tuple. More...

#include </builds/gaudi/Gaudi/GaudiKernel/include/GaudiKernel/NTuple.h>

Public Member Functions

template<class T >
_Array< TYP > & operator= (const _Array< T > &copy)
 Assignment operator. More...
 
const TYP & data (long i) const
 Access to data by reference (CONST) More...
 
TYP & data (long i)
 Access to data by reference (CONST) More...
 
TYP * begin ()
 
TYP * end ()
 

Static Public Member Functions

static _Arraycreate (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. More...
 

Detailed Description

template<class TYP>
class NTuple::_Array< TYP >

Abstract class describing a column-array in a N tuple.

Definition at line 52 of file NTuple.h.

Member Function Documentation

◆ begin()

template<class TYP >
TYP* NTuple::_Array< TYP >::begin ( )
inline

Definition at line 189 of file NTuple.h.

189 { return this->m_buffer; }

◆ create()

template<class TYP >
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 43 of file NTupleItems.cpp.

44  {
45  return new _ArrayImp<TYP>( tup, name, info, idx, len, min, max, def );
46 }

◆ data() [1/2]

template<class TYP >
TYP& NTuple::_Array< TYP >::data ( long  i)
inline

Access to data by reference (CONST)

Definition at line 187 of file NTuple.h.

187 { return this->m_buffer[i]; }

◆ data() [2/2]

template<class TYP >
const TYP& NTuple::_Array< TYP >::data ( long  i) const
inline

Access to data by reference (CONST)

Definition at line 185 of file NTuple.h.

185 { return this->m_buffer[i]; }

◆ end()

template<class TYP >
TYP* NTuple::_Array< TYP >::end ( )
inline

Definition at line 190 of file NTuple.h.

190 { return this->m_buffer + this->length(); }

◆ operator=()

template<class TYP >
template<class T >
_Array<TYP>& NTuple::_Array< TYP >::operator= ( const _Array< T > &  copy)
inline

Assignment operator.

Definition at line 174 of file NTuple.h.

174  {
175  long len = this->length();
176  if ( len == copy.length() ) {
177  const T* source = (const T*)copy.buffer();
178  std::copy_n( source, len, this->m_buffer );
179  return *this;
180  }
181  throw std::out_of_range( "N-tuple matrix cannot be copied! The index range does not match!" );
182  return *this;
183  }

The documentation for this class was generated from the following files:
max
EventIDBase max(const EventIDBase &lhs, const EventIDBase &rhs)
Definition: EventIDBase.h:225
std::copy_n
T copy_n(T... args)
std::copy
T copy(T... args)
min
EventIDBase min(const EventIDBase &lhs, const EventIDBase &rhs)
Definition: EventIDBase.h:212
ConditionsStallTest.name
name
Definition: ConditionsStallTest.py:77
std::out_of_range
STL class.