#include <string>#include <vector>Defines | |
| #define | IS_A(P, T) (dynamic_cast<T>(P)!=NULL) |
| #define | DECLARE_MANAGEMENT_LAYER(T) |
| #define | IMPLEMENT_MANAGEMENT_LAYER(T) |
| #define | UNSIGNED_BIT(a) ((unsigned long)(1L<<(unsigned long)(a))) |
| #define | BIT(a) (long(1L<<long(a))) |
| #define | UNSIGNED_INT_BIT(a) ((unsigned int)(1L<<(unsigned int)(a))) |
| #define BIT | ( | a | ) | (long(1L<<long(a))) |
| #define DECLARE_MANAGEMENT_LAYER | ( | T | ) |
Value:
private: \ static std::vector<T*> instances; \ static void RegisterInstance(T* instance); \ static void DeregisterInstance(T* instance); \ public: \ static int GetInstanceCount(); \ static T* GetInstance(int index); \ static T* GetInstance(std::string name);
| #define IMPLEMENT_MANAGEMENT_LAYER | ( | T | ) |
| #define IS_A | ( | P, | |||
| T | ) | (dynamic_cast<T>(P)!=NULL) |
| #define UNSIGNED_BIT | ( | a | ) | ((unsigned long)(1L<<(unsigned long)(a))) |
| #define UNSIGNED_INT_BIT | ( | a | ) | ((unsigned int)(1L<<(unsigned int)(a))) |