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

Public Member Functions

virtual void * cast (cid a_class) const
 
virtual cid id_cls () const
 
 column_element (ifile &a_file, branch_element &a_branch, leaf_element &a_leaf, int64 &a_index)
 
virtual ~column_element ()
 
const T & get_value () const
 
- Public Member Functions inherited from tools::rroot::ntuple::column_element_ref< RT, T >
virtual const std::string & name () const
 
virtual bool fetch_entry () const
 
virtual bool get_entry (T &a_v) const
 
 column_element_ref (ifile &a_file, branch_element &a_branch, leaf_element &a_leaf, int64 &a_index, T &a_ref)
 
virtual ~column_element_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_element_ref< RT, T >
static cid id_class ()
 
- Static Public Member Functions inherited from tools::read::icolumn< T >
static cid id_class ()
 

Protected Member Functions

 column_element (const column_element &a_from)
 
column_elementoperator= (const column_element &a_from)
 
- Protected Member Functions inherited from tools::rroot::ntuple::column_element_ref< RT, T >
 column_element_ref (const column_element_ref &a_from)
 
column_element_refoperator= (const column_element_ref &a_from)
 
bool _fetch_entry () const
 

Protected Attributes

m_value
 
- Protected Attributes inherited from tools::rroot::ntuple::column_element_ref< RT, T >
ifilem_file
 
branch_elementm_be
 
leaf_elementm_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 RT, class T>
class tools::rroot::ntuple::column_element< RT, T >

Definition at line 453 of file ntuple.

Constructor & Destructor Documentation

◆ column_element() [1/2]

template<class RT , class T >
tools::rroot::ntuple::column_element< RT, T >::column_element ( ifile a_file,
branch_element a_branch,
leaf_element a_leaf,
int64 a_index 
)
inline

Definition at line 464 of file ntuple.

465  :parent(a_file,a_branch,a_leaf,a_index,m_value)
466  ,m_value(T())
467  {}

◆ ~column_element()

template<class RT , class T >
virtual tools::rroot::ntuple::column_element< RT, T >::~column_element ( )
inlinevirtual

Definition at line 468 of file ntuple.

468 {}

◆ column_element() [2/2]

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

Definition at line 470 of file ntuple.

471  :read::icol(a_from)
472  ,read::icolumn<T>(a_from)
473  ,parent(a_from)
474  ,m_value(a_from.m_value)
475  {}

Member Function Documentation

◆ cast()

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

Reimplemented from tools::rroot::ntuple::column_element_ref< RT, T >.

Definition at line 458 of file ntuple.

458  {
459  if(void* p = cmp_cast<column_element>(this,a_class)) return p;
460  return parent::cast(a_class);
461  }

◆ get_value()

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

Definition at line 482 of file ntuple.

482 {return m_value;}

◆ id_class()

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

Definition at line 456 of file ntuple.

456 {return 300+_cid(T());}

◆ id_cls()

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

Reimplemented from tools::rroot::ntuple::column_element_ref< RT, T >.

Definition at line 462 of file ntuple.

462 {return id_class();}

◆ operator=()

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

Definition at line 476 of file ntuple.

476  {
477  if(&a_from==this) return *this;
478  m_value = a_from.m_value;
479  return *this;
480  }

Member Data Documentation

◆ m_value

template<class RT , class T >
T tools::rroot::ntuple::column_element< RT, T >::m_value
protected

Definition at line 484 of file ntuple.


The documentation for this class was generated from the following file:
tools::rroot::ntuple::column_element::id_class
static cid id_class()
Definition: ntuple:456
tools::_cid
cid _cid(byte)
Definition: cids:14
tools::rroot::ntuple::column_element_ref::cast
virtual void * cast(cid a_class) const
Definition: ntuple:397
tools::rroot::ntuple::column_element::m_value
T m_value
Definition: ntuple:484