Static Public Member Functions | Static Private Member Functions | List of all members
mm_messages::MessageRegistry Class Reference

#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 ()
 

Detailed Description

Definition at line 35 of file registry.hpp.

Member Function Documentation

template<int ID, typename T >
static bool mm_messages::MessageRegistry::add ( const std::string &  description = "")
inlinestatic

Register a packet id with this typed registry.

Returns
bool : false if a packet was already registered.

Definition at line 42 of file registry.hpp.

template<typename T >
static void mm_messages::MessageRegistry::add_by_type ( const int &  id)
inlinestaticprivate

Definition at line 67 of file registry.hpp.

static std::map<int, std::string>& mm_messages::MessageRegistry::ids ( )
inlinestaticprivate

Definition at line 79 of file registry.hpp.

template<typename T >
static std::set<int>& mm_messages::MessageRegistry::ids_by_type ( )
inlinestaticprivate

Definition at line 75 of file registry.hpp.

static bool mm_messages::MessageRegistry::isRegistered ( const int &  id)
inlinestatic

Definition at line 56 of file registry.hpp.

template<typename T >
static bool mm_messages::MessageRegistry::isRegisteredWithType ( const int &  id)
inlinestatic

Definition at line 61 of file registry.hpp.


The documentation for this class was generated from the following file:


mm_messages
Author(s): Daniel Stonier
autogenerated on Mon Jun 10 2019 13:52:10