The Gaudi Framework  master (37c0b60a)
NTuple::_ArrayImp< TYP > Class Template Reference

Concrete class discribing a column-array in a N tuple. More...

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

Public Types

typedef Range< TYP > ItemRange
 Set type definition to make life more easy easy. More...
 

Public Member Functions

 _ArrayImp (INTuple *tup, const std::string &name, const std::type_info &typ, const std::string &index, long len, TYP min, TYP max, TYP def)
 Standard Constructor. More...
 
void setDefault (const TYP val) override
 Compiler type ID. More...
 
const ItemRangerange () const override
 Access the range if specified. More...
 
long size () const override
 Size of entire object. More...
 
long ndim () const override
 Dimension. More...
 
long dim (long i) const override
 Access individual dimensions. More...
 

Detailed Description

template<class TYP>
class NTuple::_ArrayImp< TYP >

Concrete class discribing a column-array in a N tuple.

Definition at line 50 of file NTupleItems.h.

Member Typedef Documentation

◆ ItemRange

template<class TYP >
typedef Range<TYP> NTuple::_ArrayImp< TYP >::ItemRange

Set type definition to make life more easy easy.

Definition at line 192 of file NTupleItems.h.

Constructor & Destructor Documentation

◆ _ArrayImp()

template<class TYP >
NTuple::_ArrayImp< TYP >::_ArrayImp ( INTuple tup,
const std::string name,
const std::type_info typ,
const std::string index,
long  len,
TYP  min,
TYP  max,
TYP  def 
)
inline

Standard Constructor.

Definition at line 194 of file NTupleItems.h.

196  : _DataImp<TYP>( tup, name, typ, index, len, min, max, def ) {}

Member Function Documentation

◆ dim()

template<class TYP >
long NTuple::_ArrayImp< TYP >::dim ( long  i) const
inlineoverride

Access individual dimensions.

Definition at line 208 of file NTupleItems.h.

208 { return ( i != 0 || this->hasIndex() ) ? 0 : this->m_length; }

◆ ndim()

template<class TYP >
long NTuple::_ArrayImp< TYP >::ndim ( ) const
inlineoverride

Dimension.

Definition at line 206 of file NTupleItems.h.

206 { return 1; }

◆ range()

template<class TYP >
const ItemRange& NTuple::_ArrayImp< TYP >::range ( ) const
inlineoverride

Access the range if specified.

Definition at line 202 of file NTupleItems.h.

202 { return this->m_range; }

◆ setDefault()

template<class TYP >
void NTuple::_ArrayImp< TYP >::setDefault ( const TYP  val)
inlineoverride

Compiler type ID.

Set default value

Definition at line 200 of file NTupleItems.h.

200 { this->m_def = val; }

◆ size()

template<class TYP >
long NTuple::_ArrayImp< TYP >::size ( ) const
inlineoverride

Size of entire object.

Definition at line 204 of file NTupleItems.h.

204 { return this->m_length * sizeof( TYP ); }

The documentation for this class was generated from the following file:
ConditionsStallTest.name
name
Definition: ConditionsStallTest.py:77
Gaudi::ParticleProperties::index
size_t index(const Gaudi::ParticleProperty *property, const Gaudi::Interfaces::IParticlePropertySvc *service)
helper utility for mapping of Gaudi::ParticleProperty object into non-negative integral sequential id...
Definition: IParticlePropertySvc.cpp:39