Gaudi Framework, version v23r6

Home   Generated: Wed Jan 30 2013
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | List of all members
NTuple::_Array< TYP > Class Template Reference

Abstract class describing a column-array in a N tuple. More...

#include <NTuple.h>

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

Public Member Functions

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)
 
- Public Member Functions inherited from NTuple::_Data< TYP >
virtual void setDefault (const TYP d)=0
 Set default value.
 
virtual const ItemRangerange () const =0
 Access the range if specified.
 
- Public Member Functions inherited from INTupleItem
virtual ~INTupleItem ()
 destructor
 
virtual void release ()=0
 Destruct object.
 
virtual const std::type_infotypeID () const =0
 Compiler type ID.
 
virtual std::string typeName () const =0
 Proper type name of the object.
 
virtual const void * buffer () const =0
 Access data buffer (CONST)
 
virtual bool hasIndex () const =0
 Is the tuple have an index item?
 
virtual const std::stringindex () const =0
 Access the index _Item.
 
virtual const std::stringname () const =0
 Access _Item name.
 
virtual long type () const =0
 Type information of the item.
 
virtual long length () const =0
 Access the buffer length.
 
virtual void reset ()=0
 Reset column.
 
virtual long ndim () const =0
 Dimension.
 
virtual long dim (long i) const =0
 Access individual dimensions.
 
virtual long size () const =0
 Size of entire object.
 
virtual long filled () const =0
 Number of items filled.
 
virtual INTupleItemindexItem ()=0
 Pointer to index column (if present, 0 else)
 
virtual const INTupleItemindexItem () const =0
 Pointer to index column (if present, 0 else) (CONST)
 
virtual INTupletuple ()=0
 NTuple the item belongs to.
 

Static Public Member Functions

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.
 

Additional Inherited Members

- Public Types inherited from NTuple::_Data< TYP >
typedef Range< TYP > ItemRange
 Set type definition to make life more easy easy.
 
- Protected Member Functions inherited from INTupleItem
virtual void setType (long typ)=0
 Set the properties of the INTupleItem.
 
- Protected Attributes inherited from NTuple::_Data< TYP >
TYP * m_buffer
 Pointer to data buffer.
 

Detailed Description

template<class TYP>
class NTuple::_Array< TYP >

Abstract class describing a column-array in a N tuple.

Definition at line 152 of file NTuple.h.

Member Function Documentation

template<class TYP >
NTuple::_Array< TYP > * _Array< TYP >::create ( INTuple tup,
const std::string name,
const std::type_info info,
const std::string index,
long  len,
TYP  min,
TYP  max,
TYP  def 
)
static

Create instance.

Definition at line 34 of file NTupleItems.cpp.

{
_ArrayImp<TYP>* result = new _ArrayImp<TYP>(tup,name,info,idx,len,min,max,def);
return result;
}
template<class TYP>
const TYP& NTuple::_Array< TYP >::data ( long  i) const
inline

Access to data by reference (CONST)

Definition at line 179 of file NTuple.h.

{ return *(this->m_buffer + i); }
template<class TYP>
TYP& NTuple::_Array< TYP >::data ( long  i)
inline

Access to data by reference (CONST)

Definition at line 181 of file NTuple.h.

{ return *(this->m_buffer + i); }
template<class TYP>
template<class T >
_Array<TYP>& NTuple::_Array< TYP >::operator= ( const _Array< T > &  copy)
inline

Assignment operator.

Definition at line 165 of file NTuple.h.

{
long len = this->length();
if ( len == copy.length() ) {
const T* source = (const T*)copy.buffer();
for ( int i = 0; i < len; i++ ) {
*(this->m_buffer + i) = *(source + i);
}
return *this;
}
("N-tuple matrix cannot be copied! The index range does not match!");
return *this;
}

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

Generated at Wed Jan 30 2013 17:13:52 for Gaudi Framework, version v23r6 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004