ug4
grid_connection_managment.cpp File Reference
#include <algorithm>
#include "grid.h"
#include "grid_util.h"
#include "common/common.h"
#include "common/profiler/profiler.h"

Namespaces

 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. More...
 
#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. More...
 

Macro Definition Documentation

◆ GCM_PROFILE

#define GCM_PROFILE (   name)

◆ GCM_PROFILE_END

#define GCM_PROFILE_END ( )

◆ GCM_PROFILE_FUNC

#define GCM_PROFILE_FUNC ( )

◆ NOTIFY_OBSERVERS

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

◆ NOTIFY_OBSERVERS_REVERSE

#define NOTIFY_OBSERVERS_REVERSE (   observerContainer,
  callback 
)    {for(Grid::ObserverContainer::reverse_iterator iter = observerContainer.rbegin(); iter != observerContainer.rend(); iter++) (*iter)->callback;}

◆ OPTIONS_CONTAIN_OPTION

#define OPTIONS_CONTAIN_OPTION (   options,
  option 
)    (((options) & (option)) == (option))

a useful macro that checks if a set of options contains the specified option.