Loading [MathJax]/jax/input/TeX/config.js
The Gaudi Framework  master (d98a2936)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 44 of file NTuple.h.

Member Function Documentation

◆ begin()

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

Definition at line 181 of file NTuple.h.

181 { 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 27 of file NTupleItems.cpp.

28  {
29  return new _ArrayImp<TYP>( tup, name, info, idx, len, min, max, def );
30 }

◆ data() [1/2]

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

Access to data by reference (CONST)

Definition at line 179 of file NTuple.h.

179 { 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 177 of file NTuple.h.

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

◆ end()

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

Definition at line 182 of file NTuple.h.

182 { 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 166 of file NTuple.h.

166  {
167  long len = this->length();
168  if ( len == copy.length() ) {
169  const T* source = (const T*)copy.buffer();
170  std::copy_n( source, len, this->m_buffer );
171  return *this;
172  }
173  throw std::out_of_range( "N-tuple matrix cannot be copied! The index range does not match!" );
174  return *this;
175  }

The documentation for this class was generated from the following files:
ConditionsStallTest.name
name
Definition: ConditionsStallTest.py:77