The Gaudi Framework  master (ff829712)
Loading...
Searching...
No Matches
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>

Inheritance diagram for NTuple::_ArrayImp< TYP >:
Collaboration diagram for NTuple::_ArrayImp< TYP >:

Public Types

typedef Range< TYP > ItemRange
 Set type definition to make life more easy easy.
 
- Public Types inherited from NTuple::_DataImp< TYP >
typedef Range< TYP > ItemRange
 Set type definition to make life more easy easy.
 
- Public Types inherited from NTuple::_Data< TYP >
typedef Range< TYP > ItemRange
 Set type definition to make life more easy easy.
 

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.
 
void setDefault (const TYP val) override
 Compiler type ID.
 
const ItemRangerange () const override
 Access the range if specified.
 
long size () const override
 Size of entire object.
 
long ndim () const override
 Dimension.
 
long dim (long i) const override
 Access individual dimensions.
 
- Public Member Functions inherited from NTuple::_DataImp< TYP >
 _DataImp (INTuple *tup, std::string name, const std::type_info &info, std::string index, long len, TYP low, TYP high, TYP def)
 Standard Constructor.
 
 ~_DataImp () override
 Standard destructor.
 
std::string typeName () const override
 Get proper type name.
 
void reset () override
 Reset to default.
 
long filled () const override
 Number of items filled.
 
INTupleItemindexItem () override
 Pointer to index column (if present, 0 else)
 
const INTupleItemindexItem () const override
 Pointer to index column (if present, 0 else) (CONST)
 
const std::type_info & typeID () const override
 Compiler type ID.
 
long size () const override
 Size of entire object.
 
void release () override
 Destruct object.
 
bool hasIndex () const override
 Is the tuple have an index column?
 
const std::string & index () const override
 Access the index _Column.
 
const std::string & name () const override
 Access _Column name.
 
long type () const override
 TYP information of the item.
 
void setType (long t) override
 Set the properties of the _Column.
 
void setDefault (const TYP val) override
 Set default value.
 
const ItemRangerange () const override
 Access the range if specified.
 
long length () const override
 Access the buffer length.
 
const void * buffer () const override
 Access data buffer (CONST)
 
virtual void * buffer ()
 Access data buffer.
 
long ndim () const override
 Dimension.
 
long dim (long i) const override
 Access individual dimensions.
 
INTupletuple () override
 Access to hosting ntuple.
 
- Public Member Functions inherited from INTupleItem
virtual ~INTupleItem ()=default
 destructor
 
- Public Member Functions inherited from NTuple::_Array< TYP >
template<class T>
_Array< TYP > & operator= (const _Array< T > &copy)
 Assignment operator.
 
const TYP & data (long i) const
 Access to data by reference (CONST)
 
TYP & data (long i)
 Access to data by reference (CONST)
 
TYP * begin ()
 
TYP * end ()
 

Additional Inherited Members

- Static Public Member Functions inherited from NTuple::_Array< TYP >
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.
 
- Protected Types inherited from NTuple::_DataImp< TYP >
typedef const std::string & CSTR
 
typedef const std::type_info & CTYPE
 
- Protected Attributes inherited from NTuple::_DataImp< TYP >
long m_length
 Entire buffer length.
 
INTuplem_tuple
 Pointer to N tuple.
 
std::string m_name
 _Column name
 
std::string m_index
 Check that values are within a certain range while filling.
 
INTupleItemm_indexItem = nullptr
 Pointer to index item.
 
DataTypeInfo::Type m_type
 _Column type
 
TYP m_def
 Buffer with default value.
 
Range< TYP > m_range
 Check that values are within a certain range while filling.
 
const std::type_info & m_info
 Item type information.
 
- Protected Attributes inherited from NTuple::_Data< TYP >
TYP * m_buffer = nullptr
 Pointer to data buffer.
 

Detailed Description

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

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

Definition at line 186 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 189 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 191 of file NTupleItems.h.

193 : _DataImp<TYP>( tup, name, typ, index, len, min, max, def ) {}
virtual const std::string & index() const =0
Access the index _Item.
virtual const std::string & name() const =0
Access _Item name.
Concrete class discribing a column-array in a N tuple.
_DataImp(const _DataImp &)=delete
Inhibit Copy Constructor.

Member Function Documentation

◆ dim()

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

Access individual dimensions.

Implements INTupleItem.

Definition at line 205 of file NTupleItems.h.

205{ return ( i != 0 || this->hasIndex() ) ? 0 : this->m_length; }
bool hasIndex() const override
Is the tuple have an index column?
long m_length
Entire buffer length.
Definition NTupleItems.h:62

◆ ndim()

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

Dimension.

Implements INTupleItem.

Definition at line 203 of file NTupleItems.h.

203{ return 1; }

◆ range()

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

Access the range if specified.

Implements NTuple::_Data< TYP >.

Definition at line 199 of file NTupleItems.h.

199{ return this->m_range; }
Range< TYP > m_range
Check that values are within a certain range while filling.
Definition NTupleItems.h:76

◆ setDefault()

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

Compiler type ID.

Set default value

Implements NTuple::_Data< TYP >.

Definition at line 197 of file NTupleItems.h.

197{ this->m_def = val; }
TYP m_def
Buffer with default value.
Definition NTupleItems.h:74

◆ size()

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

Size of entire object.

Implements INTupleItem.

Definition at line 201 of file NTupleItems.h.

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

The documentation for this class was generated from the following file: