BWAPI
Classes | Defines
SPAR/AIModule/SparAIModule/Utils/Event.h File Reference
#include "SafeList.h"
#include "EventHandler.h"
Include dependency graph for Event.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  EventBase
 Base class for events which other components may subscribe to or unsubscribe from. The virtual destructor is necessary only so that this class is virtual. More...
class  Event< Arguments >
 Base class for events, templated on the type of arguments sent with the event. More...
class  Event< Arguments >::SubscriberID
 The type of ID given to the subscribers. More...
class  Event0
class  Event1< T1 >
class  Event2< T1, T2 >
class  Event3< T1, T2, T3 >
class  Event4< T1, T2, T3, T4 >
class  Event5< T1, T2, T3, T4, T5 >

Defines

#define DECLARE_EVENT(Name)
#define DECLARE_EVENT1(Name, T1)
#define DECLARE_EVENT2(Name, T1, T2)
#define DECLARE_EVENT3(Name, T1, T2, T3)
#define DECLARE_EVENT4(Name, T1, T2, T3, T4)
#define DECLARE_EVENT5(Name, T1, T2, T3, T4, T5)
#define EVENT(Name)   mutable Name

Define Documentation

#define DECLARE_EVENT (   Name)
Value:
class Name : public Event0 \
  { \
  public: \
    virtual ~Name() {} \
  };
#define DECLARE_EVENT1 (   Name,
  T1 
)
Value:
class Name : public Event1<T1> \
  { \
  public: \
    virtual ~Name() {} \
  };
#define DECLARE_EVENT2 (   Name,
  T1,
  T2 
)
Value:
class Name : public Event2<T1,T2> \
  { \
  public: \
    virtual ~Name() {} \
  };
#define DECLARE_EVENT3 (   Name,
  T1,
  T2,
  T3 
)
Value:
class Name : public Event3<T1,T2,T3> \
  { \
  public: \
    virtual ~Name() {} \
  };
#define DECLARE_EVENT4 (   Name,
  T1,
  T2,
  T3,
  T4 
)
Value:
class Name : public Event4<T1,T2,T3,T4> \
  { \
  public: \
    virtual ~Name() {} \
  };
#define DECLARE_EVENT5 (   Name,
  T1,
  T2,
  T3,
  T4,
  T5 
)
Value:
class Name : public Event5<T1,T2,T3,T4,T5> \
  { \
  public: \
    virtual ~Name() {} \
  };
#define EVENT (   Name)    mutable Name
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines