Go to the source code of this file.
◆ DEFINE_GETTER_SETTER [1/2]
#define DEFINE_GETTER_SETTER |
( |
|
NAME, |
|
|
|
TYPE |
|
) |
| |
Value:public: \
TYPE get##NAME() override { return TYPE(); }; \
void set##NAME(const TYPE &) override{};
- Note
- Getters defined by this macro return default values and setters are behaved as no-operation functions.
-
Getters defined by this macro return stored values and setters store values.
◆ DEFINE_GETTER_SETTER [2/2]
#define DEFINE_GETTER_SETTER |
( |
|
NAME, |
|
|
|
TYPE, |
|
|
|
FIELD_NAME |
|
) |
| |
Value:public: \
TYPE get##NAME() override { return FIELD_NAME; }; \
void set##NAME(const TYPE & value) override { FIELD_NAME = value; }; \
\
private: \
TYPE FIELD_NAME;
- Note
- Getters defined by this macro return default values and setters are behaved as no-operation functions.
-
Getters defined by this macro return stored values and setters store values.