24 #include <unordered_map> 52 std::unordered_map<std::string, PrecompiledExecutor>
m_execs;
57 #define ETH_REGISTER_PRECOMPILED(Name) static std::pair<bool, bytes> __eth_registerPrecompiledFunction ## Name(bytesConstRef _in); static PrecompiledExecutor __eth_registerPrecompiledFactory ## Name = ::dev::eth::PrecompiledRegistrar::registerPrecompiled(#Name, &__eth_registerPrecompiledFunction ## Name); static std::pair<bool, bytes> __eth_registerPrecompiledFunction ## Name Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
std::unordered_map< std::string, PrecompiledExecutor > m_execs
static PrecompiledExecutor registerPrecompiled(std::string const &_name, PrecompiledExecutor const &_exec)
Register an executor. In general just use ETH_REGISTER_PRECOMPILED.
static PrecompiledExecutor const & executor(std::string const &_name)
Get the executor object for _name function or.
std::function< std::pair< bool, bytes >(bytesConstRef _in)> PrecompiledExecutor
static void unregisterPrecompiled(std::string const &_name)
Unregister an executor. Shouldn't generally be necessary.
static PrecompiledRegistrar * s_this
DEV_SIMPLE_EXCEPTION(InvalidSealEngine)