g4tools  5.4.0
Public Member Functions | Protected Attributes | List of all members
tools::raxml_out Class Reference
Collaboration diagram for tools::raxml_out:
Collaboration graph
[legend]

Public Member Functions

 raxml_out ()
 
 raxml_out (base_handle *a_hdl, const std::string &a_class, const std::string &a_path, const std::string &a_name)
 
virtual ~raxml_out ()
 
 raxml_out (const raxml_out &a_from)
 
raxml_outoperator= (const raxml_out &a_from)
 
void * object () const
 
const std::string & cls () const
 
const std::string & path () const
 
const std::string & name () const
 
void disown ()
 

Protected Attributes

base_handlem_hdl
 
std::string m_class
 
std::string m_path
 
std::string m_name
 

Detailed Description

Definition at line 11 of file raxml_out.

Constructor & Destructor Documentation

◆ raxml_out() [1/3]

tools::raxml_out::raxml_out ( )
inline

Definition at line 13 of file raxml_out.

13 :m_hdl(0){}

◆ raxml_out() [2/3]

tools::raxml_out::raxml_out ( base_handle a_hdl,
const std::string &  a_class,
const std::string &  a_path,
const std::string &  a_name 
)
inline

Definition at line 14 of file raxml_out.

15  :m_hdl(a_hdl) //take ownership of a_hdl
16  ,m_class(a_class)
17  ,m_path(a_path),m_name(a_name)
18  {}

◆ ~raxml_out()

virtual tools::raxml_out::~raxml_out ( )
inlinevirtual

Definition at line 19 of file raxml_out.

19 {delete m_hdl;}

◆ raxml_out() [3/3]

tools::raxml_out::raxml_out ( const raxml_out a_from)
inline

Definition at line 21 of file raxml_out.

22  :m_hdl(a_from.m_hdl?a_from.m_hdl->copy():0)
23  ,m_class(a_from.m_class)
24  ,m_path(a_from.m_path),m_name(a_from.m_name)
25  {}

Member Function Documentation

◆ cls()

const std::string& tools::raxml_out::cls ( ) const
inline

Definition at line 43 of file raxml_out.

43 {return m_class;}

◆ disown()

void tools::raxml_out::disown ( )
inline

Definition at line 46 of file raxml_out.

46 {if(m_hdl) m_hdl->disown();}

◆ name()

const std::string& tools::raxml_out::name ( ) const
inline

Definition at line 45 of file raxml_out.

45 {return m_name;}

◆ object()

void* tools::raxml_out::object ( ) const
inline

Definition at line 39 of file raxml_out.

39  {
40  if(!m_hdl) return 0;
41  return m_hdl->object();
42  }

◆ operator=()

raxml_out& tools::raxml_out::operator= ( const raxml_out a_from)
inline

Definition at line 26 of file raxml_out.

26  {
27  if(&a_from==this) return *this;
28 
29  delete m_hdl;
30  m_hdl = a_from.m_hdl?a_from.m_hdl->copy():0;
31 
32  m_class = a_from.m_class;
33  m_path = a_from.m_path;
34  m_name = a_from.m_name;
35 
36  return *this;
37  }

◆ path()

const std::string& tools::raxml_out::path ( ) const
inline

Definition at line 44 of file raxml_out.

44 {return m_path;}

Member Data Documentation

◆ m_class

std::string tools::raxml_out::m_class
protected

Definition at line 49 of file raxml_out.

◆ m_hdl

base_handle* tools::raxml_out::m_hdl
protected

Definition at line 48 of file raxml_out.

◆ m_name

std::string tools::raxml_out::m_name
protected

Definition at line 51 of file raxml_out.

◆ m_path

std::string tools::raxml_out::m_path
protected

Definition at line 50 of file raxml_out.


The documentation for this class was generated from the following file:
tools::raxml_out::m_path
std::string m_path
Definition: raxml_out:50
tools::raxml_out::m_name
std::string m_name
Definition: raxml_out:51
tools::base_handle::disown
virtual void disown()=0
tools::base_handle::copy
virtual base_handle * copy()=0
tools::base_handle::object
virtual void * object() const =0
tools::raxml_out::m_hdl
base_handle * m_hdl
Definition: raxml_out:48
tools::raxml_out::m_class
std::string m_class
Definition: raxml_out:49