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

Public Member Functions

virtual void * cast (const std::string &a_class) const
 
virtual const std::string & s_cls () const
 
virtual void * cast (cid a_class) const
 
virtual irocopy () const
 
virtual bool stream (buffer &a_buffer)
 
virtual bool read_buffer (buffer &)
 
virtual bool print_value (std::ostream &, uint32) const
 
virtual uint32 num_elem () const
 
 leaf_element (std::ostream &a_out, ifac &a_fac)
 
virtual ~leaf_element ()
 
int leaf_type () const
 
- Public Member Functions inherited from tools::rroot::base_leaf
 base_leaf (std::ostream &a_out, ifac &a_fac)
 
virtual ~base_leaf ()
 
const std::string & name () const
 
const std::string & title () const
 
const base_leafleaf_count () const
 
- Public Member Functions inherited from tools::rroot::iro
virtual ~iro ()
 

Static Public Member Functions

static const std::string & s_class ()
 
static cid id_class ()
 
- Static Public Member Functions inherited from tools::rroot::base_leaf
static const std::string & s_class ()
 
static cid id_class ()
 

Protected Member Functions

 leaf_element (const leaf_element &a_from)
 
leaf_elementoperator= (const leaf_element &)
 
- Protected Member Functions inherited from tools::rroot::base_leaf
 base_leaf (const base_leaf &a_from)
 
base_leafoperator= (const base_leaf &)
 

Protected Attributes

int fID
 
int fType
 
- Protected Attributes inherited from tools::rroot::base_leaf
std::ostream & m_out
 
ifacm_fac
 
std::string m_name
 
std::string m_title
 
uint32 m_length
 
uint32 m_length_type
 
bool m_is_range
 
base_leafm_leaf_count
 
bool m_own_leaf_count
 

Detailed Description

Definition at line 314 of file leaf.

Constructor & Destructor Documentation

◆ leaf_element() [1/2]

tools::rroot::leaf_element::leaf_element ( std::ostream &  a_out,
ifac a_fac 
)
inline

Definition at line 356 of file leaf.

357  :base_leaf(a_out,a_fac),fID(0),fType(0){}

◆ ~leaf_element()

virtual tools::rroot::leaf_element::~leaf_element ( )
inlinevirtual

Definition at line 358 of file leaf.

358 {}

◆ leaf_element() [2/2]

tools::rroot::leaf_element::leaf_element ( const leaf_element a_from)
inlineprotected

Definition at line 360 of file leaf.

361  :iro(a_from),base_leaf(a_from),fID(0),fType(0){}

Member Function Documentation

◆ cast() [1/2]

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

Reimplemented from tools::rroot::base_leaf.

Definition at line 332 of file leaf.

332  {
333  if(void* p = cmp_cast<leaf_element>(this,a_class)) {return p;}
334  return base_leaf::cast(a_class);
335  }

◆ cast() [2/2]

virtual void* tools::rroot::leaf_element::cast ( const std::string &  a_class) const
inlinevirtual

Reimplemented from tools::rroot::base_leaf.

Definition at line 325 of file leaf.

325  {
326  if(void* p = cmp_cast<leaf_element>(this,a_class)) {return p;}
327  return base_leaf::cast(a_class);
328  }

◆ copy()

virtual iro* tools::rroot::leaf_element::copy ( ) const
inlinevirtual

Implements tools::rroot::iro.

Definition at line 337 of file leaf.

337 {return new leaf_element(*this);}

◆ id_class()

static cid tools::rroot::leaf_element::id_class ( )
inlinestatic

Definition at line 331 of file leaf.

331 {return leaf_element_cid();}

◆ leaf_type()

int tools::rroot::leaf_element::leaf_type ( ) const
inline

Definition at line 365 of file leaf.

365 {return fType;}

◆ num_elem()

virtual uint32 tools::rroot::leaf_element::num_elem ( ) const
inlinevirtual

Implements tools::rroot::base_leaf.

Definition at line 354 of file leaf.

354 {return 0;}

◆ operator=()

leaf_element& tools::rroot::leaf_element::operator= ( const leaf_element )
inlineprotected

Definition at line 362 of file leaf.

362 {return *this;}

◆ print_value()

virtual bool tools::rroot::leaf_element::print_value ( std::ostream &  ,
uint32   
) const
inlinevirtual

Implements tools::rroot::base_leaf.

Definition at line 353 of file leaf.

353 {return true;}

◆ read_buffer()

virtual bool tools::rroot::leaf_element::read_buffer ( buffer )
inlinevirtual

Implements tools::rroot::base_leaf.

Definition at line 349 of file leaf.

349  {
350  m_out << "tools::rroot::leaf_element::read_buffer : dummy." << std::endl;
351  return false;
352  }

◆ s_class()

static const std::string& tools::rroot::leaf_element::s_class ( )
inlinestatic

Definition at line 320 of file leaf.

320  {
321  static const std::string s_v("tools::rroot::leaf_element");
322  return s_v;
323  }

◆ s_cls()

virtual const std::string& tools::rroot::leaf_element::s_cls ( ) const
inlinevirtual

Reimplemented from tools::rroot::base_leaf.

Definition at line 329 of file leaf.

329 {return s_class();}

◆ stream()

virtual bool tools::rroot::leaf_element::stream ( buffer a_buffer)
inlinevirtual

Reimplemented from tools::rroot::base_leaf.

Definition at line 338 of file leaf.

338  {
339  short v;
340  unsigned int s,c;
341  if(!a_buffer.read_version(v,s,c)) return false;
342  if(!base_leaf::stream(a_buffer)) return false;
343  if(!a_buffer.read(fID)) return false;
344  if(!a_buffer.read(fType)) return false;
345  if(!a_buffer.check_byte_count(s,c,s_store_class())) return false;
346  return true;
347  }

Member Data Documentation

◆ fID

int tools::rroot::leaf_element::fID
protected

Definition at line 367 of file leaf.

◆ fType

int tools::rroot::leaf_element::fType
protected

Definition at line 368 of file leaf.


The documentation for this class was generated from the following file:
tools::rroot::base_leaf::m_out
std::ostream & m_out
Definition: base_leaf:174
tools::rroot::leaf_element_cid
cid leaf_element_cid()
Definition: cids:32
tools::rroot::leaf_element::leaf_element
leaf_element(std::ostream &a_out, ifac &a_fac)
Definition: leaf:356
tools::rroot::leaf_element::s_class
static const std::string & s_class()
Definition: leaf:320
tools::rroot::leaf_element::fID
int fID
Definition: leaf:367
tools::rroot::leaf_element::fType
int fType
Definition: leaf:368
tools::rroot::base_leaf::stream
virtual bool stream(buffer &a_buffer)
Definition: base_leaf:35
tools::rroot::base_leaf::cast
virtual void * cast(const std::string &a_class) const
Definition: base_leaf:23
tools::rroot::base_leaf::base_leaf
base_leaf(std::ostream &a_out, ifac &a_fac)
Definition: base_leaf:105