gbase
Loading...
Searching...
No Matches
g2 Class Reference

Public Member Functions

 g2 (const std::shared_ptr< GLogger > &log)
 
void doSomething (int a=0)
 
 ~g2 ()=default
 
- Public Member Functions inherited from GBase< g2 >
 GBase (const std::shared_ptr< GOptions > &gopt, std::string logger_name="")
 Construct a base that creates (and owns) a logger for the derived instance.
 
 GBase (const std::shared_ptr< GLogger > &logger)
 Construct a base that reuses an existing logger.
 
 GBase (const GBase &)=default
 Copy constructor (shallow copy of the logger pointer).
 
 GBase (GBase &&) noexcept=default
 Move constructor.
 
virtual ~GBase ()
 Destructor that logs object destruction when a logger is available.
 
GBaseoperator= (const GBase &)=default
 Copy assignment (shallow copy of the logger pointer).
 
GBaseoperator= (GBase &&) noexcept=default
 Move assignment operator.
 

Data Fields

int object1 = 2
 

Additional Inherited Members

- Protected Attributes inherited from GBase< g2 >
std::shared_ptr< GLoggerlog
 Shared logger used by the derived class for emitting messages.
 

Detailed Description

Definition at line 46 of file test_gbase.cc.

Constructor & Destructor Documentation

◆ g2()

g2::g2 ( const std::shared_ptr< GLogger > & log)
inlineexplicit

Definition at line 51 of file test_gbase.cc.

◆ ~g2()

g2::~g2 ( )
default

Member Function Documentation

◆ doSomething()

void g2::doSomething ( int a = 0)
inline

Definition at line 55 of file test_gbase.cc.

Field Documentation

◆ object1

int g2::object1 = 2

Definition at line 49 of file test_gbase.cc.


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