Stochastic Loading Module
Public Member Functions | List of all members
DispatchRegister< Treturntype, Targs > Class Template Reference

#include <function_dispatcher.h>

Public Member Functions

 DispatchRegister (const std::string &key, std::function< Treturntype(Targs...)> new_function)
 

Detailed Description

template<typename Treturntype, typename... Targs>
class DispatchRegister< Treturntype, Targs >

A helper class to register a function with the dispatcher

Template Parameters
TreturntypeFunction return type
TargsFunction arguments

Definition at line 95 of file function_dispatcher.h.

Constructor & Destructor Documentation

template<typename Treturntype, typename... Targs>
DispatchRegister< Treturntype, Targs >::DispatchRegister ( const std::string &  key,
std::function< Treturntype(Targs...)>  new_function 
)
inlineexplicit

Register with a given key

Parameters
[in]keyKey to item in registry

Definition at line 101 of file function_dispatcher.h.


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