g4tools  5.4.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
tools::rroot::graph Class Reference
Inheritance diagram for tools::rroot::graph:
Inheritance graph
[legend]
Collaboration diagram for tools::rroot::graph:
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)
 
 graph ()
 
virtual ~graph ()
 
- Public Member Functions inherited from tools::rroot::iro
virtual ~iro ()
 

Static Public Member Functions

static const std::string & s_class ()
 
static cid id_class ()
 

Protected Member Functions

 graph (const graph &a_from)
 
graphoperator= (const graph &)
 

Detailed Description

Definition at line 15 of file graph.

Constructor & Destructor Documentation

◆ graph() [1/2]

tools::rroot::graph::graph ( )
inline

Definition at line 49 of file graph.

49  {
50 #ifdef TOOLS_MEM
51  mem::increment(s_class().c_str());
52 #endif
53  }

◆ ~graph()

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

Definition at line 54 of file graph.

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

◆ graph() [2/2]

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

Definition at line 60 of file graph.

60 : iro(a_from){}

Member Function Documentation

◆ cast() [1/2]

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

Implements tools::rroot::iro.

Definition at line 33 of file graph.

33  {
34  if(void* p = cmp_cast<graph>(this,a_class)) {return p;}
35  else return 0;
36  }

◆ cast() [2/2]

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

Implements tools::rroot::iro.

Definition at line 26 of file graph.

26  {
27  if(void* p = cmp_cast<graph>(this,a_class)) return p;
28  return 0;
29  }

◆ copy()

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

Implements tools::rroot::iro.

Definition at line 38 of file graph.

38 {return new graph(*this);}

◆ id_class()

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

Definition at line 32 of file graph.

32 {return graph_cid();}

◆ operator=()

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

Definition at line 61 of file graph.

61 {return *this;}

◆ s_class()

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

Definition at line 21 of file graph.

21  {
22  static const std::string s_v("tools::rroot::graph");
23  return s_v;
24  }

◆ s_cls()

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

Implements tools::rroot::iro.

Definition at line 30 of file graph.

30 {return s_class();}

◆ stream()

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

Implements tools::rroot::iro.

Definition at line 39 of file graph.

39  {
40  uint32 startpos = a_buffer.length();
41  short v;
42  unsigned int s,c;
43  if(!a_buffer.read_version(v,s,c)) return false;
44  a_buffer.set_offset(startpos+c+sizeof(unsigned int));
45  if(!a_buffer.check_byte_count(s,c,s_store_class())) return false;
46  return true;
47  }

The documentation for this class was generated from the following file:
tools::rroot::graph::graph
graph()
Definition: graph:49
tools::rroot::graph::s_class
static const std::string & s_class()
Definition: graph:21
tools::uint32
unsigned int uint32
Definition: typedefs:71
tools::rroot::graph_cid
cid graph_cid()
Definition: cids:28