#include <registry.hpp>
Static Public Member Functions | |
template<int ID, typename T > | |
static bool | add (const std::string &description="") |
static bool | isRegistered (const int &id) |
template<typename T > | |
static bool | isRegisteredWithType (const int &id) |
Static Private Member Functions | |
template<typename T > | |
static void | add_by_type (const int &id) |
static std::map< int, std::string > & | ids () |
template<typename T > | |
static std::set< int > & | ids_by_type () |
Definition at line 35 of file registry.hpp.
static bool mm_messages::MessageRegistry::add | ( | const std::string & | description = "" | ) | [inline, static] |
Register a packet id with this typed registry.
Definition at line 42 of file registry.hpp.
static void mm_messages::MessageRegistry::add_by_type | ( | const int & | id | ) | [inline, static, private] |
Definition at line 67 of file registry.hpp.
static std::map<int, std::string>& mm_messages::MessageRegistry::ids | ( | ) | [inline, static, private] |
Definition at line 79 of file registry.hpp.
static std::set<int>& mm_messages::MessageRegistry::ids_by_type | ( | ) | [inline, static, private] |
Definition at line 75 of file registry.hpp.
static bool mm_messages::MessageRegistry::isRegistered | ( | const int & | id | ) | [inline, static] |
Definition at line 56 of file registry.hpp.
static bool mm_messages::MessageRegistry::isRegisteredWithType | ( | const int & | id | ) | [inline, static] |
Definition at line 61 of file registry.hpp.