The Gaudi Framework  v30r3 (a5ef0a68)
NTuple::_ItemImp< TYP > Class Template Reference

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

#include <GaudiKernel/NTupleItems.h>

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

Public Types

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

Public Member Functions

 _ItemImp (INTuple *tup, const std::string &name, const std::type_info &info, 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...
 
- 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. More...
 
 ~_DataImp () override
 Standard destructor. More...
 
std::string typeName () const override
 Get proper type name. More...
 
void reset () override
 Reset to default. More...
 
long filled () const override
 Number of items filled. More...
 
INTupleItemindexItem () override
 Pointer to index column (if present, 0 else) More...
 
const INTupleItemindexItem () const override
 Pointer to index column (if present, 0 else) (CONST) More...
 
const std::type_infotypeID () const override
 Compiler type ID. More...
 
void release () override
 Destruct object. More...
 
bool hasIndex () const override
 Is the tuple have an index column? More...
 
const std::stringindex () const override
 Access the index _Column. More...
 
const std::stringname () const override
 Access _Column name. More...
 
long type () const override
 TYP information of the item. More...
 
void setType (long t) override
 Set the properties of the _Column. More...
 
long length () const override
 Access the buffer length. More...
 
const void * buffer () const override
 Access data buffer (CONST) More...
 
virtual void * buffer ()
 Access data buffer. More...
 
long ndim () const override
 Dimension. More...
 
long dim (long i) const override
 Access individual dimensions. More...
 
INTupletuple () override
 Access to hosting ntuple. More...
 
- Public Member Functions inherited from INTupleItem
virtual ~INTupleItem ()=default
 destructor More...
 
- Public Member Functions inherited from NTuple::_Item< TYP >
template<class T >
_Item< TYP > & operator= (const _Item< T > &copy)
 Assignment operator. More...
 
void set (const TYP &item)
 Access to data by reference. More...
 
virtual TYP get () const
 Access to data by reference (CONST) More...
 

Additional Inherited Members

- Static Public Member Functions inherited from NTuple::_Item< TYP >
static _Itemcreate (INTuple *tup, const std::string &name, const std::type_info &info, TYP min, TYP max, TYP def)
 Create instance. More...
 
- Protected Types inherited from NTuple::_DataImp< TYP >
typedef const std::stringCSTR
 
typedef const std::type_infoCTYPE
 
- Protected Attributes inherited from NTuple::_DataImp< TYP >
long m_length
 Entire buffer length. More...
 
INTuplem_tuple
 Pointer to N tuple. More...
 
std::string m_name
 _Column name More...
 
std::string m_index
 Check that values are within a certain range while filling. More...
 
INTupleItemm_indexItem = nullptr
 Pointer to index item. More...
 
DataTypeInfo::Type m_type
 _Column type More...
 
TYP m_def
 Buffer with default value. More...
 
Range< TYP > m_range
 Check that values are within a certain range while filling. More...
 
const std::type_infom_info
 Item type information. More...
 
- Protected Attributes inherited from NTuple::_Data< TYP >
TYP * m_buffer = nullptr
 Pointer to data buffer. More...
 

Detailed Description

template<class TYP>
class NTuple::_ItemImp< TYP >

Concrete class discribing a column in a N tuple.

Definition at line 36 of file NTupleItems.h.

Member Typedef Documentation

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

Set type definition to make life more easy easy.

Definition at line 168 of file NTupleItems.h.

Constructor & Destructor Documentation

template<class TYP>
NTuple::_ItemImp< TYP >::_ItemImp ( INTuple tup,
const std::string name,
const std::type_info info,
TYP  min,
TYP  max,
TYP  def 
)
inline

Standard Constructor.

Definition at line 170 of file NTupleItems.h.

171  : _DataImp<TYP>( tup, name, info, "", 1, min, max, def )
172  {
173  }
const std::string & name() const override
Access _Column name.
Definition: NTupleItems.h:137
T min(T...args)
T max(T...args)

Member Function Documentation

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

Access the range if specified.

Reimplemented from NTuple::_DataImp< TYP >.

Definition at line 179 of file NTupleItems.h.

179 { return this->m_range; }
Range< TYP > m_range
Check that values are within a certain range while filling.
Definition: NTupleItems.h:68
template<class TYP>
void NTuple::_ItemImp< TYP >::setDefault ( const TYP  val)
inlineoverridevirtual

Compiler type ID.

Set default value

Reimplemented from NTuple::_DataImp< TYP >.

Definition at line 177 of file NTupleItems.h.

177 { this->m_def = val; }
TYP m_def
Buffer with default value.
Definition: NTupleItems.h:66
template<class TYP>
long NTuple::_ItemImp< TYP >::size ( ) const
inlineoverridevirtual

Size of entire object.

Reimplemented from NTuple::_DataImp< TYP >.

Definition at line 181 of file NTupleItems.h.

181 { return this->m_length * sizeof( TYP ); }
long m_length
Entire buffer length.
Definition: NTupleItems.h:54

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