viotecs 1.0
Loading...
Searching...
No Matches
system.hpp File Reference
#include <tuple>
#include <typeindex>
#include <vector>

Go to the source code of this file.

Data Structures

struct  viotecs::system< T >
 System type. More...
 
struct  viotecs::registered_systems< T >
 Registered Systems Type. More...
 

Namespaces

namespace  viotecs
 

Macros

#define REGISTER_SYSTEMS(...)
 

Macro Definition Documentation

◆ REGISTER_SYSTEMS

#define REGISTER_SYSTEMS ( ...)
Value:
{ \
typedef registered_systems<__VA_ARGS__>::systems registered_systems; \
const registered_systems systems; \
for_each(systems); \
}
static void run_systems()
Run all systems.

Use this macro anywhere (outside a function) to register systems. Use it only once.

Definition at line 84 of file system.hpp.