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

Static Public Member Functions

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

Detailed Description

Definition at line 22 of file dummy.

Constructor & Destructor Documentation

◆ dummy() [1/2]

tools::rroot::dummy::dummy ( )
inline

Definition at line 53 of file dummy.

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

◆ ~dummy()

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

Definition at line 58 of file dummy.

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

◆ dummy() [2/2]

tools::rroot::dummy::dummy ( const dummy a_from)
inline

Definition at line 64 of file dummy.

64  : iro(a_from){
65 #ifdef TOOLS_MEM
66  mem::increment(s_class().c_str());
67 #endif
68  }

Member Function Documentation

◆ cast() [1/2]

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

Implements tools::rroot::iro.

Definition at line 36 of file dummy.

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

◆ cast() [2/2]

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

Implements tools::rroot::iro.

Definition at line 29 of file dummy.

29  {
30  if(void* p = cmp_cast<dummy>(this,a_class)) return p;
31  return 0;
32  }

◆ copy()

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

Implements tools::rroot::iro.

Definition at line 41 of file dummy.

41 {return new dummy(*this);}

◆ id_class()

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

Definition at line 35 of file dummy.

35 {return dummy_cid();}

◆ operator=()

dummy& tools::rroot::dummy::operator= ( const dummy )
inline

Definition at line 69 of file dummy.

69 {return *this;}

◆ s_class()

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

Definition at line 24 of file dummy.

24  {
25  static const std::string s_v("tools::rroot::dummy");
26  return s_v;
27  }

◆ s_cls()

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

Implements tools::rroot::iro.

Definition at line 33 of file dummy.

33 {return s_class();}

◆ stream()

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

Implements tools::rroot::iro.

Definition at line 42 of file dummy.

42  {
43  //the below code skips correctly the data in the file.
44  uint32 startpos = a_buffer.length();
45  short v;
46  unsigned int s,c;
47  if(!a_buffer.read_version(v,s,c)) return false;
48  a_buffer.set_offset(startpos+c+sizeof(unsigned int));
49  if(!a_buffer.check_byte_count(s,c,"dummy")) return false;
50  return true;
51  }

The documentation for this class was generated from the following file:
tools::rroot::dummy::dummy
dummy()
Definition: dummy:53
tools::rroot::dummy_cid
cid dummy_cid()
Definition: cids:21
tools::uint32
unsigned int uint32
Definition: typedefs:71
tools::rroot::dummy::s_class
static const std::string & s_class()
Definition: dummy:24