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

Public Member Functions

virtual void * cast (cid a_class) const
 
virtual cid id_cls () const
 
virtual const std::string & name () const
 
virtual const std::string & aida_type () const
 
virtual const std::string & s_def () const
 
virtual void s_value (std::string &a_s) const
 
 column (const std::string &a_name, const T &a_def)
 
virtual ~column ()
 
bool fill (const T &a_value)
 
- Public Member Functions inherited from tools::waxml::ntuple::leaf
 leaf ()
 
virtual ~leaf ()
 
 leaf (const leaf &a_from)
 
leafoperator= (const leaf &)
 
- Public Member Functions inherited from tools::waxml::ntuple::iobj
virtual ~iobj ()
 

Static Public Member Functions

static cid id_class ()
 
- Static Public Member Functions inherited from tools::waxml::ntuple::leaf
static cid id_class ()
 

Protected Member Functions

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

Protected Attributes

std::string m_name
 
std::string m_def
 
m_tmp
 

Detailed Description

template<class T>
class tools::waxml::ntuple::column< T >

Definition at line 85 of file ntuple.

Constructor & Destructor Documentation

◆ column() [1/2]

template<class T >
tools::waxml::ntuple::column< T >::column ( const std::string &  a_name,
const T &  a_def 
)
inline

Definition at line 101 of file ntuple.

102  :m_name(a_name),m_def(tos(a_def)),m_tmp(a_def)
103  {}

◆ ~column()

template<class T >
virtual tools::waxml::ntuple::column< T >::~column ( )
inlinevirtual

Definition at line 104 of file ntuple.

104 {}

◆ column() [2/2]

template<class T >
tools::waxml::ntuple::column< T >::column ( const column< T > &  a_from)
inlineprotected

Definition at line 106 of file ntuple.

107  :leaf(a_from)
108  ,m_name(a_from.m_name)
109  ,m_def(a_from.m_def)
110  ,m_tmp(a_from.m_tmp)
111  {}

Member Function Documentation

◆ aida_type()

template<class T >
virtual const std::string& tools::waxml::ntuple::column< T >::aida_type ( ) const
inlinevirtual

Implements tools::waxml::ntuple::iobj.

Definition at line 96 of file ntuple.

96 {return s_aida_type(T());}

◆ cast()

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

Reimplemented from tools::waxml::ntuple::leaf.

Definition at line 89 of file ntuple.

89  {
90  if(void* p = cmp_cast< column<T> >(this,a_class)) {return p;}
91  return leaf::cast(a_class);
92  }

◆ fill()

template<class T >
bool tools::waxml::ntuple::column< T >::fill ( const T &  a_value)
inline

Definition at line 119 of file ntuple.

119 {m_tmp = a_value;return true;}

◆ id_class()

template<class T >
static cid tools::waxml::ntuple::column< T >::id_class ( )
inlinestatic

Definition at line 87 of file ntuple.

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

◆ id_cls()

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

Reimplemented from tools::waxml::ntuple::leaf.

Definition at line 93 of file ntuple.

93 {return id_class();}

◆ name()

template<class T >
virtual const std::string& tools::waxml::ntuple::column< T >::name ( ) const
inlinevirtual

Implements tools::waxml::ntuple::iobj.

Definition at line 95 of file ntuple.

95 {return m_name;}

◆ operator=()

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

Definition at line 112 of file ntuple.

112  {
113  m_name = a_from.m_name;
114  m_def = a_from.m_def;
115  m_tmp = a_from.m_tmp;
116  return *this;
117  }

◆ s_def()

template<class T >
virtual const std::string& tools::waxml::ntuple::column< T >::s_def ( ) const
inlinevirtual

Implements tools::waxml::ntuple::leaf.

Definition at line 98 of file ntuple.

98 {return m_def;}

◆ s_value()

template<class T >
virtual void tools::waxml::ntuple::column< T >::s_value ( std::string &  a_s) const
inlinevirtual

Implements tools::waxml::ntuple::leaf.

Definition at line 99 of file ntuple.

99 {a_s = tos(m_tmp);}

Member Data Documentation

◆ m_def

template<class T >
std::string tools::waxml::ntuple::column< T >::m_def
protected

Definition at line 122 of file ntuple.

◆ m_name

template<class T >
std::string tools::waxml::ntuple::column< T >::m_name
protected

Definition at line 121 of file ntuple.

◆ m_tmp

template<class T >
T tools::waxml::ntuple::column< T >::m_tmp
protected

Definition at line 123 of file ntuple.


The documentation for this class was generated from the following file:
tools::_cid
cid _cid(byte)
Definition: cids:14
tools::waxml::ntuple::column::m_def
std::string m_def
Definition: ntuple:122
tools::waxml::ntuple::leaf::cast
virtual void * cast(cid a_class) const
Definition: ntuple:46
tools::waxml::ntuple::s_aida_type
static const std::string & s_aida_type(int)
Definition: ntuple:61
tools::tos
bool tos(const rotf &a_v, std::string &a_s)
Definition: rotf:68
tools::waxml::ntuple::column::id_class
static cid id_class()
Definition: ntuple:87
tools::waxml::ntuple::column::m_name
std::string m_name
Definition: ntuple:121
tools::waxml::ntuple::column::m_tmp
T m_tmp
Definition: ntuple:123
tools::waxml::ntuple::leaf::leaf
leaf()
Definition: ntuple:55
tools::cmp_cast
void * cmp_cast(const TO *a_this, const std::string &a_class)
Definition: scast:15