scenario_simulator_v2 C++ API
Classes | Namespaces | Macros
plugin.hpp File Reference
#include <traffic_simulator/behavior/behavior_plugin_base.hpp>
Include dependency graph for plugin.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  entity_behavior::DoNothingBehavior
 

Namespaces

 entity_behavior
 

Macros

#define DEFINE_GETTER_SETTER(NAME, TYPE)
 
#define DEFINE_GETTER_SETTER(NAME, TYPE, FIELD_NAME)
 

Macro Definition Documentation

◆ 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.