Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
g
i
l
m
n
o
p
r
s
t
v
w
Functions
_
a
c
d
g
m
n
o
r
s
t
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Typedefs
c
d
e
f
g
h
m
n
q
s
Enumerations
Enumerator
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
Related Functions
Files
File List
File Members
All
_
b
c
d
e
l
m
o
s
v
Functions
b
d
l
m
o
Variables
Typedefs
Macros
_
b
c
d
e
l
s
v
include
dynamic-graph
command-getter.h
Go to the documentation of this file.
1
//
2
// Copyright 2010 CNRS
3
//
4
// Author: Florent Lamiraux
5
//
6
7
#ifndef DYNAMIC_GRAPH_COMMAND_GETTER_H
8
#define DYNAMIC_GRAPH_COMMAND_GETTER_H
9
10
#include "
dynamic-graph/command.h
"
11
12
namespace
dynamicgraph
{
13
namespace
command {
14
44
template
<
class
E,
typename
T>
45
class
Getter
:
public
Command
{
46
public
:
48
typedef
T (E::*
GetterMethod
)()
const
;
50
Getter
(E &entity,
GetterMethod
getterMethod,
const
std::string &docString);
51
52
protected
:
53
virtual
Value
doExecute
();
54
55
private
:
56
GetterMethod
getterMethod_
;
57
};
58
}
// namespace command
59
}
// namespace dynamicgraph
60
61
#include "
dynamic-graph/command-getter.t.cpp
"
62
#endif // DYNAMIC_GRAPH_COMMAND_GETTER_H
dynamicgraph
command-getter.t.cpp
command.h
dynamicgraph::command::Command
Definition:
command.h:35
dynamicgraph::command::Getter::getterMethod_
GetterMethod getterMethod_
Definition:
command-getter.h:56
dynamicgraph::command::Getter::GetterMethod
T(E::* GetterMethod)() const
Pointer to method that sets parameter of type T.
Definition:
command-getter.h:48
dynamicgraph::command::Getter::doExecute
virtual Value doExecute()
Specific action performed by the command.
Definition:
command-getter.t.cpp:25
dynamicgraph::command::Getter
Definition:
command-getter.h:45
dynamicgraph::command::Value
This class implements a variant design pattern to handle basic types in Command.
Definition:
value.h:51
dynamicgraph::command::Getter::Getter
Getter(E &entity, GetterMethod getterMethod, const std::string &docString)
Constructor.
Definition:
command-getter.t.cpp:19
dynamic-graph
Author(s): Nicolas Mansard, Olivier Stasse
autogenerated on Fri Aug 2 2024 08:36:38