|
Geogram Version 1.9.7
A programming library of geometric algorithms
|
An implementation of CommandInvoker that calls a member function of an object. More...
#include <geogram_gfx/gui/command.h>
Public Member Functions | |
| MemberFunctionCommandInvoker (Command *command, T *target, TFPTR target_fun) | |
| MemberFunctionCommandInvoker constructor. | |
| void | invoke () override |
| Invokes the target function. | |
| void | auto_create_args () override |
| Creates the arguments in the target command. | |
Public Member Functions inherited from GEO::CommandInvoker | |
| CommandInvoker () | |
| CommandInvoker constructor. | |
| ~CommandInvoker () override | |
| CommandInvoker destructor. | |
Public Member Functions inherited from GEO::Counted | |
| void | ref () const |
| Increments the reference count. | |
| void | unref () const |
| Decrements the reference count. | |
| bool | is_shared () const |
| Check if the object is shared. | |
| int | nb_refs () const |
| Gets the number of references that point to this object. | |
Additional Inherited Members | |
Static Public Member Functions inherited from GEO::Counted | |
| static void | ref (const Counted *counted) |
| Increments the reference count. | |
| static void | unref (const Counted *counted) |
| Decrements the reference count. | |
Protected Member Functions inherited from GEO::Counted | |
| Counted () | |
| Creates a reference counted object. | |
| virtual | ~Counted () |
| Destroys a reference counted object. | |
An implementation of CommandInvoker that calls a member function of an object.
| T | class of the object |
| TFPTR | function pointer type for the function to be called |
|
inline |
MemberFunctionCommandInvoker constructor.
| [in] | command | a pointer to the Command object |
| [in] | target | a pointer to the object |
| [in] | target_fun | the member function pointer |
|
inlineoverridevirtual |
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.
Implements GEO::CommandInvoker.
|
inlineoverridevirtual |
Invokes the target function.
Implements GEO::CommandInvoker.