|
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.
| using Brush::DispatchTable< Fit >::DTMap = std::unordered_map<NodeType, SigMap> |
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 |
Definition at line 122 of file dispatch_table.h.


|
default |
|
inline |
|
inlinenoexcept |
|
inlinestaticconstexprprivate |
Definition at line 92 of file dispatch_table.h.


|
inline |
Definition at line 160 of file dispatch_table.h.
|
inlineprivate |
Definition at line 74 of file dispatch_table.h.


|
inlinestaticconstexprprivate |
Definition at line 111 of file dispatch_table.h.


|
inlineprivate |
Definition at line 83 of file dispatch_table.h.


|
inlinenoexcept |
|
inline |
|
inline |
Definition at line 127 of file dispatch_table.h.
|
private |
Definition at line 71 of file dispatch_table.h.