include
gmapping
utils
macro_params.h
Go to the documentation of this file.
1
#ifndef MACRO_PARAMS_H
2
#define MACRO_PARAMS_H
3
4
#define PARAM_SET_GET(type, name, qualifier, setqualifier, getqualifier)\
5
qualifier: type m_##name;\
6
getqualifier: inline type get##name() const {return m_##name;}\
7
setqualifier: inline void set##name(type name) {m_##name=name;}
8
9
#define PARAM_SET(type, name, qualifier, setqualifier)\
10
qualifier: type m_##name;\
11
setqualifier: inline void set##name(type name) {m_##name=name;}
12
13
#define PARAM_GET(type, name, qualifier, getqualifier)\
14
qualifier: type m_##name;\
15
getqualifier: inline type get##name() const {return m_##name;}
16
17
#define MEMBER_PARAM_SET_GET(member, type, name, qualifier, setqualifier, getqualifier)\
18
getqualifier: inline type get##name() const {return member.get##name();}\
19
setqualifier: inline void set##name(type name) { member.set##name(name);}
20
21
#define MEMBER_PARAM_SET(member, type, name, qualifier, setqualifier, getqualifier)\
22
setqualifier: inline void set##name(type name) { member.set##name(name);}
23
24
#define MEMBER_PARAM_GET(member, type, name, qualifier, setqualifier, getqualifier)\
25
getqualifier: inline type get##name() const {return member.get##name();}
26
27
#define STRUCT_PARAM_SET_GET(member, type, name, qualifier, setqualifier, getqualifier)\
28
getqualifier: inline type get##name() const {return member.name;}\
29
setqualifier: inline void set##name(type name) {member.name=name;}
30
31
#define STRUCT_PARAM_SET(member, type, name, qualifier, setqualifier, getqualifier)\
32
setqualifier: inline void set##name(type name) {member.name=name;}
33
34
#define STRUCT_PARAM_GET(member, type, name, qualifier, setqualifier, getqualifier)\
35
getqualifier: inline type get##name() const {return member.name;}\
36
37
#define convertStringArgument(var,val,buf) if (!strcmp(buf,#val)) var=val
38
#endif
openslam_gmapping
Author(s): Cyrill Stachniss, Udo Frese, Giorgio Grisetti, Wolfram Burgard
autogenerated on Mon Feb 28 2022 22:59:20