g4tools  5.4.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
tools::rroot::branch_object Class Reference
Inheritance diagram for tools::rroot::branch_object:
Inheritance graph
[legend]
Collaboration diagram for tools::rroot::branch_object:
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 bool stream (buffer &a_buffer)
 
 branch_object (std::ostream &a_out, ifac &a_fac)
 
virtual ~branch_object ()
 
const std::string & class_name () const
 
- Public Member Functions inherited from tools::rroot::branch
virtual irocopy () const
 
virtual bool read_leaves (ifile &, buffer &a_buffer)
 
virtual bool find_entry (ifile &a_file, uint64 a_entry, uint32 &a_nbytes)
 
virtual bool show (std::ostream &a_out, ifile &a_file, uint64 a_entry)
 
 branch (std::ostream &a_out, ifac &a_fac)
 
virtual ~branch ()
 
uint32 entry_number () const
 
const std::string & name () const
 
const std::string & title () const
 
const std::vector< base_leaf * > & leaves () const
 
const std::vector< branch * > & branches () 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::branch
static const std::string & s_class ()
 
static cid id_class ()
 

Protected Member Functions

 branch_object (const branch_object &a_from)
 
branch_objectoperator= (const branch_object &)
 
- Protected Member Functions inherited from tools::rroot::branch
 branch (const branch &a_from)
 
branchoperator= (const branch &)
 
basketget_basket (ifile &a_file, seek a_pos, uint32 a_len)
 
void _clear ()
 
void _dump_first_last ()
 

Protected Attributes

std::string fClassName
 
- Protected Attributes inherited from tools::rroot::branch
std::ostream & m_out
 
ifacm_fac
 
std::vector< std::pair< uint64, uint64 > > m_first_last
 
std::map< uint32, std::pair< basket *, bool > > m_baskets
 
obj_array< basketm_streamed_baskets
 
basketm__read_basket
 
std::string m_name
 
std::string m_title
 
bool fAutoDelete
 
obj_array< branchm_branches
 
obj_array< base_leafm_leaves
 
uint32 fEntryOffsetLen
 
uint32 m_write_basket
 
uint32 m_entry_number
 
uint32 m_read_basket
 
int * fBasketBytes
 Current basket number when reading. More...
 
int * fBasketEntry
 
seekfBasketSeek
 

Detailed Description

Definition at line 12 of file branch_object.

Constructor & Destructor Documentation

◆ branch_object() [1/2]

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

Definition at line 43 of file branch_object.

44  :parent(a_out,a_fac)
45  //,m_obj(0)
46  ,fClassName()
47  {}

◆ ~branch_object()

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

Definition at line 49 of file branch_object.

49  {
50  //delete m_obj;
51  }

◆ branch_object() [2/2]

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

Definition at line 53 of file branch_object.

54  :iro(a_from),parent(a_from){}

Member Function Documentation

◆ cast() [1/2]

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

Reimplemented from tools::rroot::branch.

Definition at line 27 of file branch_object.

27  {
28  if(void* p = cmp_cast<branch_object>(this,a_class)) {return p;}
29  return parent::cast(a_class);
30  }

◆ cast() [2/2]

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

Reimplemented from tools::rroot::branch.

Definition at line 20 of file branch_object.

20  {
21  if(void* p = cmp_cast<branch_object>(this,a_class)) return p;
22  return parent::cast(a_class);
23  }

◆ class_name()

const std::string& tools::rroot::branch_object::class_name ( ) const
inline

Definition at line 57 of file branch_object.

57 {return fClassName;}

◆ id_class()

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

Definition at line 26 of file branch_object.

26 {return branch_object_cid();}

◆ operator=()

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

Definition at line 55 of file branch_object.

55 {return *this;}

◆ s_class()

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

Definition at line 15 of file branch_object.

15  {
16  static const std::string s_v("tools::rroot::branch_object");
17  return s_v;
18  }

◆ s_cls()

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

Reimplemented from tools::rroot::branch.

Definition at line 24 of file branch_object.

24 {return s_class();}

◆ stream()

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

Reimplemented from tools::rroot::branch.

Definition at line 32 of file branch_object.

32  {
33  short v;
34  unsigned int s, c;
35  if(!a_buffer.read_version(v,s,c)) return false;
36  if(!parent::stream(a_buffer)) return false;
37  if(!a_buffer.read(fClassName)) return false;
38  if(!a_buffer.check_byte_count(s,c,"TBranchObject")) return false;
39  return true;
40  }

Member Data Documentation

◆ fClassName

std::string tools::rroot::branch_object::fClassName
protected

Definition at line 62 of file branch_object.


The documentation for this class was generated from the following file:
tools::rroot::branch::cast
virtual void * cast(const std::string &a_class) const
Definition: branch:31
tools::rroot::branch_object_cid
cid branch_object_cid()
Definition: cids:42
tools::rroot::branch_object::s_class
static const std::string & s_class()
Definition: branch_object:15
tools::rroot::branch_object::fClassName
std::string fClassName
Definition: branch_object:62
tools::rroot::branch::stream
virtual bool stream(buffer &a_buffer)
Definition: branch:44