g4tools  5.4.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
tools::aida::base_col Class Referenceabstract
Inheritance diagram for tools::aida::base_col:
Inheritance graph
[legend]

Public Member Functions

virtual void * cast (const std::string &a_class) const
 
virtual base_colcopy () const =0
 
virtual uint64 num_elems () const =0
 
virtual bool add ()=0
 
virtual bool reset ()=0
 
virtual bool fetch_entry () const =0
 
virtual void set_user_variable (void *)=0
 
virtual ~base_col ()
 
const std::string & name () const
 
void set_index (uint64 a_index)
 

Static Public Member Functions

static const std::string & s_class ()
 

Protected Member Functions

 base_col (std::ostream &a_out, const std::string &a_name)
 
 base_col (const base_col &a_from)
 
base_coloperator= (const base_col &a_from)
 

Protected Attributes

std::ostream & m_out
 
std::string m_name
 
uint64 m_index
 

Detailed Description

Definition at line 29 of file aida_ntuple.

Constructor & Destructor Documentation

◆ base_col() [1/2]

tools::aida::base_col::base_col ( std::ostream &  a_out,
const std::string &  a_name 
)
inlineprotected

Definition at line 48 of file aida_ntuple.

49  :m_out(a_out)
50  ,m_name(a_name),m_index(0){
51 #ifdef TOOLS_MEM
52  mem::increment(s_class().c_str());
53 #endif
54  }

◆ ~base_col()

virtual tools::aida::base_col::~base_col ( )
inlinevirtual

Definition at line 56 of file aida_ntuple.

56  {
57 #ifdef TOOLS_MEM
58  mem::decrement(s_class().c_str());
59 #endif
60  }

◆ base_col() [2/2]

tools::aida::base_col::base_col ( const base_col a_from)
inlineprotected

Definition at line 62 of file aida_ntuple.

63  :m_out(a_from.m_out)
64  ,m_name(a_from.m_name)
65  ,m_index(a_from.m_index){
66 #ifdef TOOLS_MEM
67  mem::increment(s_class().c_str());
68 #endif
69  }

Member Function Documentation

◆ add()

virtual bool tools::aida::base_col::add ( )
pure virtual

◆ cast()

virtual void* tools::aida::base_col::cast ( const std::string &  a_class) const
inlinevirtual

Reimplemented in tools::aida::aida_col_ntu, tools::aida::aida_col< T >, and tools::aida::aida_base_col.

Definition at line 35 of file aida_ntuple.

35  {
36  if(void* p = cmp_cast<base_col>(this,a_class)) {return p;}
37  return 0;
38  }

◆ copy()

virtual base_col* tools::aida::base_col::copy ( ) const
pure virtual

◆ fetch_entry()

virtual bool tools::aida::base_col::fetch_entry ( ) const
pure virtual

◆ name()

const std::string& tools::aida::base_col::name ( ) const
inline

Definition at line 76 of file aida_ntuple.

76 {return m_name;}

◆ num_elems()

virtual uint64 tools::aida::base_col::num_elems ( ) const
pure virtual

◆ operator=()

base_col& tools::aida::base_col::operator= ( const base_col a_from)
inlineprotected

Definition at line 70 of file aida_ntuple.

70  {
71  m_name = a_from.m_name;
72  m_index = a_from.m_index;
73  return *this;
74  }

◆ reset()

virtual bool tools::aida::base_col::reset ( )
pure virtual

◆ s_class()

static const std::string& tools::aida::base_col::s_class ( )
inlinestatic

Definition at line 31 of file aida_ntuple.

31  {
32  static const std::string s_v("tools::aida::base_col");
33  return s_v;
34  }

◆ set_index()

void tools::aida::base_col::set_index ( uint64  a_index)
inline

Definition at line 78 of file aida_ntuple.

78 {m_index = a_index;}

◆ set_user_variable()

virtual void tools::aida::base_col::set_user_variable ( void *  )
pure virtual

Member Data Documentation

◆ m_index

uint64 tools::aida::base_col::m_index
protected

Definition at line 82 of file aida_ntuple.

◆ m_name

std::string tools::aida::base_col::m_name
protected

Definition at line 81 of file aida_ntuple.

◆ m_out

std::ostream& tools::aida::base_col::m_out
protected

Definition at line 80 of file aida_ntuple.


The documentation for this class was generated from the following file:
tools::aida::base_col::m_out
std::ostream & m_out
Definition: aida_ntuple:80
tools::aida::base_col::m_index
uint64 m_index
Definition: aida_ntuple:82
tools::aida::base_col::m_name
std::string m_name
Definition: aida_ntuple:81
tools::aida::base_col::s_class
static const std::string & s_class()
Definition: aida_ntuple:31