|
ug4
|
#include <algorithm>#include "grid.h"#include "grid_util.h"#include "common/common.h"#include "common/profiler/profiler.h"Namespaces | |
| namespace | ug |
| the ug namespace | |
Macros | |
| #define | GCM_PROFILE(name) |
| #define | GCM_PROFILE_END() |
| #define | GCM_PROFILE_FUNC() |
| #define | NOTIFY_OBSERVERS(observerContainer, callback) {for(Grid::ObserverContainer::iterator iter = observerContainer.begin(); iter != observerContainer.end(); iter++) (*iter)->callback;} |
| this macro helps calling callbacks of different observers. | |
| #define | NOTIFY_OBSERVERS_REVERSE(observerContainer, callback) {for(Grid::ObserverContainer::reverse_iterator iter = observerContainer.rbegin(); iter != observerContainer.rend(); iter++) (*iter)->callback;} |
| #define | OPTIONS_CONTAIN_OPTION(options, option) (((options) & (option)) == (option)) |
| a useful macro that checks if a set of options contains the specified option. | |
| #define GCM_PROFILE | ( | name | ) |
| #define GCM_PROFILE_END | ( | ) |
| #define GCM_PROFILE_FUNC | ( | ) |
| #define NOTIFY_OBSERVERS | ( | observerContainer, | |
| callback | |||
| ) | {for(Grid::ObserverContainer::iterator iter = observerContainer.begin(); iter != observerContainer.end(); iter++) (*iter)->callback;} |
this macro helps calling callbacks of different observers.
Be sure that callback is a complete function call - including parameters.
| #define NOTIFY_OBSERVERS_REVERSE | ( | observerContainer, | |
| callback | |||
| ) | {for(Grid::ObserverContainer::reverse_iterator iter = observerContainer.rbegin(); iter != observerContainer.rend(); iter++) (*iter)->callback;} |
| #define OPTIONS_CONTAIN_OPTION | ( | options, | |
| option | |||
| ) | (((options) & (option)) == (option)) |
a useful macro that checks if a set of options contains the specified option.