g4tools  5.4.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
tools::rroot::ntuple::column_string Class Reference
Inheritance diagram for tools::rroot::ntuple::column_string:
Inheritance graph
[legend]
Collaboration diagram for tools::rroot::ntuple::column_string:
Collaboration graph
[legend]

Public Member Functions

virtual void * cast (cid a_class) const
 
virtual cid id_cls () const
 
virtual const std::string & name () const
 
 column_string (ifile &a_file, branch &a_branch, leaf_string &a_leaf, int64 &a_index)
 
virtual ~column_string ()
 
const std::string & get_value () const
 
- Public Member Functions inherited from tools::rroot::ntuple::column_string_ref
virtual bool fetch_entry () const
 
 column_string_ref (ifile &a_file, branch &a_branch, leaf_string &a_leaf, int64 &a_index, std::string &a_ref)
 
virtual ~column_string_ref ()
 
bool get_entry (std::string &a_v) const
 
- 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_string_ref
static cid id_class ()
 

Protected Member Functions

 column_string (const column_string &a_from)
 
column_stringoperator= (const column_string &a_from)
 
- Protected Member Functions inherited from tools::rroot::ntuple::column_string_ref
 column_string_ref (const column_string_ref &a_from)
 
column_string_refoperator= (const column_string_ref &a_from)
 
bool _fetch_entry () const
 

Protected Attributes

std::string m_value
 
- Protected Attributes inherited from tools::rroot::ntuple::column_string_ref
ifilem_file
 
branchm_branch
 
leaf_stringm_leaf
 
int64m_index
 
std::string & m_ref
 

Detailed Description

Definition at line 210 of file ntuple.

Constructor & Destructor Documentation

◆ column_string() [1/2]

tools::rroot::ntuple::column_string::column_string ( ifile a_file,
branch a_branch,
leaf_string a_leaf,
int64 a_index 
)
inline

Definition at line 225 of file ntuple.

226  :parent(a_file,a_branch,a_leaf,a_index,m_value)
227  {}

◆ ~column_string()

virtual tools::rroot::ntuple::column_string::~column_string ( )
inlinevirtual

Definition at line 228 of file ntuple.

228 {}

◆ column_string() [2/2]

tools::rroot::ntuple::column_string::column_string ( const column_string a_from)
inlineprotected

Definition at line 230 of file ntuple.

231  :read::icol(a_from)
232  ,parent(a_from)
233  ,m_value(a_from.m_value)
234  {}

Member Function Documentation

◆ cast()

virtual void* tools::rroot::ntuple::column_string::cast ( cid  a_class) const
inlinevirtual

Reimplemented from tools::rroot::ntuple::column_string_ref.

Definition at line 218 of file ntuple.

218  {
219  if(void* p = cmp_cast<column_string>(this,a_class)) return p;
220  return parent::cast(a_class);
221  }

◆ get_value()

const std::string& tools::rroot::ntuple::column_string::get_value ( ) const
inline

Definition at line 241 of file ntuple.

241 {return m_value;}

◆ id_class()

static cid tools::rroot::ntuple::column_string::id_class ( )
inlinestatic

Definition at line 213 of file ntuple.

213  {
214  static const std::string s_v;
215  return _cid(s_v);
216  }

◆ id_cls()

virtual cid tools::rroot::ntuple::column_string::id_cls ( ) const
inlinevirtual

Reimplemented from tools::rroot::ntuple::column_string_ref.

Definition at line 222 of file ntuple.

222 {return id_class();}

◆ name()

virtual const std::string& tools::rroot::ntuple::column_string::name ( ) const
inlinevirtual

Reimplemented from tools::rroot::ntuple::column_string_ref.

Definition at line 223 of file ntuple.

223 {return m_leaf.name();}

◆ operator=()

column_string& tools::rroot::ntuple::column_string::operator= ( const column_string a_from)
inlineprotected

Definition at line 235 of file ntuple.

235  {
236  if(&a_from==this) return *this;
237  m_value = a_from.m_value;
238  return *this;
239  }

Member Data Documentation

◆ m_value

std::string tools::rroot::ntuple::column_string::m_value
protected

Definition at line 243 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_string_ref::cast
virtual void * cast(cid a_class) const
Definition: ntuple:157
tools::rroot::base_leaf::name
const std::string & name() const
Definition: base_leaf:146
tools::rroot::ntuple::column_string::m_value
std::string m_value
Definition: ntuple:243
tools::rroot::ntuple::column_string_ref::m_leaf
leaf_string & m_leaf
Definition: ntuple:205
tools::rroot::ntuple::column_string::id_class
static cid id_class()
Definition: ntuple:213