Geogram  Version 1.9.1
A programming library of geometric algorithms
GEO::CommandInvoker Class Referenceabstract

Abstract class for calling functions or calling member functions. More...

#include <geogram_gfx/gui/command.h>

Inheritance diagram for GEO::CommandInvoker:
GEO::Counted GEO::FunctionCommandInvoker< FPTR > GEO::MemberFunctionCommandInvoker< T, TFPTR >

Public Member Functions

 CommandInvoker ()
 CommandInvoker constructor.
 
 ~CommandInvoker () override
 CommandInvoker destructor.
 
virtual void invoke ()=0
 Invokes the target function.
 
virtual void auto_create_args ()=0
 Creates the arguments in the target command. More...
 
- Public Member Functions inherited from GEO::Counted
void ref () const
 Increments the reference count. More...
 
void unref () const
 Decrements the reference count. More...
 
bool is_shared () const
 Check if the object is shared. More...
 
int nb_refs () const
 Gets the number of references that point to this object. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from GEO::Counted
static void ref (const Counted *counted)
 Increments the reference count. More...
 
static void unref (const Counted *counted)
 Decrements the reference count. More...
 
- Protected Member Functions inherited from GEO::Counted
 Counted ()
 Creates a reference counted object. More...
 
virtual ~Counted ()
 Destroys a reference counted object. More...
 

Detailed Description

Abstract class for calling functions or calling member functions.

Used internally by Command.

Definition at line 60 of file command.h.

Member Function Documentation

◆ auto_create_args()

virtual void GEO::CommandInvoker::auto_create_args ( )
pure virtual

Creates the arguments in the target command.

This function is used when client code did not provide a function prototype to the constructor of Command.

Implemented in GEO::MemberFunctionCommandInvoker< T, TFPTR >, and GEO::FunctionCommandInvoker< FPTR >.


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