g4tools  5.4.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
tools::rroot::ntuple::column_vector_string_ref Class Reference
Inheritance diagram for tools::rroot::ntuple::column_vector_string_ref:
Inheritance graph
[legend]
Collaboration diagram for tools::rroot::ntuple::column_vector_string_ref:
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 bool fetch_entry () const
 
 column_vector_string_ref (ifile &a_file, branch &a_branch, leaf_string &a_leaf, int64 &a_index, std::vector< std::string > &a_ref, char a_sep)
 
virtual ~column_vector_string_ref ()
 
bool get_entry (std::vector< std::string > &a_v) const
 
- Public Member Functions inherited from tools::rroot::ntuple::column_string_ref
 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_vector_string_ref (const column_vector_string_ref &a_from)
 
column_vector_string_refoperator= (const column_vector_string_ref &a_from)
 
bool _fetch_entry () const
 
- 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::vector< std::string > & m_ref
 
char m_sep
 
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 246 of file ntuple.

Constructor & Destructor Documentation

◆ column_vector_string_ref() [1/2]

tools::rroot::ntuple::column_vector_string_ref::column_vector_string_ref ( ifile a_file,
branch a_branch,
leaf_string a_leaf,
int64 a_index,
std::vector< std::string > &  a_ref,
char  a_sep 
)
inline

Definition at line 260 of file ntuple.

262  :parent(a_file,a_branch,a_leaf,a_index,m_value)
263  ,m_ref(a_ref)
264  ,m_sep(a_sep)
265  {}

◆ ~column_vector_string_ref()

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

Definition at line 266 of file ntuple.

266 {}

◆ column_vector_string_ref() [2/2]

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

Definition at line 268 of file ntuple.

269  :read::icol(a_from)
270  ,parent(a_from)
271  ,m_ref(a_from.m_ref)
272  ,m_sep(a_from.m_sep)
273  {}

Member Function Documentation

◆ _fetch_entry()

bool tools::rroot::ntuple::column_vector_string_ref::_fetch_entry ( ) const
inlineprotected

Definition at line 286 of file ntuple.

286  {
287  if(!parent::_fetch_entry()) return false;
289  return true;
290  }

◆ cast()

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

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

Reimplemented in tools::rroot::ntuple::column_vector_string.

Definition at line 251 of file ntuple.

251  {
252  if(void* p = cmp_cast<column_vector_string_ref>(this,a_class)) return p;
253  return parent::cast(a_class);
254  }

◆ fetch_entry()

virtual bool tools::rroot::ntuple::column_vector_string_ref::fetch_entry ( ) const
inlinevirtual

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

Definition at line 258 of file ntuple.

258 {return _fetch_entry();}

◆ get_entry()

bool tools::rroot::ntuple::column_vector_string_ref::get_entry ( std::vector< std::string > &  a_v) const
inline

Definition at line 280 of file ntuple.

280  {
281  if(!_fetch_entry()) {a_v.clear();return false;}
282  a_v = m_ref;
283  return true;
284  }

◆ id_class()

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

Definition at line 249 of file ntuple.

249 {return _cid_std_vector<std::string>()+10000;}

◆ id_cls()

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

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

Reimplemented in tools::rroot::ntuple::column_vector_string.

Definition at line 255 of file ntuple.

255 {return id_class();}

◆ name()

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

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

Reimplemented in tools::rroot::ntuple::column_vector_string.

Definition at line 256 of file ntuple.

256 {return m_leaf.name();}

◆ operator=()

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

Definition at line 274 of file ntuple.

274  {
275  if(&a_from==this) return *this;
276  m_sep = a_from.m_sep;
277  return *this;
278  }

Member Data Documentation

◆ m_ref

std::vector<std::string>& tools::rroot::ntuple::column_vector_string_ref::m_ref
protected

Definition at line 292 of file ntuple.

◆ m_sep

char tools::rroot::ntuple::column_vector_string_ref::m_sep
protected

Definition at line 293 of file ntuple.

◆ m_value

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

Definition at line 294 of file ntuple.


The documentation for this class was generated from the following file:
tools::rroot::ntuple::column_vector_string_ref::id_class
static cid id_class()
Definition: ntuple:249
tools::get_lines
void get_lines(const std::string &a_string, std::vector< std::string > &a_lines)
Definition: get_lines:14
tools::rroot::ntuple::column_string_ref::cast
virtual void * cast(cid a_class) const
Definition: ntuple:157
tools::rroot::ntuple::column_vector_string_ref::m_ref
std::vector< std::string > & m_ref
Definition: ntuple:292
tools::rroot::ntuple::column_string_ref::_fetch_entry
bool _fetch_entry() const
Definition: ntuple:194
tools::rroot::base_leaf::name
const std::string & name() const
Definition: base_leaf:146
tools::rroot::ntuple::column_vector_string_ref::_fetch_entry
bool _fetch_entry() const
Definition: ntuple:286
tools::rroot::ntuple::column_vector_string_ref::m_sep
char m_sep
Definition: ntuple:293
tools::rroot::ntuple::column_vector_string_ref::m_value
std::string m_value
Definition: ntuple:294
tools::rroot::ntuple::column_string_ref::m_leaf
leaf_string & m_leaf
Definition: ntuple:205