Go to the source code of this file.
◆ DECLARE_CHECK_STATIC_ATTACH
#define DECLARE_CHECK_STATIC_ATTACH |
( |
|
stage, |
|
|
|
container |
|
) |
| |
Value:
{\
SmartPtr<stage##_observer_type> sp_staticObs = obs.template cast_dynamic<stage##_observer_type>();\
if (sp_staticObs.valid())\
{\
(container).push_back(sp_staticObs);\
return true;\
}\
return false;\
}
Definition: smart_pointer.h:108
◆ DECLARE_NOTIFY_STEP
#define DECLARE_NOTIFY_STEP |
( |
|
functionName, |
|
|
|
stageName, |
|
|
|
stageID, |
|
|
|
container |
|
) |
| |
Value:
{\
bool res = notify_group<(stageID)>(u, step, time, dt);\
const size_t numObs = (container).size();\
for (size_t o = 0; o < numObs; ++o)\
res &= (container)[o]->stageName##_action(u, step, time, dt);\
return res;\
}
double number
Definition: types.h:124