Public Member Functions | Private Attributes | List of all members
ExampleVirt Class Referenceabstract
Inheritance diagram for ExampleVirt:
Inheritance graph
[legend]

Public Member Functions

 ExampleVirt (const ExampleVirt &e)
 
 ExampleVirt (ExampleVirt &&e) noexcept
 
 ExampleVirt (int state)
 
virtual const std::string & get_string1 ()
 
virtual const std::string * get_string2 ()
 
virtual void pure_virtual ()=0
 
virtual int run (int value)
 
virtual bool run_bool ()=0
 
virtual ~ExampleVirt ()
 

Private Attributes

int state
 
const std::string str1 {"default1"}
 
const std::string str2 {"default2"}
 

Detailed Description

Definition at line 18 of file test_virtual_functions.cpp.

Constructor & Destructor Documentation

◆ ExampleVirt() [1/3]

ExampleVirt::ExampleVirt ( int  state)
inlineexplicit

Definition at line 20 of file test_virtual_functions.cpp.

◆ ExampleVirt() [2/3]

ExampleVirt::ExampleVirt ( const ExampleVirt e)
inline

Definition at line 21 of file test_virtual_functions.cpp.

◆ ExampleVirt() [3/3]

ExampleVirt::ExampleVirt ( ExampleVirt &&  e)
inlinenoexcept

Definition at line 22 of file test_virtual_functions.cpp.

◆ ~ExampleVirt()

virtual ExampleVirt::~ExampleVirt ( )
inlinevirtual

Definition at line 26 of file test_virtual_functions.cpp.

Member Function Documentation

◆ get_string1()

virtual const std::string& ExampleVirt::get_string1 ( )
inlinevirtual

Reimplemented in PyExampleVirt.

Definition at line 41 of file test_virtual_functions.cpp.

◆ get_string2()

virtual const std::string* ExampleVirt::get_string2 ( )
inlinevirtual

Reimplemented in PyExampleVirt.

Definition at line 42 of file test_virtual_functions.cpp.

◆ pure_virtual()

virtual void ExampleVirt::pure_virtual ( )
pure virtual

Implemented in PyExampleVirt.

◆ run()

virtual int ExampleVirt::run ( int  value)
inlinevirtual

Reimplemented in PyExampleVirt.

Definition at line 28 of file test_virtual_functions.cpp.

◆ run_bool()

virtual bool ExampleVirt::run_bool ( )
pure virtual

Implemented in PyExampleVirt.

Member Data Documentation

◆ state

int ExampleVirt::state
private

Definition at line 45 of file test_virtual_functions.cpp.

◆ str1

const std::string ExampleVirt::str1 {"default1"}
private

Definition at line 46 of file test_virtual_functions.cpp.

◆ str2

const std::string ExampleVirt::str2 {"default2"}
private

Definition at line 46 of file test_virtual_functions.cpp.


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


gtsam
Author(s):
autogenerated on Fri Nov 1 2024 03:43:35