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

Public Member Functions

virtual void * cast (const std::string &a_class) const
 
virtual const std::string & s_cls () const =0
 
 action (std::ostream &a_out)
 
virtual ~action ()
 
std::ostream & out () const
 

Protected Member Functions

 action (const action &a_from)
 
actionoperator= (const action &)
 

Protected Attributes

std::ostream & m_out
 

Detailed Description

Definition at line 19 of file action.

Constructor & Destructor Documentation

◆ action() [1/2]

tools::sg::action::action ( std::ostream &  a_out)
inline

Definition at line 29 of file action.

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

◆ ~action()

virtual tools::sg::action::~action ( )
inlinevirtual

Definition at line 36 of file action.

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

◆ action() [2/2]

tools::sg::action::action ( const action a_from)
inlineprotected

Definition at line 42 of file action.

43  :m_out(a_from.m_out)
44  {
45 #ifdef TOOLS_MEM
46  mem::increment(s_class().c_str());
47 #endif
48  }

Member Function Documentation

◆ cast()

virtual void* tools::sg::action::cast ( const std::string &  a_class) const
inlinevirtual

Definition at line 23 of file action.

23  {
24  if(void* p = cmp_cast<action>(this,a_class)) return p;
25  return 0;
26  }

◆ operator=()

action& tools::sg::action::operator= ( const action )
inlineprotected

Definition at line 49 of file action.

49 {return *this;}

◆ out()

std::ostream& tools::sg::action::out ( ) const
inline

Definition at line 51 of file action.

51 {return m_out;}

◆ s_cls()

virtual const std::string& tools::sg::action::s_cls ( ) const
pure virtual

Member Data Documentation

◆ m_out

std::ostream& tools::sg::action::m_out
protected

Definition at line 55 of file action.


The documentation for this class was generated from the following file:
tools::sg::action::m_out
std::ostream & m_out
Definition: action:55