boost::openmethod::registry
A collection of methods and their associated dispatch data.
Synopsis
Declared in <boost/openmethod/registry.hpp>
template<class... Policies>
class registry;
Static Member Functions
Name |
Description |
Initializes the registry. |
|
Checks if the registry is initialized. |
|
Releases the resources held by the registry. |
Description
Methods exist in a registry, which also contains descriptions for all the classes that can appear in the methods, their overriders, and method calls.
Before calling a method, the initialize
function must be called for its registry to set up the dispatch tables. This is typically done at the beginning of main
.
Multiple registries can co‐exist in the same program. They must be initialized independently. Classes referenced by methods in different registries must be registered with each registry individually.
A registry contains a list of policies
, which can be used to customize certain important aspects of the library.