BioDynaMo  v1.05.119-a4ff3934
Classes | Namespaces | Macros
behavior.h File Reference
#include <limits>
#include "core/agent/agent.h"
#include "core/agent/new_agent_event.h"
#include "core/util/type.h"
Include dependency graph for behavior.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  bdm::Behavior
 

Namespaces

 bdm
 

Macros

#define BDM_BEHAVIOR_HEADER(class_name, base_class, class_version_id)
 Inserts boilerplate code for behaviors with state. More...
 

Macro Definition Documentation

◆ BDM_BEHAVIOR_HEADER

#define BDM_BEHAVIOR_HEADER (   class_name,
  base_class,
  class_version_id 
)
Value:
public: \
using Base = base_class; \ \
Behavior* New() const override { return new class_name(); } \ \
Behavior* NewCopy() const override { return new class_name(*this); } \
\
private: \
BDM_CLASS_DEF_OVERRIDE(class_name, class_version_id); \
\
public:

Inserts boilerplate code for behaviors with state.

Definition at line 130 of file behavior.h.