| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | List of all members
NTuple::_ArrayImp< TYP > Class Template Reference

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

`#include <NTupleItems.h>`

Inheritance diagram for NTuple::_ArrayImp< TYP >:
[legend]
Collaboration diagram for NTuple::_ArrayImp< TYP >:
[legend]

## 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.
virtual | ~_ArrayImp ()
| Standard Destructor.
virtual void | setDefault (const TYP val)
| Compiler type ID.
virtual const ItemRange & | range () const
| Access the range if specified.
virtual long | size () const
| Size of entire object.
virtual long | ndim () const
| Dimension.
virtual long | dim (long i) const
| Access individual dimensions.
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.
virtual | ~_DataImp ()
| Standard destructor.
virtual std::string | typeName () const
| Get proper type name.
virtual void | reset ()
| Reset to default.
virtual long | filled () const
| Number of items filled.
virtual INTupleItem * | indexItem ()
| Pointer to index column (if present, 0 else)
virtual const INTupleItem * | indexItem () const
| Pointer to index column (if present, 0 else) (CONST)
virtual const std::type_info & | typeID () const
| Compiler type ID.
virtual void | release ()
| Destruct object.
virtual bool | hasIndex () const
| Is the tuple have an index column?
virtual const std::string & | index () const
| Access the index _Column.
virtual const std::string & | name () const
| Access _Column name.
virtual long | type () const
| TYP information of the item.
virtual void | setType (long t)
| Set the properties of the _Column.
virtual long | length () const
| Access the buffer length.
virtual const void * | buffer () const
| Access data buffer (CONST)
virtual void * | buffer ()
| Access data buffer.
virtual INTuple * | tuple ()
| Access to hosting ntuple.
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)

## Additional Inherited Members
Static Public Member Functions inherited from NTuple::_Array< TYP >
static _Array * | create (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.
INTuple * | m_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.
INTupleItem * | m_indexItem
| 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
| 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 183 of file NTupleItems.h.

## Member Typedef Documentation

template<class TYP>

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

Set type definition to make life more easy easy.

Definition at line 187 of file NTupleItems.h.

## Constructor & Destructor Documentation

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 189 of file NTupleItems.h.

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

virtual NTuple::_ArrayImp< TYP >::~_ArrayImp | ( |  | ) |
| inline virtual

Standard Destructor.

Definition at line 192 of file NTupleItems.h.

{ }

## Member Function Documentation

template<class TYP>

virtual long NTuple::_ArrayImp< TYP >::dim | ( | long | i | ) | const
| inline virtual

Access individual dimensions.

Reimplemented from NTuple::_DataImp< TYP >.

Definition at line 204 of file NTupleItems.h.

{
return (i!=0 || this->hasIndex()) ? 0 : this->m_length;
}
template<class TYP>

virtual long NTuple::_ArrayImp< TYP >::ndim | ( |  | ) | const
| inline virtual

Dimension.

Reimplemented from NTuple::_DataImp< TYP >.

Definition at line 202 of file NTupleItems.h.

{ return 1; }
template<class TYP>

virtual const ItemRange& NTuple::_ArrayImp< TYP >::range | ( |  | ) | const
| inline virtual

Access the range if specified.

Reimplemented from NTuple::_DataImp< TYP >.

Definition at line 198 of file NTupleItems.h.

{ return this->m_range; }
template<class TYP>

virtual void NTuple::_ArrayImp< TYP >::setDefault | ( | const TYP | val | ) |
| inline virtual

Compiler type ID.

Set default value

Reimplemented from NTuple::_DataImp< TYP >.

Definition at line 196 of file NTupleItems.h.

{ this->m_def = val; }
template<class TYP>

virtual long NTuple::_ArrayImp< TYP >::size | ( |  | ) | const
| inline virtual

Size of entire object.

Reimplemented from NTuple::_DataImp< TYP >.

Definition at line 200 of file NTupleItems.h.

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

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r0/GaudiKernel/GaudiKernel/NTupleItems.h