MIRA
List of all members
Registrar< TRegistrar > Class Template Reference

A template class that creates a static instance of TRegistrar. More...

#include <utils/Registrar.h>

Detailed Description

template<typename TRegistrar>
class mira::Registrar< TRegistrar >

A template class that creates a static instance of TRegistrar.

The constructor and destructor usually are used to register and unregister something at some central management instance. Usage:

class MyRegistrar
{
public:
MyRegistrar() { register something }
~MyRegistrar() { unregister something }
};
#define MY_REGISTER(some parameters) MIRA_REGISTRAR(MyRegistrar)
...
MY_REGISTER(...);

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