inlib  1.2.0
Public Member Functions | Protected Member Functions | Protected Attributes
inlib::rroot::ntuple::column< T > Class Template Reference
Inheritance diagram for inlib::rroot::ntuple::column< T >:
Inheritance graph
[legend]
Collaboration diagram for inlib::rroot::ntuple::column< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual const std::string & name () const
virtual bool get_entry (T &a_v) const
 column (leaf< T > &a_leaf, int64 &a_index)
virtual ~column ()

Protected Member Functions

 column (const column &a_from)
columnoperator= (const column &)

Protected Attributes

leaf< T > & m_leaf
int64m_index

Detailed Description

template<class T>
class inlib::rroot::ntuple::column< T >

Definition at line 39 of file ntuple.


Constructor & Destructor Documentation

template<class T>
inlib::rroot::ntuple::column< T >::column ( leaf< T > &  a_leaf,
int64 a_index 
) [inline]

Definition at line 53 of file ntuple.

    :m_leaf(a_leaf)
    ,m_index(a_index) //WARNING : we keep the ref !
    {}
template<class T>
virtual inlib::rroot::ntuple::column< T >::~column ( ) [inline, virtual]

Definition at line 57 of file ntuple.

{}
template<class T>
inlib::rroot::ntuple::column< T >::column ( const column< T > &  a_from) [inline, protected]

Definition at line 59 of file ntuple.

    :read::intuple(a_from),read::icolumn<T>(a_from)
    ,m_leaf(a_from.m_leaf) 
    ,m_index(a_from.m_index)
    {}

Member Function Documentation

template<class T>
virtual bool inlib::rroot::ntuple::column< T >::get_entry ( T &  a_v) const [inline, virtual]

Implements inlib::read::icolumn< T >.

Definition at line 43 of file ntuple.

                                         {
      unsigned int n;
      if(!m_leaf.branch().find_entry(uint32(m_index),n)) {
        a_v = T();
        return false;
      }
      a_v = m_leaf.value();
      return true;
    }
template<class T>
virtual const std::string& inlib::rroot::ntuple::column< T >::name ( ) const [inline, virtual]

Implements inlib::read::icol.

Definition at line 41 of file ntuple.

{return m_leaf.name();}
template<class T>
column& inlib::rroot::ntuple::column< T >::operator= ( const column< T > &  ) [inline, protected]

Definition at line 64 of file ntuple.

{return *this;}

Member Data Documentation

template<class T>
int64& inlib::rroot::ntuple::column< T >::m_index [protected]

Definition at line 67 of file ntuple.

template<class T>
leaf<T>& inlib::rroot::ntuple::column< T >::m_leaf [protected]

Definition at line 66 of file ntuple.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines