|
Regina Calculation Engine
|
Provides access to a registry of all packet types known to Regina. More...
#include "packet/packettype.h"#include "utilities/registryutils.h"#include "packet/packetregistry-impl.h"Namespaces | |
| regina | |
| Contains the entire Regina calculation engine. | |
Functions | |
| template<typename FunctionObject , typename... Args> | |
| ReturnsTraits< FunctionObject >::ReturnType | regina::forPacket (PacketType packetType, FunctionObject &&func, typename ReturnsTraits< FunctionObject >::ReturnType defaultReturn, Args &&... args) |
| Allows the user to call a template function whose template parameter matches a given value of PacketType, which is not known until runtime. More... | |
| template<typename FunctionObject , typename... Args> | |
| ReturnsTraits< FunctionObject >::Void | regina::forPacket (PacketType packetType, FunctionObject &&func, Args &&... args) |
| Allows the user to call a template function whose template parameter matches a given value of PacketType, which is not known until runtime. More... | |
Provides access to a registry of all packet types known to Regina.
Each time a new packet type is created, the file packetregistry-impl.h must be updated to include it. Instructions on how to do this are included in packetregistry-impl.h.
External routines can access the registry by calling one of the forPacket() template functions defined in packetregistry.h.