g4tools  5.4.0
Public Member Functions | Protected Member Functions | List of all members
tools::base_handle Class Referenceabstract
Inheritance diagram for tools::base_handle:
Inheritance graph
[legend]

Public Member Functions

virtual void * object () const =0
 
virtual base_handlecopy ()=0
 
virtual void disown ()=0
 
 base_handle ()
 
 base_handle (const std::string &a_class)
 
virtual ~base_handle ()
 
const std::string & object_class () const
 

Protected Member Functions

 base_handle (base_handle &a_from)
 

Detailed Description

Definition at line 15 of file handle.

Constructor & Destructor Documentation

◆ base_handle() [1/3]

tools::base_handle::base_handle ( )
inline

Definition at line 25 of file handle.

25  {
26 #ifdef TOOLS_MEM
27  mem::increment(s_class().c_str());
28 #endif
29  }

◆ base_handle() [2/3]

tools::base_handle::base_handle ( const std::string &  a_class)
inline

Definition at line 30 of file handle.

30  :m_class(a_class){
31 #ifdef TOOLS_MEM
32  mem::increment(s_class().c_str());
33 #endif
34  }

◆ ~base_handle()

virtual tools::base_handle::~base_handle ( )
inlinevirtual

Definition at line 35 of file handle.

35  {
36 #ifdef TOOLS_MEM
37  mem::decrement(s_class().c_str());
38 #endif
39  }

◆ base_handle() [3/3]

tools::base_handle::base_handle ( base_handle a_from)
inlineprotected

Definition at line 41 of file handle.

41  :m_class(a_from.m_class){
42 #ifdef TOOLS_MEM
43  mem::increment(s_class().c_str());
44 #endif
45  }

Member Function Documentation

◆ copy()

virtual base_handle* tools::base_handle::copy ( )
pure virtual

Implemented in tools::handle< T >.

◆ disown()

virtual void tools::base_handle::disown ( )
pure virtual

Implemented in tools::handle< T >.

◆ object()

virtual void* tools::base_handle::object ( ) const
pure virtual

Implemented in tools::handle< T >.

◆ object_class()

const std::string& tools::base_handle::object_class ( ) const
inline

Definition at line 52 of file handle.

52 {return m_class;}

The documentation for this class was generated from the following file: