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

 named (const named &a_from)
 
namedoperator= (const named &a_from)
 

Protected Attributes

std::string m_name
 
std::string m_title
 

Detailed Description

Definition at line 104 of file named.

Constructor & Destructor Documentation

◆ named() [1/2]

tools::rroot::named::named ( )
inline

Definition at line 133 of file named.

133  {
134 #ifdef TOOLS_MEM
135  mem::increment(s_class().c_str());
136 #endif
137  }

◆ ~named()

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

Definition at line 138 of file named.

138  {
139 #ifdef TOOLS_MEM
140  mem::decrement(s_class().c_str());
141 #endif
142  }

◆ named() [2/2]

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

Definition at line 144 of file named.

144  :iro(a_from),m_name(a_from.m_name),m_title(a_from.m_title) {
145 #ifdef TOOLS_MEM
146  mem::increment(s_class().c_str());
147 #endif
148  }

Member Function Documentation

◆ cast() [1/2]

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

Implements tools::rroot::iro.

Definition at line 122 of file named.

122  {
123  if(void* p = cmp_cast<named>(this,a_class)) {return p;}
124  else return 0;
125  }

◆ cast() [2/2]

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

Implements tools::rroot::iro.

Definition at line 115 of file named.

115  {
116  if(void* p = cmp_cast<named>(this,a_class)) return p;
117  return 0;
118  }

◆ copy()

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

Implements tools::rroot::iro.

Definition at line 128 of file named.

128 {return new named(*this);}

◆ id_class()

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

Definition at line 121 of file named.

121 {return named_cid();}

◆ operator=()

named& tools::rroot::named::operator= ( const named a_from)
inlineprotected

Definition at line 149 of file named.

149  {
150  m_name = a_from.m_name;
151  m_title = a_from.m_title;
152  return *this;
153  }

◆ s_class()

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

Definition at line 110 of file named.

110  {
111  static const std::string s_v("tools::rroot::named");
112  return s_v;
113  }

◆ s_cls()

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

Implements tools::rroot::iro.

Definition at line 119 of file named.

119 {return s_class();}

◆ stream()

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

Implements tools::rroot::iro.

Definition at line 129 of file named.

129  {
130  return Named_stream(a_buffer,m_name,m_title);
131  }

Member Data Documentation

◆ m_name

std::string tools::rroot::named::m_name
protected

Definition at line 155 of file named.

◆ m_title

std::string tools::rroot::named::m_title
protected

Definition at line 156 of file named.


The documentation for this class was generated from the following file:
tools::rroot::Named_stream
bool Named_stream(buffer &a_buffer, std::string &a_name, std::string &a_title)
Definition: named:15
tools::rroot::named::m_title
std::string m_title
Definition: named:156
tools::rroot::named::m_name
std::string m_name
Definition: named:155
tools::rroot::named::s_class
static const std::string & s_class()
Definition: named:110
tools::rroot::named_cid
cid named_cid()
Definition: cids:39
tools::rroot::named::named
named()
Definition: named:133