g4tools  5.4.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
tools::rroot::ntuple::column< T, LEAF > Class Template Reference
Inheritance diagram for tools::rroot::ntuple::column< T, LEAF >:
Inheritance graph
[legend]
Collaboration diagram for tools::rroot::ntuple::column< T, LEAF >:
Collaboration graph
[legend]

Public Member Functions

virtual void * cast (cid a_class) const
 
virtual cid id_cls () const
 
 column (ifile &a_file, branch &a_branch, LEAF &a_leaf, int64 &a_index)
 
virtual ~column ()
 
const T & get_value () const
 
- Public Member Functions inherited from tools::rroot::ntuple::column_ref< T, LEAF >
virtual const std::string & name () const
 
virtual bool fetch_entry () const
 
virtual bool get_entry (T &a_v) const
 
 column_ref (ifile &a_file, branch &a_branch, LEAF &a_leaf, int64 &a_index, T &a_ref)
 
virtual ~column_ref ()
 
- Public Member Functions inherited from tools::read::icolumn< T >
virtual ~icolumn ()
 
- Public Member Functions inherited from tools::read::icol
virtual ~icol ()
 
virtual void stop ()
 

Static Public Member Functions

static cid id_class ()
 
- Static Public Member Functions inherited from tools::rroot::ntuple::column_ref< T, LEAF >
static cid id_class ()
 
- Static Public Member Functions inherited from tools::read::icolumn< T >
static cid id_class ()
 

Protected Member Functions

 column (const column &a_from)
 
columnoperator= (const column &a_from)
 
- Protected Member Functions inherited from tools::rroot::ntuple::column_ref< T, LEAF >
 column_ref (const column_ref &a_from)
 
column_refoperator= (const column_ref &a_from)
 
bool _fetch_entry () const
 

Protected Attributes

m_value
 
- Protected Attributes inherited from tools::rroot::ntuple::column_ref< T, LEAF >
ifilem_file
 
branchm_branch
 
LEAF & m_leaf
 
int64m_index
 
T & m_ref
 

Additional Inherited Members

- Public Types inherited from tools::read::icolumn< T >
typedef T entry_t
 

Detailed Description

template<class T, class LEAF>
class tools::rroot::ntuple::column< T, LEAF >

Definition at line 115 of file ntuple.

Constructor & Destructor Documentation

◆ column() [1/2]

template<class T , class LEAF >
tools::rroot::ntuple::column< T, LEAF >::column ( ifile a_file,
branch a_branch,
LEAF &  a_leaf,
int64 a_index 
)
inline

Definition at line 126 of file ntuple.

127  :parent(a_file,a_branch,a_leaf,a_index,m_value)
128  ,m_value(T())
129  {}

◆ ~column()

template<class T , class LEAF >
virtual tools::rroot::ntuple::column< T, LEAF >::~column ( )
inlinevirtual

Definition at line 130 of file ntuple.

130 {}

◆ column() [2/2]

template<class T , class LEAF >
tools::rroot::ntuple::column< T, LEAF >::column ( const column< T, LEAF > &  a_from)
inlineprotected

Definition at line 132 of file ntuple.

133  :read::icol(a_from)
134  ,read::icolumn<T>(a_from)
135  ,parent(a_from)
136  ,m_value(a_from.m_value)
137  {}

Member Function Documentation

◆ cast()

template<class T , class LEAF >
virtual void* tools::rroot::ntuple::column< T, LEAF >::cast ( cid  a_class) const
inlinevirtual

Reimplemented from tools::rroot::ntuple::column_ref< T, LEAF >.

Definition at line 120 of file ntuple.

120  {
121  if(void* p = cmp_cast<column>(this,a_class)) return p;
122  return parent::cast(a_class);
123  }

◆ get_value()

template<class T , class LEAF >
const T& tools::rroot::ntuple::column< T, LEAF >::get_value ( ) const
inline

Definition at line 144 of file ntuple.

144 {return m_value;}

◆ id_class()

template<class T , class LEAF >
static cid tools::rroot::ntuple::column< T, LEAF >::id_class ( )
inlinestatic

Definition at line 118 of file ntuple.

118 {return 200+_cid(T());}

◆ id_cls()

template<class T , class LEAF >
virtual cid tools::rroot::ntuple::column< T, LEAF >::id_cls ( ) const
inlinevirtual

Reimplemented from tools::rroot::ntuple::column_ref< T, LEAF >.

Definition at line 124 of file ntuple.

124 {return id_class();}

◆ operator=()

template<class T , class LEAF >
column& tools::rroot::ntuple::column< T, LEAF >::operator= ( const column< T, LEAF > &  a_from)
inlineprotected

Definition at line 138 of file ntuple.

138  {
139  if(&a_from==this) return *this;
140  m_value = a_from.m_value;
141  return *this;
142  }

Member Data Documentation

◆ m_value

template<class T , class LEAF >
T tools::rroot::ntuple::column< T, LEAF >::m_value
protected

Definition at line 146 of file ntuple.


The documentation for this class was generated from the following file:
tools::_cid
cid _cid(byte)
Definition: cids:14
tools::rroot::ntuple::column::m_value
T m_value
Definition: ntuple:146
tools::rroot::ntuple::column::id_class
static cid id_class()
Definition: ntuple:118
tools::rroot::ntuple::column_ref::cast
virtual void * cast(cid a_class) const
Definition: ntuple:57