Brush C++ API
A flexible interpretable machine learning framework
|
#include <dispatch_table.h>
Public Types | |
template<typename T > | |
using | Callable |
using | CallVariant |
using | SigMap = std::unordered_map<std::size_t,CallVariant> |
maps Signature hashes -> Dispatch Operator | |
using | DTMap = std::unordered_map<NodeType, SigMap> |
maps NodeTypes -> Signature hash -> Dispatch Operator | |
Public Member Functions | |
DispatchTable () | |
void | print () |
~DispatchTable ()=default | |
auto | operator= (DispatchTable const &other) -> DispatchTable & |
auto | operator= (DispatchTable &&other) noexcept -> DispatchTable & |
DispatchTable (DispatchTable const &other) | |
DispatchTable (DispatchTable &&other) noexcept | |
template<typename T > | |
auto | Get (NodeType n, std::size_t sig_hash) const -> Callable< T > const & |
Private Member Functions | |
template<std::size_t... Is> | |
void | InitMap (std::index_sequence< Is... >) |
template<NodeType NT> | |
SigMap | MakeOperators () |
Static Private Member Functions | |
template<NodeType NT, typename Sigs , std::size_t... Is> | |
static constexpr auto | AddOperator (std::index_sequence< Is... >) |
template<NodeType N, typename S > | |
static constexpr auto | MakeCallable () |
Private Attributes | |
DTMap | map_ |
Definition at line 36 of file dispatch_table.h.
Definition at line 39 of file dispatch_table.h.
using Brush::DispatchTable< Fit >::CallVariant |
Definition at line 44 of file dispatch_table.h.
maps NodeTypes -> Signature hash -> Dispatch Operator
Definition at line 68 of file dispatch_table.h.
using Brush::DispatchTable< Fit >::SigMap = std::unordered_map<std::size_t,CallVariant> |
maps Signature hashes -> Dispatch Operator
Definition at line 66 of file dispatch_table.h.
|
inline |
|
default |
|
inline |
Definition at line 156 of file dispatch_table.h.
|
inlinenoexcept |
Definition at line 157 of file dispatch_table.h.
|
inlineprivate |
Definition at line 74 of file dispatch_table.h.
|
inlineprivate |
|
inlinenoexcept |
|
inline |
|
inline |
|
private |
Definition at line 71 of file dispatch_table.h.