TARAXA
|
Namespaces | |
event | |
lazy | |
Classes | |
struct | DefaultConstructCopyableMovable |
struct | RLPDecoderRef |
struct | InvalidEncodingSize |
class | EncodingSolidity |
class | ThreadPool |
Typedefs | |
using | RLPEncoderRef = dev::RLPStream & |
using | task_t = std::function< void()> |
using | task_executor_t = std::function< void(task_t &&)> |
Functions | |
template<typename... Params> | |
void | rlp_tuple (RLPEncoderRef encoding, Params const &... args) |
template<typename T > | |
auto | rlp (RLPEncoderRef encoding, T const &target) -> decltype(RLP().toInt< T >(), void()) |
template<unsigned N> | |
void | rlp (RLPEncoderRef encoding, dev::FixedHash< N > const &target) |
auto | rlp (RLPEncoderRef encoding, std::string const &target) |
auto | rlp (RLPEncoderRef encoding, dev::bytes const &target) |
template<typename Param > | |
void | rlp (RLPEncoderRef encoding, std::optional< Param > const &target) |
template<typename Param > | |
void | rlp (RLPEncoderRef encoding, std::shared_ptr< Param > const &target) |
template<typename T1 , typename T2 > | |
void | rlp (RLPEncoderRef encoding, std::pair< T1, T2 > const &target) |
template<typename Sequence > | |
auto | rlp (RLPEncoderRef encoding, Sequence const &target) -> decltype(target.size(), target.begin(), target.end(), void()) |
template<typename Param , typename... Params> | |
void | __enc_rlp_tuple_body__ (RLPEncoderRef encoding, Param const &target, Params const &... rest) |
template<typename... Params> | |
void | rlp_tuple (RLPDecoderRef encoding, Params &... args) |
template<typename T > | |
auto | rlp (RLPDecoderRef encoding, T &target) -> decltype(encoding.value.toInt< T >(), void()) |
template<unsigned N> | |
void | rlp (RLPDecoderRef encoding, dev::FixedHash< N > &target) |
auto | rlp (RLPDecoderRef encoding, std::string &target) |
auto | rlp (RLPDecoderRef encoding, dev::bytes &target) |
template<typename Param > | |
void | rlp (RLPDecoderRef encoding, std::optional< Param > &target) |
template<typename Param > | |
void | rlp (RLPDecoderRef encoding, std::shared_ptr< Param > &target) |
template<typename Sequence > | |
auto | rlp (RLPDecoderRef encoding, Sequence &target) -> decltype(target.emplace_back(), void()) |
void | rlp (RLPDecoderRef encoding, bool &target) |
template<typename Map > | |
auto | rlp (RLPDecoderRef encoding, Map &target) -> decltype(target[target.begin() ->first], void()) |
template<typename Param , typename... Params> | |
void | __dec_rlp_tuple_body__ (RLP::iterator &i, RLP::iterator const &end, RLP::Strictness strictness, Param &target, Params &... rest) |
template<typename T > | |
T | rlp_dec (RLPDecoderRef encoding) |
template<typename T > | |
dev::bytes const & | rlp_enc (RLPEncoderRef encoder_to_reuse, T const &obj) |
template<typename T > | |
dev::bytes | rlp_enc (T const &obj) |
task_executor_t | current_thread_executor () |
Json::Value | parse_json (std::string_view const &str) |
std::string | to_string (Json::Value const &json, bool no_indent=true) |
void | writeJsonToFile (const std::string &file_name, const Json::Value &json) |
Json::Value | readJsonFromFile (const std::string &file_name) |
Json::Value | readJsonFromString (std::string_view str) |
Json::Value | readJsonFromFile (const std::filesystem::path &file_path) |
using taraxa::util::RLPEncoderRef = typedef dev::RLPStream& |
using taraxa::util::task_executor_t = typedef std::function<void(task_t &&)> |
using taraxa::util::task_t = typedef std::function<void()> |
void taraxa::util::__dec_rlp_tuple_body__ | ( | RLP::iterator & | i, |
RLP::iterator const & | end, | ||
RLP::Strictness | strictness, | ||
Param & | target, | ||
Params &... | rest | ||
) |
void taraxa::util::__enc_rlp_tuple_body__ | ( | RLPEncoderRef | encoding, |
Param const & | target, | ||
Params const &... | rest | ||
) |
|
inline |
Json::Value taraxa::util::parse_json | ( | std::string_view const & | str | ) |
Json::Value taraxa::util::readJsonFromFile | ( | const std::filesystem::path & | file_path | ) |
Json::Value taraxa::util::readJsonFromFile | ( | const std::string & | file_name | ) |
Json::Value taraxa::util::readJsonFromString | ( | std::string_view | str | ) |
|
inline |
|
inline |
void taraxa::util::rlp | ( | RLPDecoderRef | encoding, |
dev::FixedHash< N > & | target | ||
) |
auto taraxa::util::rlp | ( | RLPDecoderRef | encoding, |
Map & | target | ||
) | -> decltype(target[target.begin()->first], void()) |
auto taraxa::util::rlp | ( | RLPDecoderRef | encoding, |
Sequence & | target | ||
) | -> decltype(target.emplace_back(), void()) |
void taraxa::util::rlp | ( | RLPDecoderRef | encoding, |
std::optional< Param > & | target | ||
) |
void taraxa::util::rlp | ( | RLPDecoderRef | encoding, |
std::shared_ptr< Param > & | target | ||
) |
|
inline |
|
inline |
|
inline |
void taraxa::util::rlp | ( | RLPEncoderRef | encoding, |
dev::FixedHash< N > const & | target | ||
) |
auto taraxa::util::rlp | ( | RLPEncoderRef | encoding, |
Sequence const & | target | ||
) | -> decltype(target.size(), target.begin(), target.end(), void()) |
void taraxa::util::rlp | ( | RLPEncoderRef | encoding, |
std::optional< Param > const & | target | ||
) |
void taraxa::util::rlp | ( | RLPEncoderRef | encoding, |
std::pair< T1, T2 > const & | target | ||
) |
void taraxa::util::rlp | ( | RLPEncoderRef | encoding, |
std::shared_ptr< Param > const & | target | ||
) |
|
inline |
|
inline |
T taraxa::util::rlp_dec | ( | RLPDecoderRef | encoding | ) |
dev::bytes const& taraxa::util::rlp_enc | ( | RLPEncoderRef | encoder_to_reuse, |
T const & | obj | ||
) |
dev::bytes taraxa::util::rlp_enc | ( | T const & | obj | ) |
void taraxa::util::rlp_tuple | ( | RLPDecoderRef | encoding, |
Params &... | args | ||
) |
void taraxa::util::rlp_tuple | ( | RLPEncoderRef | encoding, |
Params const &... | args | ||
) |
std::string taraxa::util::to_string | ( | Json::Value const & | json, |
bool | no_indent = true |
||
) |
void taraxa::util::writeJsonToFile | ( | const std::string & | file_name, |
const Json::Value & | json | ||
) |