All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
NTuple::_MatrixImp< TYP > Class Template Reference

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

#include <GaudiKernel/NTupleItems.h>

Inheritance diagram for NTuple::_MatrixImp< TYP >:
Collaboration diagram for NTuple::_MatrixImp< 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

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

Additional Inherited Members

- Static Public Member Functions inherited from NTuple::_Matrix< TYP >
static _Matrixcreate (INTuple *tup, const std::string &name, const std::type_info &info, const std::string &index, long ncol, long nrow, TYP min, TYP max, TYP def)
 Create instance. More...
 
- 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. 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
 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_info & m_info
 Item type information. More...
 
- Protected Attributes inherited from NTuple::_Data< TYP >
TYP * m_buffer
 Pointer to data buffer. More...
 
- Protected Attributes inherited from NTuple::_Matrix< TYP >
long m_rows
 Number of rows per column. More...
 

Detailed Description

template<class TYP>
class NTuple::_MatrixImp< TYP >

Concrete class discribing a matrix column in a N tuple.

Definition at line 35 of file NTupleItems.h.

Member Typedef Documentation

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

Set type definition to make life more easy easy.

Definition at line 215 of file NTupleItems.h.

Constructor & Destructor Documentation

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

Standard Constructor.

Definition at line 217 of file NTupleItems.h.

219  : _DataImp<TYP>(tup, name, typ, index, nrow*ncol, min, max, def) {
220  this->m_rows = nrow;
221  }
virtual const std::string & name() const
Access _Column name.
Definition: NTupleItems.h:135
#define min(a, b)
virtual const std::string & index() const
Access the index _Column.
Definition: NTupleItems.h:133
long m_rows
Number of rows per column.
Definition: NTuple.h:189
template<class TYP>
virtual NTuple::_MatrixImp< TYP >::~_MatrixImp ( )
inlinevirtual

Standard Destructor.

Definition at line 223 of file NTupleItems.h.

223 { }

Member Function Documentation

template<class TYP>
virtual long NTuple::_MatrixImp< TYP >::dim ( long  i) const
inlinevirtual

Access individual dimensions.

Reimplemented from NTuple::_DataImp< TYP >.

Definition at line 235 of file NTupleItems.h.

235  {
236  return (this->hasIndex()) ?
237  ((i==0) ?
238  this->m_rows : this->m_length/this->m_rows) : ((i==1) ? this->m_length/this->m_rows : this->m_rows);
239  }
long m_length
Entire buffer length.
Definition: NTupleItems.h:47
long m_rows
Number of rows per column.
Definition: NTuple.h:189
virtual bool hasIndex() const
Is the tuple have an index column?
Definition: NTupleItems.h:131
list i
Definition: ana.py:128
template<class TYP>
virtual long NTuple::_MatrixImp< TYP >::ndim ( ) const
inlinevirtual

Dimension.

Reimplemented from NTuple::_DataImp< TYP >.

Definition at line 233 of file NTupleItems.h.

233 { return 2; }
template<class TYP>
virtual const ItemRange& NTuple::_MatrixImp< TYP >::range ( ) const
inlinevirtual

Access the range if specified.

Reimplemented from NTuple::_DataImp< TYP >.

Definition at line 229 of file NTupleItems.h.

229 { return this->m_range; }
Range< TYP > m_range
Check that values are within a certain range while filling.
Definition: NTupleItems.h:61
template<class TYP>
virtual void NTuple::_MatrixImp< TYP >::setDefault ( const TYP  val)
inlinevirtual

Compiler type ID.

Set default value

Reimplemented from NTuple::_DataImp< TYP >.

Definition at line 227 of file NTupleItems.h.

227 { this->m_def = val; }
TYP m_def
Buffer with default value.
Definition: NTupleItems.h:59
template<class TYP>
virtual long NTuple::_MatrixImp< TYP >::size ( ) const
inlinevirtual

Size of entire object.

Reimplemented from NTuple::_DataImp< TYP >.

Definition at line 231 of file NTupleItems.h.

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

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