BitShares-Core  4.0.0
BitShares blockchain implementation and command-line interface software
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
fc Namespace Reference

Namespaces

 asio
 defines fc wrappers for boost::asio functions.
 
 detail
 
 ecc
 
 http
 
 impl
 
 ip
 
 json_relaxed
 
 member_names
 
 raw
 
 rpc
 
 typelist
 This namespace contains the list type, and all of the operations and queries which can be performed upon it.
 

Classes

class  aes_decoder
 
class  aes_encoder
 
class  api
 
class  api_base
 
class  api_connection
 
class  appender
 
struct  appender_config
 
class  appender_factory
 
class  bigint
 
struct  blob
 
class  bloom_filter
 
class  bloom_parameters
 
class  buffered_istream
 Reads data from an unbuffered stream and enables peek functionality. More...
 
class  buffered_ostream
 
class  cerr_t
 
struct  cin_buffer
 
class  cin_t
 
class  comma_numpunct
 
class  console_appender
 
struct  context
 
class  cout_t
 
class  datastream
 
class  datastream< size_t >
 
struct  diffie_hellman
 
class  directory_iterator
 
class  enum_type
 
class  exception
 Used to generate a useful error report when an exception is thrown.At each level in the stack where the exception is caught and rethrown a new log_message is added to the exception. More...
 
class  exception_factory
 
struct  field_reflection
 A template to store compile-time information about a field in a reflected struct. More...
 
class  file_appender
 
class  file_mapping
 
struct  from_static_variant
 
class  from_variant_visitor
 
class  future
 a placeholder for the result of an asynchronous operation. More...
 
class  future< void >
 
class  fwd
 Used to forward declare value types. More...
 
class  gelf_appender
 
class  generic_api
 
struct  get_comma_separated_typenames
 
struct  get_comma_separated_typenames< T >
 
struct  get_comma_separated_typenames< T, Ts... >
 
struct  get_comma_separated_typenames<>
 
struct  get_typename
 
struct  get_typename< bool >
 
struct  get_typename< char >
 
struct  get_typename< const T * >
 
struct  get_typename< double >
 
struct  get_typename< fc::exception >
 
struct  get_typename< flat_map< T, U > >
 
struct  get_typename< flat_set< static_variant< Ts... >, typename static_variant< Ts... >::type_lt > >
 
struct  get_typename< flat_set< T > >
 
struct  get_typename< float >
 
struct  get_typename< graphene::db::object_id< SpaceID, TypeID > >
 
struct  get_typename< graphene::protocol::extension< T > >
 
struct  get_typename< hash160 >
 
struct  get_typename< int16_t >
 
struct  get_typename< int32_t >
 
struct  get_typename< int64_t >
 
struct  get_typename< int8_t >
 
struct  get_typename< optional< T > >
 
struct  get_typename< path >
 
struct  get_typename< static_variant< T... > >
 
struct  get_typename< std::array< T, N > >
 
struct  get_typename< std::deque< T > >
 
struct  get_typename< std::map< K, V > >
 
struct  get_typename< std::pair< A, B > >
 
struct  get_typename< std::set< E > >
 
struct  get_typename< std::shared_ptr< const graphene::protocol::fee_schedule > >
 
struct  get_typename< std::shared_ptr< graphene::protocol::fee_schedule > >
 
struct  get_typename< std::string >
 
struct  get_typename< std::vector< char > >
 
struct  get_typename< std::vector< T > >
 
struct  get_typename< T * >
 
struct  get_typename< uint160_t >
 
struct  get_typename< uint16_t >
 
struct  get_typename< uint32_t >
 
struct  get_typename< uint64_t >
 
struct  get_typename< uint8_t >
 
struct  get_typename< unsigned_int >
 
struct  get_typename< value >
 
struct  get_typename< variant_object >
 
struct  get_typename< void >
 
struct  get_typename< zero_initialized_array< T, N > >
 
struct  graphene_extension_from_variant_visitor
 
struct  graphene_extension_to_variant_visitor
 
class  hash160
 
class  hmac
 
struct  identity_member_with_optionals
 
struct  if_enum
 
struct  if_enum< T, std::enable_if_t< std::is_enum< T >::value > >
 
struct  if_enum< T, std::enable_if_t<!std::is_enum< T >::value > >
 
class  ifstream
 
struct  inherited_field_reflection
 
class  iostream
 
class  istream
 
class  json
 
class  limited_mutable_variant_object
 
class  local_api_connection
 
class  log_context
 provides information about where and when a log message was generated. More...
 
class  log_level
 
class  log_message
 aggregates a message along with the context and associated meta-information. More...
 
class  logger
 
struct  logger_config
 
struct  logging_config
 
class  mapped_region
 
class  microseconds
 
class  mutable_url
 
class  mutable_variant_object
 An order-perserving dictionary of variant's. More...
 
class  mutex
 mutex More...
 
class  non_preemptable_scope_check
 
class  ofstream
 
struct  openssl_scope
 
struct  openssl_thread_config
 
class  optional
 provides stack-based nullable value similar to boost::optional More...
 
class  ostream
 
class  path
 wraps boost::filesystem::path to provide platform independent path manipulation. More...
 
class  priority
 
class  promise
 
class  promise< void >
 
class  promise_base
 
class  rate_limiting_group
 
class  recursive_directory_iterator
 
struct  reflector
 defines visit functions for T Unless this is specialized, visit() will not be defined for T. More...
 
struct  reflector< graphene::db::object_id< SpaceID, TypeID > >
 
class  ripemd160
 
struct  safe
 
class  scoped_lock
 
class  serial_valve
 
class  sha1
 
class  sha224
 
class  sha256
 
class  sha512
 
struct  sleep_priority_less
 
class  spin_lock
 modified spin-lock that yields on failure, but becomes a 'spin lock' if there are no other tasks to yield to. More...
 
class  spin_yield_lock
 modified spin-lock that yields on failure, but becomes a 'spin lock' if there are no other tasks to yield to. More...
 
struct  ssl_bignum
 
struct  ssl_wrapper
 
class  static_variant
 
class  static_variant< typelist::list< Types... > >
 
class  static_variant<>
 
class  stringstream
 
class  task
 
class  task< void, FunctorSize >
 
class  task_base
 
class  task_specific_ptr
 
class  tcp_server
 
class  tcp_socket
 
class  tcp_socket_io_hooks
 
class  temp_directory
 
class  temp_file
 
class  temp_file_base
 
class  thread
 
class  thread_d
 
class  thread_idle_notifier
 
class  thread_specific_ptr
 
class  time_point
 
class  time_point_sec
 
struct  to_static_variant
 
class  to_variant_visitor
 
struct  try_to_lock_t
 
class  udp_socket
 
class  unhandled_exception
 re-thrown whenever an unhandled exception is caught.Any exceptions thrown by 3rd party libraries that are not caught get wrapped in an unhandled_exception exception. More...
 
class  unique_lock
 
struct  unsigned_int
 
class  url
 
class  variant
 stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's. More...
 
class  variant_object
 An order-perserving dictionary of variant's. More...
 
struct  void_t
 
struct  vtable
 
struct  vtable_copy_visitor
 
class  zero_initialized_array
 
class  zero_initialized_array< unsigned char, N >
 

Typedefs

typedef uint32_t api_id_type
 
typedef std::shared_ptr< api_baseapi_ptr
 
typedef hmac< fc::sha224hmac_sha224
 
typedef hmac< fc::sha256hmac_sha256
 
typedef hmac< fc::sha512hmac_sha512
 
typedef ripemd160 uint160_t
 
typedef ripemd160 uint160
 
typedef sha256 uint256
 
typedef fc::sha512 uint512
 
typedef std::shared_ptr< exceptionexception_ptr
 
typedef optional< exceptionoexception
 
typedef std::shared_ptr< buffered_istreambuffered_istream_ptr
 
typedef std::shared_ptr< buffered_ostreambuffered_ostream_ptr
 
typedef std::shared_ptr< istreamistream_ptr
 
typedef std::shared_ptr< ostreamostream_ptr
 
typedef std::vector< log_messagelog_messages
 
typedef std::shared_ptr< rate_limiting_grouprate_limiting_group_ptr
 
typedef std::shared_ptr< tcp_sockettcp_socket_ptr
 
typedef fc::optional< std::string > ostring
 
typedef fc::optional< fc::pathopath
 
typedef fc::optional< fc::variant_objectovariant_object
 
template<typename T >
using signal = boost::signals2::signal< T >
 
using scoped_connection = boost::signals2::scoped_connection
 
typedef fc::optional< time_pointotime_point
 
typedef std::vector< variantvariants
 
typedef optional< variantovariant
 
typedef const variant_objectconst_variant_object_ptr
 
typedef const variantsconst_variants_ptr
 
typedef const blobconst_blob_ptr
 
typedef const string * const_string_ptr
 

Enumerations

enum  exception_code {
  unspecified_exception_code = 0, unhandled_exception_code = 1, timeout_exception_code = 2, file_not_found_exception_code = 3,
  parse_error_exception_code = 4, invalid_arg_exception_code = 5, key_not_found_exception_code = 6, bad_cast_exception_code = 7,
  out_of_range_exception_code = 8, canceled_exception_code = 9, assert_exception_code = 10, eof_exception_code = 11,
  std_exception_code = 13, invalid_operation_exception_code = 14, unknown_host_exception_code = 15, null_optional_code = 16,
  aes_error_code = 18, overflow_code = 19, underflow_code = 20, divide_by_zero_code = 21,
  method_not_found_exception_code = 22
}
 
enum  mode_t { read_only, write_only, read_write }
 

Functions

bloom_filter operator& (const bloom_filter &a, const bloom_filter &b)
 
bloom_filter operator| (const bloom_filter &a, const bloom_filter &b)
 
bloom_filter operator^ (const bloom_filter &a, const bloom_filter &b)
 
std::string zlib_compress (const std::string &in)
 
template<typename T , typename... A>
void to_variant (const flat_set< T, A... > &var, variant &vo, uint32_t _max_depth)
 
template<typename T , typename... A>
void from_variant (const variant &var, flat_set< T, A... > &vo, uint32_t _max_depth)
 
template<typename K , typename... T>
void to_variant (const flat_map< K, T... > &var, variant &vo, uint32_t _max_depth)
 
template<typename K , typename T , typename... A>
void from_variant (const variant &var, flat_map< K, T, A... > &vo, uint32_t _max_depth)
 
template<size_t N>
void to_variant (const zero_initialized_array< unsigned char, N > &bi, variant &v, uint32_t max_depth=1)
 
template<size_t N>
void from_variant (const variant &v, zero_initialized_array< unsigned char, N > &bi, uint32_t max_depth=1)
 
unsigned aes_encrypt (unsigned char *plaintext, int plaintext_len, unsigned char *key, unsigned char *iv, unsigned char *ciphertext)
 
unsigned aes_decrypt (unsigned char *ciphertext, int ciphertext_len, unsigned char *key, unsigned char *iv, unsigned char *plaintext)
 
unsigned aes_cfb_decrypt (unsigned char *ciphertext, int ciphertext_len, unsigned char *key, unsigned char *iv, unsigned char *plaintext)
 
std::vector< char > aes_encrypt (const fc::sha512 &key, const std::vector< char > &plain_text)
 
std::vector< char > aes_decrypt (const fc::sha512 &key, const std::vector< char > &cipher_text)
 
void aes_save (const fc::path &file, const fc::sha512 &key, std::vector< char > plain_text)
 
std::vector< char > aes_load (const fc::path &file, const fc::sha512 &key)
 
std::string to_base58 (const char *d, size_t s)
 
std::string to_base58 (const std::vector< char > &data)
 
std::vector< char > from_base58 (const std::string &base58_str)
 
size_t from_base58 (const std::string &base58_str, char *out_data, size_t out_data_len)
 
std::string base64_encode (unsigned char const *bytes_to_encode, unsigned int in_len)
 
std::string base64_encode (char const *bytes_to_encode, unsigned int in_len)
 
std::string base64_encode (const std::string &enc)
 
std::string base64_decode (const std::string &encoded_string)
 
void to_variant (const bigint &bi, variant &v, uint32_t max_depth=1)
 
void from_variant (const variant &v, bigint &bi, uint32_t max_depth=1)
 
uint64_t city_hash64 (const char *buf, size_t len)
 
uint32_t city_hash32 (const char *buf, size_t len)
 
size_t city_hash_size_t (const char *buf, size_t len)
 
uint128_t city_hash_crc_128 (const char *s, size_t len)
 
template<typename T >
fc::sha256 digest (const T &value)
 
void to_variant (const ecc::private_key &var, variant &vo, uint32_t max_depth)
 
void from_variant (const variant &var, ecc::private_key &vo, uint32_t max_depth)
 
void to_variant (const ecc::public_key &var, variant &vo, uint32_t max_depth)
 
void from_variant (const variant &var, ecc::public_key &vo, uint32_t max_depth)
 
void to_variant (const hash160 &bi, variant &v, uint32_t max_depth)
 
void from_variant (const variant &v, hash160 &bi, uint32_t max_depth)
 
uint8_t from_hex (char c)
 
std::string to_hex (const char *d, uint32_t s)
 
std::string to_hex (const std::vector< char > &data)
 
size_t from_hex (const std::string &hex_str, char *out_data, size_t out_data_len)
 
void store_configuration_path (const path &filePath)
 
int init_openssl ()
 
void rand_bytes (char *buf, int count)
 
void to_variant (const ripemd160 &bi, variant &v, uint32_t max_depth)
 
void from_variant (const variant &v, ripemd160 &bi, uint32_t max_depth)
 
void to_variant (const sha1 &bi, variant &v, uint32_t max_depth)
 
void from_variant (const variant &v, sha1 &bi, uint32_t max_depth)
 
void to_variant (const sha224 &bi, variant &v, uint32_t max_depth)
 
void from_variant (const variant &v, sha224 &bi, uint32_t max_depth)
 
void to_variant (const sha256 &bi, variant &v, uint32_t max_depth)
 
void from_variant (const variant &v, sha256 &bi, uint32_t max_depth)
 
void to_variant (const sha512 &bi, variant &v, uint32_t max_depth)
 
void from_variant (const variant &v, sha512 &bi, uint32_t max_depth)
 
void to_variant (const exception &e, variant &v, uint32_t max_depth)
 
void from_variant (const variant &e, exception &ll, uint32_t max_depth)
 
template<typename T >
fc::exception_ptr copy_exception (T &&e)
 
 FC_DECLARE_EXCEPTION (timeout_exception, timeout_exception_code)
 
 FC_DECLARE_EXCEPTION (file_not_found_exception, file_not_found_exception_code)
 
 FC_DECLARE_EXCEPTION (parse_error_exception, parse_error_exception_code)
 reports parse errors More...
 
 FC_DECLARE_EXCEPTION (invalid_arg_exception, invalid_arg_exception_code)
 
 FC_DECLARE_EXCEPTION (key_not_found_exception, key_not_found_exception_code)
 reports when a key, guid, or other item is not found. More...
 
 FC_DECLARE_EXCEPTION (bad_cast_exception, bad_cast_exception_code)
 
 FC_DECLARE_EXCEPTION (out_of_range_exception, out_of_range_exception_code)
 
 FC_DECLARE_EXCEPTION (method_not_found_exception, method_not_found_exception_code)
 
 FC_DECLARE_EXCEPTION (invalid_operation_exception, invalid_operation_exception_code)
 if an operation is unsupported or not valid this may be thrown More...
 
 FC_DECLARE_EXCEPTION (unknown_host_exception, unknown_host_exception_code)
 if an host name can not be resolved this may be thrown More...
 
 FC_DECLARE_EXCEPTION (canceled_exception, canceled_exception_code)
 used to report a canceled Operation More...
 
 FC_DECLARE_EXCEPTION (assert_exception, assert_exception_code)
 used inplace of assert() to report violations of pre conditions. More...
 
 FC_DECLARE_EXCEPTION (eof_exception, eof_exception_code)
 
 FC_DECLARE_EXCEPTION (null_optional, null_optional_code)
 
 FC_DECLARE_EXCEPTION (aes_exception, aes_error_code)
 
 FC_DECLARE_EXCEPTION (overflow_exception, overflow_code)
 
 FC_DECLARE_EXCEPTION (underflow_exception, underflow_code)
 
 FC_DECLARE_EXCEPTION (divide_by_zero_exception, divide_by_zero_code)
 
std::string except_str ()
 
void record_assert_trip (const char *filename, uint32_t lineno, const char *expr)
 
bool exists (const path &p)
 
bool is_directory (const path &p)
 
bool is_regular_file (const path &p)
 
void create_directories (const path &p)
 
void remove_all (const path &p)
 
path absolute (const path &p)
 
path make_relative (const path &from, const path &to)
 
path canonical (const path &p)
 
uint64_t file_size (const path &p)
 
uint64_t directory_size (const path &p)
 
bool remove (const path &p)
 
void copy (const path &from, const path &to)
 
void rename (const path &from, const path &to)
 
void resize_file (const path &file, size_t s)
 
void chmod (const path &p, int perm)
 
void create_hard_link (const path &from, const path &to)
 
path unique_path ()
 
path temp_directory_path ()
 
const pathhome_path ()
 
const pathapp_path ()
 
const fc::pathcurrent_path ()
 
void to_variant (const fc::path &, fc::variant &, uint32_t max_depth=1)
 
void from_variant (const fc::variant &, fc::path &, uint32_t max_depth=1)
 
template<typename T , unsigned int S, typename U , typename A >
auto operator+ (const fwd< T, S, A > &x, U &&u) -> typename detail::add< T, U >::type
 
template<typename T , unsigned int S, typename U , typename A >
auto operator- (const fwd< T, S, A > &x, U &&u) -> typename detail::sub< T, U >::type
 
template<typename T , unsigned int S, typename U , typename A >
auto operator<< (U &u, const fwd< T, S, A > &f) -> typename detail::insert_op< U, T >::type
 
template<typename T , unsigned int S, typename U , typename A >
auto operator>> (U &u, fwd< T, S, A > &f) -> typename detail::extract_op< U, T >::type
 
template<uint64_t RequiredSize, uint64_t ProvidedSize>
void check_size ()
 
std::shared_ptr< boost::asio::signal_set > set_signal_handler (std::function< void(int)> handler, int signal_num)
 
template<typename IntType , typename EnumType >
void to_variant (const enum_type< IntType, EnumType > &var, variant &vo, uint32_t max_depth=1)
 
template<typename IntType , typename EnumType >
void from_variant (const variant &var, enum_type< IntType, EnumType > &vo, uint32_t max_depth)
 
void read_file_contents (const fc::path &filename, std::string &result)
 
fc::istreamgetline (fc::istream &, std::string &, char delim= '\n')
 
template<size_t N>
ostreamoperator<< (ostream &o, char(&array)[N])
 
ostreamoperator<< (ostream &o, char)
 
ostreamoperator<< (ostream &o, const char *v)
 
ostreamoperator<< (ostream &o, const std::string &v)
 
ostreamoperator<< (ostream &o, const double &v)
 
ostreamoperator<< (ostream &o, const float &v)
 
ostreamoperator<< (ostream &o, const int64_t &v)
 
ostreamoperator<< (ostream &o, const uint64_t &v)
 
ostreamoperator<< (ostream &o, const int32_t &v)
 
ostreamoperator<< (ostream &o, const uint32_t &v)
 
ostreamoperator<< (ostream &o, const int16_t &v)
 
ostreamoperator<< (ostream &o, const uint16_t &v)
 
ostreamoperator<< (ostream &o, const int8_t &v)
 
ostreamoperator<< (ostream &o, const uint8_t &v)
 
ostreamoperator<< (ostream &o, const size_t &v)
 
istreamoperator>> (istream &o, std::string &v)
 
istreamoperator>> (istream &o, char &v)
 
istreamoperator>> (istream &o, double &v)
 
istreamoperator>> (istream &o, float &v)
 
istreamoperator>> (istream &o, int64_t &v)
 
istreamoperator>> (istream &o, uint64_t &v)
 
istreamoperator>> (istream &o, int32_t &v)
 
istreamoperator>> (istream &o, uint32_t &v)
 
istreamoperator>> (istream &o, int16_t &v)
 
istreamoperator>> (istream &o, uint16_t &v)
 
istreamoperator>> (istream &o, int8_t &v)
 
istreamoperator>> (istream &o, uint8_t &v)
 
void to_variant (const unsigned_int &var, variant &vo, uint32_t max_depth=1)
 
void from_variant (const variant &var, unsigned_int &vo, uint32_t max_depth=1)
 
void to_variant (log_level e, variant &v, uint32_t max_depth=1)
 
void from_variant (const variant &e, log_level &ll, uint32_t max_depth=1)
 
void to_variant (const log_context &l, variant &v, uint32_t max_depth)
 
void from_variant (const variant &l, log_context &c, uint32_t max_depth)
 
void to_variant (const log_message &l, variant &v, uint32_t max_depth)
 
void from_variant (const variant &l, log_message &c, uint32_t max_depth)
 
void configure_logging (const fc::path &log_config)
 
bool configure_logging (const logging_config &l)
 
void to_variant (const ip::endpoint &var, variant &vo, uint32_t _max_depth=2)
 
void from_variant (const variant &var, ip::endpoint &vo, uint32_t _max_depth=2)
 
void to_variant (const ip::address &var, variant &vo, uint32_t _max_depth=1)
 
void from_variant (const variant &var, ip::address &vo, uint32_t _max_depth=1)
 
std::vector< fc::ip::endpointresolve (const std::string &host, uint16_t port)
 
void to_variant (const url &u, fc::variant &v, uint32_t max_depth=1)
 
void from_variant (const fc::variant &v, url &u, uint32_t max_depth=1)
 
bool assert_optional (bool is_valid)
 
template<typename T >
bool operator== (const optional< T > &left, const optional< T > &right)
 
template<typename T , typename U >
bool operator== (const optional< T > &left, const U &u)
 
template<typename T >
bool operator!= (const optional< T > &left, const optional< T > &right)
 
template<typename T , typename U >
bool operator!= (const optional< T > &left, const U &u)
 
uint8_t popcount (uint64_t v)
 
uint8_t popcount (const fc::uint128_t &v)
 
void throw_bad_enum_cast (int64_t i, const char *e)
 
void throw_bad_enum_cast (const char *k, const char *e)
 
template<typename T >
void to_variant (const T &o, variant &v, uint32_t max_depth)
 
template<typename T >
void from_variant (const variant &v, T &o, uint32_t max_depth)
 
template<typename T >
wait (boost::signals2::signal< void(T)> &sig, const microseconds &timeout_us=microseconds::maximum())
 
void wait (boost::signals2::signal< void()> &sig, const microseconds &timeout_us=microseconds::maximum())
 
void print_stacktrace (std::ostream &out)
 
void print_stacktrace_on_segfault ()
 
template<typename... T>
void to_variant (const fc::static_variant< T... > &s, fc::variant &v, uint32_t max_depth)
 
template<typename... T>
void from_variant (const fc::variant &v, fc::static_variant< T... > &s, uint32_t max_depth)
 
int64_t to_int64 (const std::string &)
 
uint64_t to_uint64 (const std::string &)
 
double to_double (const std::string &)
 
std::string to_string (double)
 
std::string to_string (uint64_t)
 
std::string to_string (int64_t)
 
std::string to_string (uint16_t)
 
std::string to_pretty_string (int64_t)
 
std::string to_string (int32_t v)
 
std::string to_string (uint32_t v)
 
std::string format_string (const std::string &, const variant_object &, uint32_t max_object_depth=200)
 
std::string trim (const std::string &)
 
std::string to_lower (const std::string &)
 
string trim_and_normalize_spaces (const string &s)
 
uint64_t parse_size (const string &s)
 
template<typename Functor >
auto do_parallel (Functor &&f, const char *desc FC_TASK_NAME_DEFAULT_ARG) -> fc::future< decltype(f())>
 
void yield ()
 
void usleep (const microseconds &u)
 
void sleep_until (const time_point &tp)
 
void exec ()
 
template<typename T1 , typename T2 >
int wait_any (const fc::future< T1 > &f1, const fc::future< T2 > &f2, const microseconds timeout_us=microseconds::maximum())
 
int wait_any (std::vector< promise_base::ptr > &&v, const microseconds &timeout_us=microseconds::maximum())
 
int wait_any_until (std::vector< promise_base::ptr > &&v, const time_point &tp)
 
template<typename Functor >
auto async (Functor &&f, const char *desc FC_TASK_NAME_DEFAULT_ARG, priority prio=priority()) -> fc::future< decltype(f())>
 
template<typename Functor >
auto schedule (Functor &&f, const fc::time_point &t, const char *desc FC_TASK_NAME_DEFAULT_ARG, priority prio=priority()) -> fc::future< decltype(f())>
 
template<typename Functor >
auto sync_call (thread *t, Functor &&f, const char *desc FC_TASK_NAME_DEFAULT_ARG, priority prio=priority()) -> decltype(f())
 
microseconds seconds (int64_t s)
 
microseconds milliseconds (int64_t s)
 
microseconds minutes (int64_t m)
 
microseconds hours (int64_t h)
 
microseconds days (int64_t d)
 
void to_variant (const fc::microseconds &, fc::variant &, uint32_t max_depth=1)
 
void from_variant (const fc::variant &, fc::microseconds &, uint32_t max_depth=1)
 
std::string get_approximate_relative_time_string (const time_point_sec &event_time, const time_point_sec &relative_to_time=fc::time_point::now(), const std::string &ago=" ago")
 
std::string get_approximate_relative_time_string (const time_point &event_time, const time_point &relative_to_time=fc::time_point::now(), const std::string &ago=" ago")
 
uint64_t uint128_lo64 (const uint128_t &x)
 
uint64_t uint128_hi64 (const uint128_t &x)
 
uint128_t uint128 (const uint64_t hi, const uint64_t lo)
 
std::string prune_invalid_utf8 (const std::string &str)
 
bool is_utf8 (const std::string &str)
 
void decodeUtf8 (const std::string &input, std::wstring *storage)
 
void encodeUtf8 (const std::wstring &input, std::string *storage)
 
void throw_assertion_failure (const std::string &message)
 
void to_variant (const blob &var, variant &vo, uint32_t max_depth=1)
 
void from_variant (const variant &var, blob &vo, uint32_t max_depth=1)
 
template<typename T , typename... Args>
void to_variant (const boost::multi_index_container< T, Args... > &s, variant &v, uint32_t max_depth)
 
template<typename T , typename... Args>
void from_variant (const variant &v, boost::multi_index_container< T, Args... > &s, uint32_t max_depth)
 
template<typename T >
void to_variant (const safe< T > &s, variant &v, uint32_t max_depth)
 
template<typename T >
void from_variant (const variant &v, safe< T > &s, uint32_t max_depth)
 
template<typename T >
void to_variant (const std::unique_ptr< T > &s, variant &v, uint32_t max_depth)
 
template<typename T >
void from_variant (const variant &v, std::unique_ptr< T > &s, uint32_t max_depth)
 
void to_variant (const uint8_t &var, variant &vo, uint32_t max_depth=1)
 
void from_variant (const variant &var, uint8_t &vo, uint32_t max_depth=1)
 
void to_variant (const int8_t &var, variant &vo, uint32_t max_depth=1)
 
void from_variant (const variant &var, int8_t &vo, uint32_t max_depth=1)
 
void to_variant (const uint16_t &var, variant &vo, uint32_t max_depth=1)
 
void from_variant (const variant &var, uint16_t &vo, uint32_t max_depth=1)
 
void to_variant (const int16_t &var, variant &vo, uint32_t max_depth=1)
 
void from_variant (const variant &var, int16_t &vo, uint32_t max_depth=1)
 
void to_variant (const uint32_t &var, variant &vo, uint32_t max_depth=1)
 
void from_variant (const variant &var, uint32_t &vo, uint32_t max_depth=1)
 
void to_variant (const int32_t &var, variant &vo, uint32_t max_depth=1)
 
void from_variant (const variant &var, int32_t &vo, uint32_t max_depth=1)
 
void to_variant (const uint64_t &var, variant &vo, uint32_t max_depth=1)
 
void to_variant (const int64_t &var, variant &vo, uint32_t max_depth=1)
 
void to_variant (const bool &var, variant &vo, uint32_t max_depth=1)
 
void to_variant (const variant_object &var, variant &vo, uint32_t max_depth)
 
void from_variant (const variant &var, variant_object &vo, uint32_t max_depth)
 
void to_variant (const mutable_variant_object &var, variant &vo, uint32_t max_depth)
 
void from_variant (const variant &var, mutable_variant_object &vo, uint32_t max_depth)
 
void to_variant (const std::vector< char > &var, variant &vo, uint32_t max_depth=1)
 
void from_variant (const variant &var, std::vector< char > &vo, uint32_t max_depth=1)
 
template<typename K , typename T >
void to_variant (const std::unordered_map< K, T > &var, variant &vo, uint32_t max_depth)
 
template<typename K , typename T >
void from_variant (const variant &var, std::unordered_map< K, T > &vo, uint32_t max_depth)
 
template<typename K , typename T >
void to_variant (const std::map< K, T > &var, variant &vo, uint32_t max_depth)
 
template<typename K , typename T >
void from_variant (const variant &var, std::map< K, T > &vo, uint32_t max_depth)
 
template<typename K , typename T >
void to_variant (const std::multimap< K, T > &var, variant &vo, uint32_t max_depth)
 
template<typename K , typename T >
void from_variant (const variant &var, std::multimap< K, T > &vo, uint32_t max_depth)
 
template<typename T >
void to_variant (const std::unordered_set< T > &var, variant &vo, uint32_t max_depth)
 
template<typename T >
void from_variant (const variant &var, std::unordered_set< T > &vo, uint32_t max_depth)
 
template<typename T >
void to_variant (const std::deque< T > &var, variant &vo, uint32_t max_depth)
 
template<typename T >
void from_variant (const variant &var, std::deque< T > &vo, uint32_t max_depth)
 
template<typename T >
void to_variant (const std::set< T > &var, variant &vo, uint32_t max_depth)
 
template<typename T >
void from_variant (const variant &var, std::set< T > &vo, uint32_t max_depth)
 
void to_variant (const time_point &var, variant &vo, uint32_t max_depth)
 
void from_variant (const variant &var, time_point &vo, uint32_t max_depth)
 
void to_variant (const time_point_sec &var, variant &vo, uint32_t max_depth)
 
void from_variant (const variant &var, time_point_sec &vo, uint32_t max_depth)
 
void to_variant (const uint128_t &var, variant &vo, uint32_t max_depth=1)
 
void from_variant (const variant &var, uint128_t &vo, uint32_t max_depth=1)
 
void to_variant (long long int s, variant &v, uint32_t max_depth=1)
 
void to_variant (unsigned long long int s, variant &v, uint32_t max_depth=1)
 
void to_variant (const std::string &s, variant &v, uint32_t max_depth=1)
 
template<typename T >
void to_variant (const std::shared_ptr< T > &var, variant &vo, uint32_t max_depth)
 
template<typename T >
void from_variant (const variant &var, std::shared_ptr< T > &vo, uint32_t max_depth)
 
template<typename A , typename B >
void to_variant (const std::pair< A, B > &t, variant &v, uint32_t max_depth)
 
template<typename A , typename B >
void from_variant (const variant &v, std::pair< A, B > &p, uint32_t max_depth)
 
template<boost::endian::order O, class T , std::size_t N, boost::endian::align A>
void to_variant (const boost::endian::endian_buffer< O, T, N, A > &var, variant &vo, uint32_t max_depth)
 
template<boost::endian::order O, class T , std::size_t N, boost::endian::align A>
void from_variant (const variant &var, boost::endian::endian_buffer< O, T, N, A > &vo, uint32_t max_depth)
 
void from_variant (const variant &var, std::string &vo, uint32_t max_depth=1)
 
void from_variant (const variant &var, variants &vo, uint32_t max_depth)
 
void from_variant (const variant &var, variant &vo, uint32_t max_depth)
 
void from_variant (const variant &var, int64_t &vo, uint32_t max_depth=1)
 
void from_variant (const variant &var, uint64_t &vo, uint32_t max_depth=1)
 
void from_variant (const variant &var, bool &vo, uint32_t max_depth=1)
 
void from_variant (const variant &var, double &vo, uint32_t max_depth=1)
 
void from_variant (const variant &var, float &vo, uint32_t max_depth=1)
 
template<typename T >
void from_variant (const variant &var, optional< T > &vo, uint32_t max_depth)
 
template<typename T >
void from_variant (const variant &var, std::vector< T > &dest, uint32_t max_depth)
 
template<typename T >
void to_variant (const std::vector< T > &t, variant &v, uint32_t max_depth)
 
template<size_t N>
void to_variant (const std::array< char, N > &bi, variant &v, uint32_t max_depth=1)
 
template<size_t N>
void from_variant (const variant &v, std::array< char, N > &bi, uint32_t max_depth=1)
 
template<size_t N>
void to_variant (const std::array< unsigned char, N > &bi, variant &v, uint32_t max_depth=1)
 
template<size_t N>
void from_variant (const variant &v, std::array< unsigned char, N > &bi, uint32_t max_depth=1)
 
variant operator+ (const variant &a, const variant &b)
 
variant operator- (const variant &a, const variant &b)
 
variant operator* (const variant &a, const variant &b)
 
variant operator/ (const variant &a, const variant &b)
 
bool operator== (const variant &a, const variant &b)
 
bool operator!= (const variant &a, const variant &b)
 
bool operator< (const variant &a, const variant &b)
 
bool operator> (const variant &a, const variant &b)
 
bool operator! (const variant &a)
 
const std::string & base64_chars ()
 
uint64_t Hash128to64 (const uint128_t &x)
 
uint64_t CityHash64WithSeeds (const char *s, size_t len, uint64_t seed0, uint64_t seed1)
 
uint64_t CityHash64WithSeed (const char *s, size_t len, uint64_t seed)
 
uint128_t CityMurmur (const char *s, size_t len, uint128_t seed)
 
uint128_t CityHash128WithSeed (const char *s, size_t len, uint128_t seed)
 
uint128_t city_hash128 (const char *s, size_t len)
 
void CityHashCrc256 (const char *s, size_t len, uint64_t *result)
 
array< uint64_t, 4 > city_hash_crc_256 (const char *s, size_t len)
 
uint128_t CityHashCrc128WithSeed (const char *s, size_t len, uint128_t seed)
 
hash160 operator<< (const hash160 &h1, uint32_t i)
 
hash160 operator^ (const hash160 &h1, const hash160 &h2)
 
bool operator>= (const hash160 &h1, const hash160 &h2)
 
bool operator> (const hash160 &h1, const hash160 &h2)
 
bool operator< (const hash160 &h1, const hash160 &h2)
 
bool operator!= (const hash160 &h1, const hash160 &h2)
 
bool operator== (const hash160 &h1, const hash160 &h2)
 
ripemd160 operator<< (const ripemd160 &h1, uint32_t i)
 
ripemd160 operator^ (const ripemd160 &h1, const ripemd160 &h2)
 
bool operator>= (const ripemd160 &h1, const ripemd160 &h2)
 
bool operator> (const ripemd160 &h1, const ripemd160 &h2)
 
bool operator< (const ripemd160 &h1, const ripemd160 &h2)
 
bool operator!= (const ripemd160 &h1, const ripemd160 &h2)
 
bool operator== (const ripemd160 &h1, const ripemd160 &h2)
 
sha1 operator<< (const sha1 &h1, uint32_t i)
 
sha1 operator^ (const sha1 &h1, const sha1 &h2)
 
bool operator>= (const sha1 &h1, const sha1 &h2)
 
bool operator> (const sha1 &h1, const sha1 &h2)
 
bool operator< (const sha1 &h1, const sha1 &h2)
 
bool operator!= (const sha1 &h1, const sha1 &h2)
 
bool operator== (const sha1 &h1, const sha1 &h2)
 
sha224 operator<< (const sha224 &h1, uint32_t i)
 
sha224 operator^ (const sha224 &h1, const sha224 &h2)
 
bool operator>= (const sha224 &h1, const sha224 &h2)
 
bool operator> (const sha224 &h1, const sha224 &h2)
 
bool operator< (const sha224 &h1, const sha224 &h2)
 
bool operator!= (const sha224 &h1, const sha224 &h2)
 
bool operator== (const sha224 &h1, const sha224 &h2)
 
sha256 operator<< (const sha256 &h1, uint32_t i)
 
sha256 operator>> (const sha256 &h1, uint32_t i)
 
sha256 operator^ (const sha256 &h1, const sha256 &h2)
 
bool operator>= (const sha256 &h1, const sha256 &h2)
 
bool operator> (const sha256 &h1, const sha256 &h2)
 
bool operator< (const sha256 &h1, const sha256 &h2)
 
bool operator!= (const sha256 &h1, const sha256 &h2)
 
bool operator== (const sha256 &h1, const sha256 &h2)
 
sha512 operator<< (const sha512 &h1, uint32_t i)
 
sha512 operator^ (const sha512 &h1, const sha512 &h2)
 
bool operator>= (const sha512 &h1, const sha512 &h2)
 
bool operator> (const sha512 &h1, const sha512 &h2)
 
bool operator< (const sha512 &h1, const sha512 &h2)
 
bool operator!= (const sha512 &h1, const sha512 &h2)
 
bool operator== (const sha512 &h1, const sha512 &h2)
 
 FC_IMPLEMENT_EXCEPTION (method_not_found_exception, method_not_found_exception_code,"Method Not Found")
 
() file_not_found_exception() parse_error_exception() invalid_arg_exception() invalid_operation_exception() key_not_found_exception() bad_cast_exception() out_of_range_exception() canceled_exception() assert_exception() eof_exception() unknown_host_exception() null_optional() aes_exception() overflow_exception() underflow_exception (divide_by_zero_exception)) namespace detail
 
bool operator< (const fc::path &l, const fc::path &r)
 
bool operator== (const fc::path &l, const fc::path &r)
 
bool operator!= (const fc::path &l, const fc::path &r)
 
path operator/ (const fc::path &p, const fc::path &o)
 
bool operator== (const directory_iterator &r, const directory_iterator &l)
 
bool operator!= (const directory_iterator &r, const directory_iterator &l)
 
bool operator== (const recursive_directory_iterator &r, const recursive_directory_iterator &l)
 
bool operator!= (const recursive_directory_iterator &r, const recursive_directory_iterator &l)
 
cin_bufferget_cin_buffer ()
 
fc::threadcin_thread ()
 
template<typename T , json::parse_type parser_type>
variant variant_from_stream (T &in, uint32_t max_depth)
 
template<typename T >
char parseEscape (T &in)
 
template<typename T >
std::string stringFromStream (T &in)
 
template<typename T >
bool skip_white_space (T &in)
 
template<typename T >
std::string stringFromToken (T &in)
 
template<typename T >
variant_object objectFromStreamBase (T &in, std::function< std::string(T &)> &get_key, std::function< variant(T &)> &get_value)
 
template<typename T , json::parse_type parser_type>
variant_object objectFromStream (T &in, uint32_t max_depth)
 
template<typename T >
variants arrayFromStreamBase (T &in, std::function< variant(T &)> &get_value)
 
template<typename T , json::parse_type parser_type>
variants arrayFromStream (T &in, uint32_t max_depth)
 
template<typename T , json::parse_type parser_type>
variant number_from_stream (T &in)
 
template<typename T >
variant token_from_stream (T &in)
 
void escape_string (const string &str, ostream &os)
 
template<typename T >
void to_stream (T &os, const variants &a, json::output_formatting format, uint32_t max_depth)
 
template<typename T >
void to_stream (T &os, const variant_object &o, json::output_formatting format, uint32_t max_depth)
 
template<typename T >
void to_stream (T &os, const variant &v, json::output_formatting format, uint32_t max_depth)
 
std::string pretty_print (const std::string &v, uint8_t indent)
 
std::unordered_map< std::string, appender::ptr > & get_appender_map ()
 
std::unordered_map< std::string, appender_factory::ptr > & get_appender_factory_map ()
 
boost::mutex & log_mutex ()
 
bool operator== (const logger &l, std::nullptr_t)
 
bool operator!= (const logger &l, std::nullptr_t)
 
std::unordered_map< std::string, logger > & get_logger_map ()
 
boost::asio::ip::udp::endpoint to_asio_ep (const fc::ip::endpoint &e)
 
fc::ip::endpoint to_fc_ep (const boost::asio::ip::udp::endpoint &e)
 
std::shared_ptr< detail::url_implget_null_url ()
 
string format_string (const string &format, const variant_object &args, uint32_t max_object_depth)
 
const char * thread_name ()
 
void * thread_ptr ()
 
thread *& current_thread ()
 
string prune_invalid_utf8 (const string &str)
 
void set_variant_type (variant *v, variant::type_id t)
 
void from_variant (const variant &var, string &vo, uint32_t max_depth)
 
bool operator<= (const variant &a, const variant &b)
 
void to_variant (const graphene::protocol::address &var, variant &vo, uint32_t max_depth)
 
void from_variant (const variant &var, graphene::protocol::address &vo, uint32_t max_depth)
 
template<typename T >
void from_variant (const fc::variant &var, graphene::protocol::extension< T > &value, uint32_t max_depth)
 
template<typename T >
void to_variant (const graphene::protocol::extension< T > &value, fc::variant &var, uint32_t max_depth)
 
void to_variant (const graphene::db::object_id_type &var, fc::variant &vo, uint32_t max_depth=1)
 
void from_variant (const fc::variant &var, graphene::db::object_id_type &vo, uint32_t max_depth=1)
 
template<uint8_t SpaceID, uint8_t TypeID>
void to_variant (const graphene::db::object_id< SpaceID, TypeID > &var, fc::variant &vo, uint32_t max_depth=1)
 
template<uint8_t SpaceID, uint8_t TypeID>
void from_variant (const fc::variant &var, graphene::db::object_id< SpaceID, TypeID > &vo, uint32_t max_depth=1)
 
void to_variant (const graphene::protocol::pts_address &var, fc::variant &vo, uint32_t max_depth=1)
 
void from_variant (const fc::variant &var, graphene::protocol::pts_address &vo, uint32_t max_depth=1)
 
void to_variant (const graphene::protocol::public_key_type &var, fc::variant &vo, uint32_t max_depth=2)
 
void from_variant (const fc::variant &var, graphene::protocol::public_key_type &vo, uint32_t max_depth=2)
 
void from_variant (const fc::variant &var, std::shared_ptr< const graphene::protocol::fee_schedule > &vo, uint32_t max_depth=2)
 
void to_variant (const graphene::protocol::vote_id_type &var, fc::variant &vo, uint32_t max_depth=1)
 
void from_variant (const fc::variant &var, graphene::protocol::vote_id_type &vo, uint32_t max_depth=1)
 
void to_variant (const account_multi_index_type &accts, variant &vo, uint32_t max_depth)
 
void from_variant (const variant &var, account_multi_index_type &vo, uint32_t max_depth)
 

Variables

bool enable_record_assert_trip = false
 
const char *const git_revision_sha
 
const uint32_t git_revision_unix_timestamp
 
cout_tcout = *cout_ptr
 
cerr_tcerr = *cerr_ptr
 
cin_tcin = *cin_ptr
 
std::shared_ptr< cin_tcin_ptr = std::make_shared<cin_t>()
 
std::shared_ptr< cout_tcout_ptr = std::make_shared<cout_t>()
 
std::shared_ptr< cerr_tcerr_ptr = std::make_shared<cerr_t>()
 
openssl_thread_config openssl_thread_config_manager
 
bool do_default_config = configure_logging( logging_config::default_config() )
 

Detailed Description

This source adapted from https://github.com/kmicklas/variadic-static_variant. Now available at https://github.com/kmicklas/variadic-variant.

Copyright (C) 2013 Kenneth Micklas

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Implemented with std::string for now.

Typedef Documentation

typedef uint32_t fc::api_id_type

Definition at line 122 of file api.hpp.

typedef std::shared_ptr< api_base > fc::api_ptr

Definition at line 140 of file api.hpp.

typedef std::shared_ptr<buffered_istream> fc::buffered_istream_ptr

Definition at line 46 of file buffered_iostream.hpp.

typedef std::shared_ptr<buffered_ostream> fc::buffered_ostream_ptr

Definition at line 72 of file buffered_iostream.hpp.

typedef const blob* fc::const_blob_ptr

Definition at line 178 of file variant.cpp.

typedef const string* fc::const_string_ptr

Definition at line 179 of file variant.cpp.

Definition at line 176 of file variant.cpp.

Definition at line 177 of file variant.cpp.

typedef std::shared_ptr<exception> fc::exception_ptr

Definition at line 131 of file exception.hpp.

Definition at line 57 of file hmac.hpp.

Definition at line 58 of file hmac.hpp.

Definition at line 59 of file hmac.hpp.

typedef std::shared_ptr<istream> fc::istream_ptr

Definition at line 35 of file iostream.hpp.

typedef std::vector<log_message> fc::log_messages

Definition at line 132 of file log_message.hpp.

Definition at line 133 of file exception.hpp.

Definition at line 11 of file url.hpp.

typedef std::shared_ptr<ostream> fc::ostream_ptr

Definition at line 59 of file iostream.hpp.

typedef fc::optional< std::string > fc::ostring

Definition at line 10 of file url.hpp.

Definition at line 125 of file time.hpp.

Definition at line 376 of file variant.hpp.

Definition at line 12 of file url.hpp.

Definition at line 38 of file rate_limiting.hpp.

using fc::scoped_connection = typedef boost::signals2::scoped_connection

Definition at line 22 of file signals.hpp.

template<typename T >
using fc::signal = typedef boost::signals2::signal<T>

Definition at line 20 of file signals.hpp.

typedef std::shared_ptr<tcp_socket> fc::tcp_socket_ptr

Definition at line 61 of file tcp_socket.hpp.

Definition at line 93 of file ripemd160.hpp.

Definition at line 92 of file ripemd160.hpp.

Definition at line 88 of file sha256.hpp.

Definition at line 84 of file sha512.hpp.

typedef std::vector<variant> fc::variants

Definition at line 170 of file variant.hpp.

Enumeration Type Documentation

Enumerator
unspecified_exception_code 

for exceptions we threw that don't have an assigned code

unhandled_exception_code 

for unhandled 3rd party exceptions

timeout_exception_code 

timeout exceptions

file_not_found_exception_code 
parse_error_exception_code 
invalid_arg_exception_code 
key_not_found_exception_code 
bad_cast_exception_code 
out_of_range_exception_code 
canceled_exception_code 
assert_exception_code 
eof_exception_code 
std_exception_code 
invalid_operation_exception_code 
unknown_host_exception_code 
null_optional_code 
aes_error_code 
overflow_code 
underflow_code 
divide_by_zero_code 
method_not_found_exception_code 

Definition at line 16 of file exception.hpp.

enum fc::mode_t
Enumerator
read_only 
write_only 
read_write 

Definition at line 13 of file file_mapping.hpp.

Function Documentation

fc::path fc::absolute ( const path p)

Definition at line 341 of file filesystem.cpp.

unsigned fc::aes_cfb_decrypt ( unsigned char *  ciphertext,
int  ciphertext_len,
unsigned char *  key,
unsigned char *  iv,
unsigned char *  plaintext 
)

Definition at line 279 of file aes.cpp.

unsigned fc::aes_decrypt ( unsigned char *  ciphertext,
int  ciphertext_len,
unsigned char *  key,
unsigned char *  iv,
unsigned char *  plaintext 
)

Definition at line 230 of file aes.cpp.

std::vector< char > fc::aes_decrypt ( const fc::sha512 key,
const std::vector< char > &  cipher_text 
)

Definition at line 339 of file aes.cpp.

unsigned fc::aes_encrypt ( unsigned char *  plaintext,
int  plaintext_len,
unsigned char *  key,
unsigned char *  iv,
unsigned char *  ciphertext 
)

example method from wiki.opensslfoundation.com

Definition at line 181 of file aes.cpp.

std::vector< char > fc::aes_encrypt ( const fc::sha512 key,
const std::vector< char > &  plain_text 
)

Definition at line 328 of file aes.cpp.

std::vector< char > fc::aes_load ( const fc::path file,
const fc::sha512 key 
)

recovers the plain_text saved via aes_save()

Definition at line 369 of file aes.cpp.

void fc::aes_save ( const fc::path file,
const fc::sha512 key,
std::vector< char >  plain_text 
)

encrypts plain_text and then includes a checksum that enables us to verify the integrety of the file / key prior to decryption.

Definition at line 353 of file aes.cpp.

const fc::path & fc::app_path ( )
Returns
the home_path() on Linux, home_path()/Library/Application Support/ on OS X, and APPDATA on windows

Definition at line 480 of file filesystem.cpp.

template<typename T , json::parse_type parser_type>
variants fc::arrayFromStream ( T &  in,
uint32_t  max_depth 
)

Definition at line 266 of file json.cpp.

template<typename T >
variants fc::arrayFromStreamBase ( T &  in,
std::function< variant(T &)> &  get_value 
)

Definition at line 236 of file json.cpp.

bool fc::assert_optional ( bool  is_valid)

Definition at line 290 of file exception.cpp.

template<typename Functor >
auto fc::async ( Functor &&  f,
const char *desc  FC_TASK_NAME_DEFAULT_ARG,
priority  prio = priority() 
) -> fc::future<decltype(f())>

Definition at line 227 of file thread.hpp.

const std::string& fc::base64_chars ( )
inline

Definition at line 32 of file base64.cpp.

std::string fc::base64_decode ( const std::string &  encoded_string)

Definition at line 96 of file base64.cpp.

std::string fc::base64_encode ( unsigned char const *  bytes_to_encode,
unsigned int  in_len 
)

Definition at line 51 of file base64.cpp.

std::string fc::base64_encode ( char const *  bytes_to_encode,
unsigned int  in_len 
)
inline

Definition at line 6 of file base64.hpp.

std::string fc::base64_encode ( const std::string &  enc)

Definition at line 47 of file base64.cpp.

fc::path fc::canonical ( const path p)

Definition at line 334 of file filesystem.cpp.

template<uint64_t RequiredSize, uint64_t ProvidedSize>
void fc::check_size ( )

Definition at line 60 of file fwd_impl.hpp.

void fc::chmod ( const path p,
int  perm 
)

Definition at line 278 of file filesystem.cpp.

fc::thread& fc::cin_thread ( )

Definition at line 76 of file iostream.cpp.

uint128_t fc::city_hash128 ( const char *  s,
size_t  len 
)

Definition at line 516 of file city.cpp.

uint32_t fc::city_hash32 ( const char *  buf,
size_t  len 
)

Definition at line 198 of file city.cpp.

uint64_t fc::city_hash64 ( const char *  buf,
size_t  len 
)

Definition at line 375 of file city.cpp.

uint128_t fc::city_hash_crc_128 ( const char *  s,
size_t  len 
)

Definition at line 649 of file city.cpp.

array<uint64_t,4> fc::city_hash_crc_256 ( const char *  s,
size_t  len 
)

Definition at line 630 of file city.cpp.

size_t fc::city_hash_size_t ( const char *  buf,
size_t  len 
)
inline

Definition at line 59 of file city.hpp.

uint128_t fc::CityHash128WithSeed ( const char *  s,
size_t  len,
uint128_t  seed 
)

Definition at line 454 of file city.cpp.

uint64_t fc::CityHash64WithSeed ( const char *  s,
size_t  len,
uint64_t  seed 
)

Definition at line 418 of file city.cpp.

uint64_t fc::CityHash64WithSeeds ( const char *  s,
size_t  len,
uint64_t  seed0,
uint64_t  seed1 
)

Definition at line 413 of file city.cpp.

uint128_t fc::CityHashCrc128WithSeed ( const char *  s,
size_t  len,
uint128_t  seed 
)

Definition at line 637 of file city.cpp.

void fc::CityHashCrc256 ( const char *  s,
size_t  len,
uint64_t *  result 
)

Definition at line 622 of file city.cpp.

uint128_t fc::CityMurmur ( const char *  s,
size_t  len,
uint128_t  seed 
)

Definition at line 424 of file city.cpp.

void fc::configure_logging ( const fc::path log_config)

Definition at line 18 of file logger_config.cpp.

bool fc::configure_logging ( const logging_config l)

Definition at line 22 of file logger_config.cpp.

void fc::copy ( const path from,
const path to 
)

Definition at line 241 of file filesystem.cpp.

template<typename T >
fc::exception_ptr fc::copy_exception ( T &&  e)

Definition at line 165 of file exception.hpp.

void fc::create_directories ( const path p)

Definition at line 210 of file filesystem.cpp.

void fc::create_hard_link ( const path from,
const path to 
)

Definition at line 319 of file filesystem.cpp.

const fc::path & fc::current_path ( )
Returns
application executable path

Definition at line 498 of file filesystem.cpp.

thread*& fc::current_thread ( )

Definition at line 65 of file thread.cpp.

microseconds fc::days ( int64_t  d)
inline

Definition at line 38 of file time.hpp.

void fc::decodeUtf8 ( const std::string &  input,
std::wstring *  storage 
)

Decodes utf 8 std::string into unicode string.

Parameters
input- input string to be decoded and stored in 'storage'
storage- buffer for converted text. Cannot be nullptr.

Definition at line 35 of file utf8.cpp.

template<typename T >
fc::sha256 fc::digest ( const T &  value)

Definition at line 9 of file digest.hpp.

uint64_t fc::directory_size ( const path p)

Definition at line 221 of file filesystem.cpp.

template<typename Functor >
auto fc::do_parallel ( Functor &&  f,
const char *desc  FC_TASK_NAME_DEFAULT_ARG 
) -> fc::future<decltype(f())>

Calls function f in a separate thread and returns a future that can be used to wait on the result.

Parameters
fthe operation to perform

Definition at line 97 of file parallel.hpp.

void fc::encodeUtf8 ( const std::wstring &  input,
std::string *  storage 
)

Encodes given wide (unicode) string into UTF-8 representation.

Parameters
input- input string to be encoded and stored in 'storage'
storage- buffer for converted text. Cannot be nullptr.

Definition at line 42 of file utf8.cpp.

void fc::escape_string ( const string &  str,
ostream os 
)

Convert '', '', '
', '\' and '"' to "\t\a\n\\\""

All other characters are printed as UTF8.

Definition at line 482 of file json.cpp.

std::string fc::except_str ( )

Definition at line 272 of file exception.cpp.

void fc::exec ( )

Enters the main loop processing tasks until quit() is called.

Definition at line 375 of file thread.cpp.

bool fc::exists ( const path p)

Definition at line 209 of file filesystem.cpp.

fc::FC_DECLARE_EXCEPTION ( timeout_exception  ,
timeout_exception_code   
)
fc::FC_DECLARE_EXCEPTION ( file_not_found_exception  ,
file_not_found_exception_code   
)
fc::FC_DECLARE_EXCEPTION ( parse_error_exception  ,
parse_error_exception_code   
)

reports parse errors

fc::FC_DECLARE_EXCEPTION ( invalid_arg_exception  ,
invalid_arg_exception_code   
)
fc::FC_DECLARE_EXCEPTION ( key_not_found_exception  ,
key_not_found_exception_code   
)

reports when a key, guid, or other item is not found.

fc::FC_DECLARE_EXCEPTION ( bad_cast_exception  ,
bad_cast_exception_code   
)
fc::FC_DECLARE_EXCEPTION ( out_of_range_exception  ,
out_of_range_exception_code   
)
fc::FC_DECLARE_EXCEPTION ( method_not_found_exception  ,
method_not_found_exception_code   
)
fc::FC_DECLARE_EXCEPTION ( invalid_operation_exception  ,
invalid_operation_exception_code   
)

if an operation is unsupported or not valid this may be thrown

fc::FC_DECLARE_EXCEPTION ( unknown_host_exception  ,
unknown_host_exception_code   
)

if an host name can not be resolved this may be thrown

fc::FC_DECLARE_EXCEPTION ( canceled_exception  ,
canceled_exception_code   
)

used to report a canceled Operation

fc::FC_DECLARE_EXCEPTION ( assert_exception  ,
assert_exception_code   
)

used inplace of assert() to report violations of pre conditions.

fc::FC_DECLARE_EXCEPTION ( eof_exception  ,
eof_exception_code   
)
fc::FC_DECLARE_EXCEPTION ( null_optional  ,
null_optional_code   
)
fc::FC_DECLARE_EXCEPTION ( aes_exception  ,
aes_error_code   
)
fc::FC_DECLARE_EXCEPTION ( overflow_exception  ,
overflow_code   
)
fc::FC_DECLARE_EXCEPTION ( underflow_exception  ,
underflow_code   
)
fc::FC_DECLARE_EXCEPTION ( divide_by_zero_exception  ,
divide_by_zero_code   
)
fc::FC_IMPLEMENT_EXCEPTION ( method_not_found_exception  ,
method_not_found_exception_code  ,
"Method Not Found"   
)
uint64_t fc::file_size ( const path p)

Definition at line 219 of file filesystem.cpp.

std::string fc::format_string ( const std::string &  ,
const variant_object ,
uint32_t  max_object_depth = 200 
)
string fc::format_string ( const string &  format,
const variant_object args,
uint32_t  max_object_depth 
)

Definition at line 196 of file string.cpp.

std::vector< char > fc::from_base58 ( const std::string &  base58_str)

Definition at line 622 of file base58.cpp.

size_t fc::from_base58 ( const std::string &  base58_str,
char *  out_data,
size_t  out_data_len 
)
Returns
the number of bytes decoded

Definition at line 633 of file base58.cpp.

uint8_t fc::from_hex ( char  c)

Definition at line 6 of file hex.cpp.

size_t fc::from_hex ( const std::string &  hex_str,
char *  out_data,
size_t  out_data_len 
)
Returns
the number of bytes decoded

Definition at line 27 of file hex.cpp.

template<typename T >
void fc::from_variant ( const variant v,
T &  o,
uint32_t  max_depth 
)

Definition at line 108 of file variant.hpp.

void fc::from_variant ( const variant var,
account_multi_index_type vo,
uint32_t  max_depth 
)

Definition at line 1956 of file wallet.cpp.

void fc::from_variant ( const fc::variant input_variant,
fc::microseconds output_microseconds,
uint32_t  max_depth = 1 
)

Definition at line 140 of file time.cpp.

void fc::from_variant ( const variant var,
unsigned_int vo,
uint32_t  max_depth = 1 
)

Definition at line 7 of file varint.cpp.

void fc::from_variant ( const variant e,
log_level ll,
uint32_t  max_depth = 1 
)

Definition at line 137 of file log_message.cpp.

template<typename IntType , typename EnumType >
void fc::from_variant ( const variant var,
enum_type< IntType, EnumType > &  vo,
uint32_t  max_depth 
)

Definition at line 56 of file enum_type.hpp.

template<size_t N>
void fc::from_variant ( const variant v,
zero_initialized_array< unsigned char, N > &  bi,
uint32_t  max_depth = 1 
)

Definition at line 57 of file zeroed_array.hpp.

void fc::from_variant ( const fc::variant v,
url u,
uint32_t  max_depth = 1 
)

Definition at line 82 of file url.cpp.

void fc::from_variant ( const variant var,
blob vo,
uint32_t  max_depth = 1 
)
template<typename T , typename... Args>
void fc::from_variant ( const variant v,
boost::multi_index_container< T, Args... > &  s,
uint32_t  max_depth 
)

Definition at line 653 of file variant.hpp.

template<typename T >
void fc::from_variant ( const variant v,
safe< T > &  s,
uint32_t  max_depth 
)

Definition at line 637 of file variant.hpp.

template<typename T >
void fc::from_variant ( const variant v,
std::unique_ptr< T > &  s,
uint32_t  max_depth 
)

Definition at line 619 of file variant.hpp.

void fc::from_variant ( const variant v,
bigint bi,
uint32_t  max_depth = 1 
)

decodes the big int as base64 string, or a number

Definition at line 222 of file bigint.cpp.

void fc::from_variant ( const variant var,
ip::endpoint vo,
uint32_t  _max_depth = 2 
)

Definition at line 144 of file ip.cpp.

void fc::from_variant ( const variant var,
uint8_t &  vo,
uint32_t  max_depth = 1 
)

Definition at line 599 of file variant.cpp.

void fc::from_variant ( const variant var,
int8_t &  vo,
uint32_t  max_depth = 1 
)

Definition at line 603 of file variant.cpp.

void fc::from_variant ( const variant var,
ip::address vo,
uint32_t  _max_depth = 1 
)

Definition at line 153 of file ip.cpp.

void fc::from_variant ( const variant var,
uint16_t &  vo,
uint32_t  max_depth = 1 
)

Definition at line 607 of file variant.cpp.

void fc::from_variant ( const fc::variant var,
graphene::protocol::pts_address vo,
uint32_t  max_depth = 1 
)

Definition at line 93 of file pts_address.cpp.

void fc::from_variant ( const variant var,
int16_t &  vo,
uint32_t  max_depth = 1 
)

Definition at line 611 of file variant.cpp.

void fc::from_variant ( const variant l,
log_context c,
uint32_t  max_depth 
)

Definition at line 99 of file log_message.cpp.

void fc::from_variant ( const variant v,
sha1 bi,
uint32_t  max_depth 
)

Definition at line 90 of file sha1.cpp.

void fc::from_variant ( const variant v,
sha224 bi,
uint32_t  max_depth 
)

Definition at line 86 of file sha224.cpp.

void fc::from_variant ( const variant var,
uint32_t &  vo,
uint32_t  max_depth = 1 
)

Definition at line 614 of file variant.cpp.

void fc::from_variant ( const variant v,
sha512 bi,
uint32_t  max_depth 
)

Definition at line 92 of file sha512.cpp.

void fc::from_variant ( const variant v,
ripemd160 bi,
uint32_t  max_depth 
)

Definition at line 106 of file ripemd160.cpp.

void fc::from_variant ( const variant var,
int32_t &  vo,
uint32_t  max_depth = 1 
)

Definition at line 620 of file variant.cpp.

void fc::from_variant ( const variant v,
sha256 bi,
uint32_t  max_depth 
)

Definition at line 106 of file sha256.cpp.

void fc::from_variant ( const variant var,
variant_object vo,
uint32_t  max_depth = 1 
)

Definition at line 170 of file variant_object.cpp.

void fc::from_variant ( const variant var,
mutable_variant_object vo,
uint32_t  max_depth = 1 
)

Definition at line 405 of file variant_object.cpp.

void fc::from_variant ( const variant var,
std::vector< char > &  vo,
uint32_t  max_depth = 1 
)

Definition at line 669 of file variant.cpp.

template<typename K , typename T >
void fc::from_variant ( const variant var,
std::unordered_map< K, T > &  vo,
uint32_t  max_depth 
)

Definition at line 438 of file variant.hpp.

void fc::from_variant ( const variant var,
graphene::protocol::address vo,
uint32_t  max_depth 
)

Definition at line 108 of file address.cpp.

void fc::from_variant ( const variant v,
hash160 bi,
uint32_t  max_depth 
)

Definition at line 135 of file hash160.cpp.

template<typename T , typename... A>
void fc::from_variant ( const variant var,
flat_set< T, A... > &  vo,
uint32_t  _max_depth 
)

Definition at line 116 of file flat.hpp.

template<typename K , typename T >
void fc::from_variant ( const variant var,
std::map< K, T > &  vo,
uint32_t  max_depth 
)

Definition at line 458 of file variant.hpp.

template<typename K , typename T >
void fc::from_variant ( const variant var,
std::multimap< K, T > &  vo,
uint32_t  max_depth 
)

Definition at line 478 of file variant.hpp.

template<typename T >
void fc::from_variant ( const variant var,
std::unordered_set< T > &  vo,
uint32_t  max_depth 
)

Definition at line 416 of file variant.hpp.

void fc::from_variant ( const variant l,
log_message c,
uint32_t  max_depth 
)

Definition at line 104 of file log_message.cpp.

void fc::from_variant ( const variant e,
exception ll,
uint32_t  max_depth 
)

Definition at line 158 of file exception.cpp.

template<typename T >
void fc::from_variant ( const variant var,
std::deque< T > &  dest,
uint32_t  max_depth 
)

Definition at line 510 of file variant.hpp.

void fc::from_variant ( const fc::variant var,
graphene::protocol::vote_id_type vo,
uint32_t  max_depth = 1 
)

Definition at line 37 of file vote.cpp.

template<typename K , typename T , typename... A>
void fc::from_variant ( const variant var,
flat_map< K, T, A... > &  vo,
uint32_t  _max_depth 
)

Definition at line 139 of file flat.hpp.

template<typename T >
void fc::from_variant ( const variant var,
std::set< T > &  vo,
uint32_t  max_depth 
)

Definition at line 499 of file variant.hpp.

void fc::from_variant ( const variant var,
fc::time_point t,
uint32_t  max_depth 
)

Definition at line 59 of file time.cpp.

void fc::from_variant ( const variant var,
fc::time_point_sec t,
uint32_t  max_depth 
)

Definition at line 65 of file time.cpp.

void fc::from_variant ( const variant var,
uint128_t &  vo,
uint32_t  max_depth = 1 
)

Definition at line 692 of file variant.cpp.

template<typename T >
void fc::from_variant ( const fc::variant var,
graphene::protocol::extension< T > &  value,
uint32_t  max_depth 
)

Definition at line 166 of file ext.hpp.

template<typename T >
void fc::from_variant ( const variant var,
std::shared_ptr< T > &  vo,
uint32_t  max_depth 
)

Definition at line 597 of file variant.hpp.

template<typename A , typename B >
void fc::from_variant ( const variant v,
std::pair< A, B > &  p,
uint32_t  max_depth 
)

Definition at line 567 of file variant.hpp.

template<boost::endian::order O, class T , std::size_t N, boost::endian::align A>
void fc::from_variant ( const variant var,
boost::endian::endian_buffer< O, T, N, A > &  vo,
uint32_t  max_depth 
)

Definition at line 182 of file variant.hpp.

void fc::from_variant ( const fc::variant variant_to_convert,
fc::path path_output,
uint32_t  max_depth = 1 
)

Definition at line 37 of file filesystem.cpp.

void fc::from_variant ( const fc::variant var,
graphene::db::object_id_type vo,
uint32_t  max_depth = 1 
)
inline

Definition at line 198 of file object_id.hpp.

template<uint8_t SpaceID, uint8_t TypeID>
void fc::from_variant ( const fc::variant var,
graphene::db::object_id< SpaceID, TypeID > &  vo,
uint32_t  max_depth = 1 
)

Definition at line 220 of file object_id.hpp.

void fc::from_variant ( const variant var,
ecc::private_key vo,
uint32_t  max_depth 
)

Definition at line 386 of file elliptic_common.cpp.

void fc::from_variant ( const variant var,
ecc::public_key vo,
uint32_t  max_depth 
)

Definition at line 398 of file elliptic_common.cpp.

void fc::from_variant ( const fc::variant var,
graphene::protocol::public_key_type vo,
uint32_t  max_depth = 2 
)

Definition at line 101 of file types.cpp.

void fc::from_variant ( const fc::variant var,
std::shared_ptr< const graphene::protocol::fee_schedule > &  vo,
uint32_t  max_depth = 2 
)

Definition at line 106 of file types.cpp.

template<typename... T>
void fc::from_variant ( const fc::variant v,
fc::static_variant< T... > &  s,
uint32_t  max_depth 
)

Definition at line 360 of file static_variant.hpp.

void fc::from_variant ( const variant var,
std::string &  vo,
uint32_t  max_depth = 1 
)
void fc::from_variant ( const variant var,
variants vo,
uint32_t  max_depth 
)

Definition at line 590 of file variant.cpp.

void fc::from_variant ( const variant var,
variant vo,
uint32_t  max_depth 
)

Definition at line 595 of file variant.cpp.

void fc::from_variant ( const variant var,
int64_t &  vo,
uint32_t  max_depth = 1 
)

Definition at line 626 of file variant.cpp.

void fc::from_variant ( const variant var,
uint64_t &  vo,
uint32_t  max_depth = 1 
)

Definition at line 632 of file variant.cpp.

void fc::from_variant ( const variant var,
bool &  vo,
uint32_t  max_depth = 1 
)

Definition at line 638 of file variant.cpp.

void fc::from_variant ( const variant var,
double &  vo,
uint32_t  max_depth = 1 
)

Definition at line 643 of file variant.cpp.

void fc::from_variant ( const variant var,
float &  vo,
uint32_t  max_depth = 1 
)

Definition at line 648 of file variant.cpp.

template<typename T >
void fc::from_variant ( const variant var,
optional< T > &  vo,
uint32_t  max_depth 
)

Definition at line 395 of file variant.hpp.

template<typename T >
void fc::from_variant ( const variant var,
std::vector< T > &  dest,
uint32_t  max_depth 
)

Definition at line 534 of file variant.hpp.

void fc::from_variant ( const variant var,
string &  vo,
uint32_t  max_depth 
)

Definition at line 658 of file variant.cpp.

template<size_t N>
void fc::from_variant ( const variant v,
std::array< char, N > &  bi,
uint32_t  max_depth = 1 
)

Definition at line 668 of file variant.hpp.

template<size_t N>
void fc::from_variant ( const variant v,
std::array< unsigned char, N > &  bi,
uint32_t  max_depth = 1 
)

Definition at line 683 of file variant.hpp.

std::unordered_map<std::string,appender_factory::ptr>& fc::get_appender_factory_map ( )

Definition at line 21 of file appender.cpp.

std::unordered_map< std::string, appender::ptr > & fc::get_appender_map ( )

Definition at line 17 of file appender.cpp.

string fc::get_approximate_relative_time_string ( const time_point_sec event_time,
const time_point_sec relative_to_time = fc::time_point::now(),
const std::string &  ago = " ago" 
)

return a human-readable approximate time, relative to now() e.g., "4 hours ago", "2 months ago", etc.

Definition at line 70 of file time.cpp.

string fc::get_approximate_relative_time_string ( const time_point event_time,
const time_point relative_to_time = fc::time_point::now(),
const std::string &  ago = " ago" 
)

Definition at line 130 of file time.cpp.

cin_buffer& fc::get_cin_buffer ( )

Definition at line 70 of file iostream.cpp.

std::unordered_map< std::string, logger > & fc::get_logger_map ( )

Definition at line 79 of file logger.cpp.

std::shared_ptr<detail::url_impl> fc::get_null_url ( )

Definition at line 110 of file url.cpp.

fc::istream & fc::getline ( fc::istream i,
std::string &  s,
char  delim = '\n' 
)

Definition at line 78 of file iostream.cpp.

uint64_t fc::Hash128to64 ( const uint128_t &  x)
inline

Definition at line 52 of file city.cpp.

const fc::path & fc::home_path ( )
Returns
the home directory on Linux and OS X and the Profile directory on Windows

Definition at line 448 of file filesystem.cpp.

microseconds fc::hours ( int64_t  h)
inline

Definition at line 37 of file time.hpp.

int fc::init_openssl ( )

Definition at line 61 of file openssl.cpp.

bool fc::is_directory ( const path p)

Definition at line 217 of file filesystem.cpp.

bool fc::is_regular_file ( const path p)

Definition at line 218 of file filesystem.cpp.

bool fc::is_utf8 ( const std::string &  str)

Definition at line 14 of file utf8.cpp.

boost::mutex& fc::log_mutex ( )

Definition at line 86 of file console_appender.cpp.

fc::path fc::make_relative ( const path from,
const path to 
)

Definition at line 346 of file filesystem.cpp.

microseconds fc::milliseconds ( int64_t  s)
inline

Definition at line 35 of file time.hpp.

microseconds fc::minutes ( int64_t  m)
inline

Definition at line 36 of file time.hpp.

template<typename T , json::parse_type parser_type>
variant fc::number_from_stream ( T &  in)

Definition at line 273 of file json.cpp.

template<typename T , json::parse_type parser_type>
variant_object fc::objectFromStream ( T &  in,
uint32_t  max_depth 
)

Definition at line 228 of file json.cpp.

template<typename T >
variant_object fc::objectFromStreamBase ( T &  in,
std::function< std::string(T &)> &  get_key,
std::function< variant(T &)> &  get_value 
)

Definition at line 179 of file json.cpp.

bool fc::operator! ( const variant a)

Definition at line 729 of file variant.cpp.

bool fc::operator!= ( const logger l,
std::nullptr_t   
)

Definition at line 58 of file logger.cpp.

bool fc::operator!= ( const sha224 h1,
const sha224 h2 
)

Definition at line 75 of file sha224.cpp.

bool fc::operator!= ( const fc::path l,
const fc::path r 
)

Definition at line 77 of file filesystem.cpp.

bool fc::operator!= ( const sha1 h1,
const sha1 h2 
)

Definition at line 79 of file sha1.cpp.

bool fc::operator!= ( const sha512 h1,
const sha512 h2 
)

Definition at line 81 of file sha512.cpp.

bool fc::operator!= ( const ripemd160 h1,
const ripemd160 h2 
)

Definition at line 95 of file ripemd160.cpp.

bool fc::operator!= ( const sha256 h1,
const sha256 h2 
)

Definition at line 95 of file sha256.cpp.

bool fc::operator!= ( const hash160 h1,
const hash160 h2 
)

Definition at line 122 of file hash160.cpp.

bool fc::operator!= ( const directory_iterator r,
const directory_iterator l 
)

Definition at line 183 of file filesystem.cpp.

Definition at line 204 of file filesystem.cpp.

template<typename T >
bool fc::operator!= ( const optional< T > &  left,
const optional< T > &  right 
)

Definition at line 253 of file optional.hpp.

template<typename T , typename U >
bool fc::operator!= ( const optional< T > &  left,
const U &  u 
)

Definition at line 257 of file optional.hpp.

bool fc::operator!= ( const variant a,
const variant b 
)

Definition at line 720 of file variant.cpp.

bloom_filter fc::operator& ( const bloom_filter a,
const bloom_filter b 
)
inline

Definition at line 596 of file bloom_filter.hpp.

variant fc::operator* ( const variant a,
const variant b 
)

Definition at line 815 of file variant.cpp.

template<typename T , unsigned int S, typename U , typename A >
auto fc::operator+ ( const fwd< T, S, A > &  x,
U &&  u 
) -> typename detail::add<T,U>::type

Definition at line 44 of file fwd_impl.hpp.

variant fc::operator+ ( const variant a,
const variant b 
)

Definition at line 762 of file variant.cpp.

template<typename T , unsigned int S, typename U , typename A >
auto fc::operator- ( const fwd< T, S, A > &  x,
U &&  u 
) -> typename detail::sub<T,U>::type

Definition at line 47 of file fwd_impl.hpp.

variant fc::operator- ( const variant a,
const variant b 
)

Definition at line 789 of file variant.cpp.

path fc::operator/ ( const fc::path p,
const fc::path o 
)

Definition at line 83 of file filesystem.cpp.

variant fc::operator/ ( const variant a,
const variant b 
)

Definition at line 840 of file variant.cpp.

bool fc::operator< ( const sha224 h1,
const sha224 h2 
)

Definition at line 72 of file sha224.cpp.

bool fc::operator< ( const fc::path l,
const fc::path r 
)

Definition at line 75 of file filesystem.cpp.

bool fc::operator< ( const sha1 h1,
const sha1 h2 
)

Definition at line 76 of file sha1.cpp.

bool fc::operator< ( const sha512 h1,
const sha512 h2 
)

Definition at line 78 of file sha512.cpp.

bool fc::operator< ( const ripemd160 h1,
const ripemd160 h2 
)

Definition at line 92 of file ripemd160.cpp.

bool fc::operator< ( const sha256 h1,
const sha256 h2 
)

Definition at line 92 of file sha256.cpp.

bool fc::operator< ( const hash160 h1,
const hash160 h2 
)

Definition at line 118 of file hash160.cpp.

bool fc::operator< ( const variant a,
const variant b 
)

Definition at line 734 of file variant.cpp.

template<typename T , unsigned int S, typename U , typename A >
auto fc::operator<< ( U &  u,
const fwd< T, S, A > &  f 
) -> typename detail::insert_op<U,T>::type

Definition at line 50 of file fwd_impl.hpp.

sha224 fc::operator<< ( const sha224 h1,
uint32_t  i 
)

Definition at line 55 of file sha224.cpp.

sha512 fc::operator<< ( const sha512 h1,
uint32_t  i 
)

Definition at line 55 of file sha512.cpp.

sha1 fc::operator<< ( const sha1 h1,
uint32_t  i 
)

Definition at line 56 of file sha1.cpp.

template<size_t N>
ostream& fc::operator<< ( ostream o,
char(&)  array[N] 
)

Definition at line 66 of file iostream.hpp.

sha256 fc::operator<< ( const sha256 h1,
uint32_t  i 
)

Definition at line 68 of file sha256.cpp.

ostream & fc::operator<< ( ostream o,
char  v 
)

Definition at line 180 of file iostream.cpp.

ripemd160 fc::operator<< ( const ripemd160 h1,
uint32_t  i 
)

Definition at line 72 of file ripemd160.cpp.

ostream & fc::operator<< ( ostream o,
const char *  v 
)

Definition at line 185 of file iostream.cpp.

ostream & fc::operator<< ( ostream o,
const std::string &  v 
)

Definition at line 191 of file iostream.cpp.

ostream & fc::operator<< ( ostream o,
const double &  v 
)

Definition at line 197 of file iostream.cpp.

ostream & fc::operator<< ( ostream o,
const float &  v 
)

Definition at line 202 of file iostream.cpp.

ostream & fc::operator<< ( ostream o,
const int64_t &  v 
)

Definition at line 207 of file iostream.cpp.

ostream & fc::operator<< ( ostream o,
const uint64_t &  v 
)

Definition at line 212 of file iostream.cpp.

ostream & fc::operator<< ( ostream o,
const int32_t &  v 
)

Definition at line 217 of file iostream.cpp.

ostream & fc::operator<< ( ostream o,
const uint32_t &  v 
)

Definition at line 222 of file iostream.cpp.

ostream & fc::operator<< ( ostream o,
const int16_t &  v 
)

Definition at line 227 of file iostream.cpp.

ostream & fc::operator<< ( ostream o,
const uint16_t &  v 
)

Definition at line 232 of file iostream.cpp.

ostream & fc::operator<< ( ostream o,
const int8_t &  v 
)

Definition at line 237 of file iostream.cpp.

ostream & fc::operator<< ( ostream o,
const uint8_t &  v 
)

Definition at line 242 of file iostream.cpp.

ostream& fc::operator<< ( ostream o,
const size_t &  v 
)
hash160 fc::operator<< ( const hash160 h1,
uint32_t  i 
)

Definition at line 94 of file hash160.cpp.

bool fc::operator<= ( const variant a,
const variant b 
)

Definition at line 752 of file variant.cpp.

bool fc::operator== ( const logger l,
std::nullptr_t   
)

Definition at line 57 of file logger.cpp.

bool fc::operator== ( const fc::path l,
const fc::path r 
)

Definition at line 76 of file filesystem.cpp.

bool fc::operator== ( const sha224 h1,
const sha224 h2 
)

Definition at line 78 of file sha224.cpp.

bool fc::operator== ( const sha1 h1,
const sha1 h2 
)

Definition at line 82 of file sha1.cpp.

bool fc::operator== ( const sha512 h1,
const sha512 h2 
)

Definition at line 84 of file sha512.cpp.

bool fc::operator== ( const sha256 h1,
const sha256 h2 
)

Definition at line 98 of file sha256.cpp.

bool fc::operator== ( const ripemd160 h1,
const ripemd160 h2 
)

Definition at line 98 of file ripemd160.cpp.

bool fc::operator== ( const hash160 h1,
const hash160 h2 
)

Definition at line 126 of file hash160.cpp.

bool fc::operator== ( const directory_iterator r,
const directory_iterator l 
)

Definition at line 180 of file filesystem.cpp.

bool fc::operator== ( const recursive_directory_iterator r,
const recursive_directory_iterator l 
)

Definition at line 201 of file filesystem.cpp.

template<typename T >
bool fc::operator== ( const optional< T > &  left,
const optional< T > &  right 
)

Definition at line 245 of file optional.hpp.

template<typename T , typename U >
bool fc::operator== ( const optional< T > &  left,
const U &  u 
)

Definition at line 249 of file optional.hpp.

bool fc::operator== ( const variant a,
const variant b 
)

Definition at line 711 of file variant.cpp.

bool fc::operator> ( const sha224 h1,
const sha224 h2 
)

Definition at line 69 of file sha224.cpp.

bool fc::operator> ( const sha1 h1,
const sha1 h2 
)

Definition at line 73 of file sha1.cpp.

bool fc::operator> ( const sha512 h1,
const sha512 h2 
)

Definition at line 75 of file sha512.cpp.

bool fc::operator> ( const ripemd160 h1,
const ripemd160 h2 
)

Definition at line 89 of file ripemd160.cpp.

bool fc::operator> ( const sha256 h1,
const sha256 h2 
)

Definition at line 89 of file sha256.cpp.

bool fc::operator> ( const hash160 h1,
const hash160 h2 
)

Definition at line 114 of file hash160.cpp.

bool fc::operator> ( const variant a,
const variant b 
)

Definition at line 743 of file variant.cpp.

bool fc::operator>= ( const sha224 h1,
const sha224 h2 
)

Definition at line 66 of file sha224.cpp.

bool fc::operator>= ( const sha1 h1,
const sha1 h2 
)

Definition at line 70 of file sha1.cpp.

bool fc::operator>= ( const sha512 h1,
const sha512 h2 
)

Definition at line 72 of file sha512.cpp.

bool fc::operator>= ( const sha256 h1,
const sha256 h2 
)

Definition at line 86 of file sha256.cpp.

bool fc::operator>= ( const ripemd160 h1,
const ripemd160 h2 
)

Definition at line 86 of file ripemd160.cpp.

bool fc::operator>= ( const hash160 h1,
const hash160 h2 
)

Definition at line 110 of file hash160.cpp.

template<typename T , unsigned int S, typename U , typename A >
auto fc::operator>> ( U &  u,
fwd< T, S, A > &  f 
) -> typename detail::extract_op<U,T>::type

Definition at line 53 of file fwd_impl.hpp.

sha256 fc::operator>> ( const sha256 h1,
uint32_t  i 
)

Definition at line 73 of file sha256.cpp.

istream & fc::operator>> ( istream o,
std::string &  v 
)

Definition at line 255 of file iostream.cpp.

istream & fc::operator>> ( istream o,
char &  v 
)

Definition at line 261 of file iostream.cpp.

istream& fc::operator>> ( istream o,
double &  v 
)
istream& fc::operator>> ( istream o,
float &  v 
)
istream& fc::operator>> ( istream o,
int64_t &  v 
)
istream& fc::operator>> ( istream o,
uint64_t &  v 
)
istream& fc::operator>> ( istream o,
int32_t &  v 
)
istream& fc::operator>> ( istream o,
uint32_t &  v 
)
istream& fc::operator>> ( istream o,
int16_t &  v 
)
istream& fc::operator>> ( istream o,
uint16_t &  v 
)
istream& fc::operator>> ( istream o,
int8_t &  v 
)
istream& fc::operator>> ( istream o,
uint8_t &  v 
)
sha512 fc::operator^ ( const sha512 h1,
const sha512 h2 
)

Definition at line 60 of file sha512.cpp.

sha224 fc::operator^ ( const sha224 h1,
const sha224 h2 
)

Definition at line 60 of file sha224.cpp.

sha1 fc::operator^ ( const sha1 h1,
const sha1 h2 
)

Definition at line 61 of file sha1.cpp.

ripemd160 fc::operator^ ( const ripemd160 h1,
const ripemd160 h2 
)

Definition at line 77 of file ripemd160.cpp.

sha256 fc::operator^ ( const sha256 h1,
const sha256 h2 
)

Definition at line 78 of file sha256.cpp.

hash160 fc::operator^ ( const hash160 h1,
const hash160 h2 
)

Definition at line 100 of file hash160.cpp.

bloom_filter fc::operator^ ( const bloom_filter a,
const bloom_filter b 
)
inline

Definition at line 610 of file bloom_filter.hpp.

bloom_filter fc::operator| ( const bloom_filter a,
const bloom_filter b 
)
inline

Definition at line 603 of file bloom_filter.hpp.

uint64_t fc::parse_size ( const string &  s)

Parses a size including an optional multiplicative suffix.

M -> 1024*1024 bytes MB -> 1000*1000 bytes MiB -> 1024*1024 bytes

The 'M' may be any of KMGTPEZY (upper or lower case)

Definition at line 121 of file string.cpp.

template<typename T >
char fc::parseEscape ( T &  in)

Definition at line 47 of file json.cpp.

uint8_t fc::popcount ( uint64_t  v)

Definition at line 31 of file popcount.cpp.

uint8_t fc::popcount ( const fc::uint128_t &  v)

Definition at line 48 of file popcount.cpp.

std::string fc::pretty_print ( const std::string &  v,
uint8_t  indent 
)

Definition at line 646 of file json.cpp.

void fc::print_stacktrace ( std::ostream &  out)

Definition at line 45 of file stacktrace.cpp.

void fc::print_stacktrace_on_segfault ( )

Definition at line 44 of file stacktrace.cpp.

std::string fc::prune_invalid_utf8 ( const std::string &  str)
string fc::prune_invalid_utf8 ( const string &  str)

Definition at line 19 of file utf8.cpp.

void fc::rand_bytes ( char *  buf,
int  count 
)

Definition at line 9 of file rand.cpp.

void fc::read_file_contents ( const fc::path filename,
std::string &  result 
)

Grab the full contents of a file into a string object. NB reading a full file into memory is a poor choice if the file may be very large.

Definition at line 107 of file fstream.cpp.

void fc::record_assert_trip ( const char *  filename,
uint32_t  lineno,
const char *  expr 
)

Definition at line 313 of file exception.cpp.

bool fc::remove ( const path p)

Definition at line 327 of file filesystem.cpp.

void fc::remove_all ( const path p)

Definition at line 240 of file filesystem.cpp.

void fc::rename ( const path from,
const path to 
)

Definition at line 302 of file filesystem.cpp.

void fc::resize_file ( const path file,
size_t  s 
)

Definition at line 258 of file filesystem.cpp.

std::vector< fc::ip::endpoint > fc::resolve ( const std::string &  host,
uint16_t  port 
)

Definition at line 7 of file resolve.cpp.

template<typename Functor >
auto fc::schedule ( Functor &&  f,
const fc::time_point t,
const char *desc  FC_TASK_NAME_DEFAULT_ARG,
priority  prio = priority() 
) -> fc::future<decltype(f())>

Definition at line 231 of file thread.hpp.

microseconds fc::seconds ( int64_t  s)
inline

Definition at line 34 of file time.hpp.

std::shared_ptr< boost::asio::signal_set > fc::set_signal_handler ( std::function< void(int)>  handler,
int  signal_num 
)

Set a handler to process an IPC (inter process communication) signal. Handler will be called from ASIO thread.

Returns
shared pointer to the signal_set that holds the handler

Definition at line 6 of file signals.cpp.

void fc::set_variant_type ( variant v,
variant::type_id  t 
)

The TypeID is stored in the 'last byte' of the variant.

Definition at line 24 of file variant.cpp.

template<typename T >
bool fc::skip_white_space ( T &  in)

Definition at line 76 of file json.cpp.

void fc::sleep_until ( const time_point tp)

Yields until the specified time in the future.

Definition at line 371 of file thread.cpp.

void fc::store_configuration_path ( const path filePath)

Allows to explicitly specify OpenSSL configuration file path to be loaded at OpenSSL library init. If not set OpenSSL will try to load the conf. file (openssl.cnf) from the path it was configured with what caused serious Keyhotee startup bugs on some Win7, Win8 machines.

Warning
to be effective this method should be used before any part using OpenSSL, especially before init_openssl call

Definition at line 56 of file openssl.cpp.

template<typename T >
std::string fc::stringFromStream ( T &  in)

Definition at line 97 of file json.cpp.

template<typename T >
std::string fc::stringFromToken ( T &  in)

Definition at line 134 of file json.cpp.

template<typename Functor >
auto fc::sync_call ( thread t,
Functor &&  f,
const char *desc  FC_TASK_NAME_DEFAULT_ARG,
priority  prio = priority() 
) -> decltype(f())

Call f() in thread t and block the current thread until it returns.

If t is null, simply execute f in the current thread.

Definition at line 241 of file thread.hpp.

path fc::temp_directory_path ( )

Definition at line 343 of file filesystem.cpp.

const char* fc::thread_name ( )

Definition at line 58 of file thread.cpp.

void* fc::thread_ptr ( )

Definition at line 61 of file thread.cpp.

void fc::throw_assertion_failure ( const std::string &  message)

Definition at line 308 of file exception.cpp.

void fc::throw_bad_enum_cast ( int64_t  i,
const char *  e 
)

Definition at line 277 of file exception.cpp.

void fc::throw_bad_enum_cast ( const char *  k,
const char *  e 
)

Definition at line 283 of file exception.cpp.

boost::asio::ip::udp::endpoint fc::to_asio_ep ( const fc::ip::endpoint e)

Definition at line 19 of file udp_socket.cpp.

std::string fc::to_base58 ( const char *  d,
size_t  s 
)

Definition at line 612 of file base58.cpp.

std::string fc::to_base58 ( const std::vector< char > &  data)

Definition at line 616 of file base58.cpp.

double fc::to_double ( const std::string &  i)

Definition at line 60 of file string.cpp.

fc::ip::endpoint fc::to_fc_ep ( const boost::asio::ip::udp::endpoint &  e)

Definition at line 22 of file udp_socket.cpp.

std::string fc::to_hex ( const char *  d,
uint32_t  s 
)

Definition at line 17 of file hex.cpp.

std::string fc::to_hex ( const std::vector< char > &  data)

Definition at line 42 of file hex.cpp.

int64_t fc::to_int64 ( const std::string &  i)

Definition at line 34 of file string.cpp.

std::string fc::to_lower ( const std::string &  s)

Definition at line 98 of file string.cpp.

std::string fc::to_pretty_string ( int64_t  value)

Definition at line 26 of file string.cpp.

template<typename T >
void fc::to_stream ( T &  os,
const variants a,
json::output_formatting  format,
uint32_t  max_depth 
)

Definition at line 557 of file json.cpp.

template<typename T >
void fc::to_stream ( T &  os,
const variant_object o,
json::output_formatting  format,
uint32_t  max_depth 
)

Definition at line 572 of file json.cpp.

template<typename T >
void fc::to_stream ( T &  os,
const variant v,
json::output_formatting  format,
uint32_t  max_depth 
)

Definition at line 590 of file json.cpp.

std::string fc::to_string ( double  d)

Definition at line 73 of file string.cpp.

std::string fc::to_string ( uint64_t  d)

Definition at line 81 of file string.cpp.

std::string fc::to_string ( int64_t  d)

Definition at line 86 of file string.cpp.

std::string fc::to_string ( uint16_t  d)

Definition at line 90 of file string.cpp.

std::string fc::to_string ( int32_t  v)
inline

Definition at line 18 of file string.hpp.

std::string fc::to_string ( uint32_t  v)
inline

Definition at line 19 of file string.hpp.

uint64_t fc::to_uint64 ( const std::string &  i)

Definition at line 47 of file string.cpp.

template<typename T >
void fc::to_variant ( const T &  o,
variant v,
uint32_t  max_depth 
)

Definition at line 102 of file variant.hpp.

void fc::to_variant ( const account_multi_index_type accts,
variant vo,
uint32_t  max_depth 
)

Definition at line 1951 of file wallet.cpp.

void fc::to_variant ( const fc::microseconds input_microseconds,
fc::variant output_variant,
uint32_t  max_depth = 1 
)

Definition at line 136 of file time.cpp.

void fc::to_variant ( const unsigned_int var,
variant vo,
uint32_t  max_depth = 1 
)

Definition at line 6 of file varint.cpp.

void fc::to_variant ( log_level  e,
variant v,
uint32_t  max_depth = 1 
)

Definition at line 113 of file log_message.cpp.

template<typename IntType , typename EnumType >
void fc::to_variant ( const enum_type< IntType, EnumType > &  var,
variant vo,
uint32_t  max_depth = 1 
)

Definition at line 51 of file enum_type.hpp.

template<size_t N>
void fc::to_variant ( const zero_initialized_array< unsigned char, N > &  bi,
variant v,
uint32_t  max_depth = 1 
)

Definition at line 52 of file zeroed_array.hpp.

void fc::to_variant ( const url u,
fc::variant v,
uint32_t  max_depth = 1 
)

Definition at line 78 of file url.cpp.

void fc::to_variant ( const blob var,
variant vo,
uint32_t  max_depth = 1 
)
template<typename T , typename... Args>
void fc::to_variant ( const boost::multi_index_container< T, Args... > &  s,
variant v,
uint32_t  max_depth 
)

Definition at line 642 of file variant.hpp.

template<typename T >
void fc::to_variant ( const safe< T > &  s,
variant v,
uint32_t  max_depth 
)

Definition at line 632 of file variant.hpp.

template<typename T >
void fc::to_variant ( const std::unique_ptr< T > &  s,
variant v,
uint32_t  max_depth 
)

Definition at line 608 of file variant.hpp.

void fc::to_variant ( const bigint bi,
variant v,
uint32_t  max_depth = 1 
)

encodes the big int as base64 string, or a number

Definition at line 215 of file bigint.cpp.

void fc::to_variant ( const ip::endpoint var,
variant vo,
uint32_t  _max_depth = 2 
)

Definition at line 140 of file ip.cpp.

void fc::to_variant ( const uint8_t &  var,
variant vo,
uint32_t  max_depth = 1 
)

Definition at line 597 of file variant.cpp.

void fc::to_variant ( const int8_t &  var,
variant vo,
uint32_t  max_depth = 1 
)

Definition at line 601 of file variant.cpp.

void fc::to_variant ( const ip::address var,
variant vo,
uint32_t  _max_depth = 1 
)

Definition at line 149 of file ip.cpp.

void fc::to_variant ( const uint16_t &  var,
variant vo,
uint32_t  max_depth = 1 
)

Definition at line 605 of file variant.cpp.

void fc::to_variant ( const graphene::protocol::pts_address var,
fc::variant vo,
uint32_t  max_depth = 1 
)

Definition at line 89 of file pts_address.cpp.

void fc::to_variant ( const int16_t &  var,
variant vo,
uint32_t  max_depth = 1 
)

Definition at line 609 of file variant.cpp.

void fc::to_variant ( const uint32_t &  var,
variant vo,
uint32_t  max_depth = 1 
)

Definition at line 613 of file variant.cpp.

void fc::to_variant ( const log_context l,
variant v,
uint32_t  max_depth 
)

Definition at line 94 of file log_message.cpp.

void fc::to_variant ( const sha224 bi,
variant v,
uint32_t  max_depth 
)

Definition at line 82 of file sha224.cpp.

void fc::to_variant ( const sha1 bi,
variant v,
uint32_t  max_depth 
)

Definition at line 86 of file sha1.cpp.

void fc::to_variant ( const sha512 bi,
variant v,
uint32_t  max_depth 
)

Definition at line 88 of file sha512.cpp.

void fc::to_variant ( const int32_t &  var,
variant vo,
uint32_t  max_depth = 1 
)

Definition at line 619 of file variant.cpp.

void fc::to_variant ( const ripemd160 bi,
variant v,
uint32_t  max_depth 
)

Definition at line 102 of file ripemd160.cpp.

void fc::to_variant ( const sha256 bi,
variant v,
uint32_t  max_depth 
)

Definition at line 102 of file sha256.cpp.

void fc::to_variant ( const uint64_t &  var,
variant vo,
uint32_t  max_depth = 1 
)

Definition at line 631 of file variant.cpp.

void fc::to_variant ( const int64_t &  var,
variant vo,
uint32_t  max_depth = 1 
)

Definition at line 625 of file variant.cpp.

void fc::to_variant ( const bool &  var,
variant vo,
uint32_t  max_depth = 1 
)

Definition at line 637 of file variant.cpp.

void fc::to_variant ( const variant_object var,
variant vo,
uint32_t  max_depth = 1 
)

Definition at line 165 of file variant_object.cpp.

void fc::to_variant ( const mutable_variant_object var,
variant vo,
uint32_t  max_depth = 1 
)

Definition at line 400 of file variant_object.cpp.

void fc::to_variant ( const std::vector< char > &  var,
variant vo,
uint32_t  max_depth = 1 
)

Definition at line 663 of file variant.cpp.

void fc::to_variant ( const graphene::protocol::address var,
variant vo,
uint32_t  max_depth 
)

Definition at line 104 of file address.cpp.

template<typename K , typename T >
void fc::to_variant ( const std::unordered_map< K, T > &  var,
variant vo,
uint32_t  max_depth 
)

Definition at line 428 of file variant.hpp.

template<typename T , typename... A>
void fc::to_variant ( const flat_set< T, A... > &  var,
variant vo,
uint32_t  _max_depth 
)

Definition at line 105 of file flat.hpp.

void fc::to_variant ( const hash160 bi,
variant v,
uint32_t  max_depth 
)

Definition at line 130 of file hash160.cpp.

template<typename K , typename T >
void fc::to_variant ( const std::map< K, T > &  var,
variant vo,
uint32_t  max_depth 
)

Definition at line 448 of file variant.hpp.

template<typename K , typename T >
void fc::to_variant ( const std::multimap< K, T > &  var,
variant vo,
uint32_t  max_depth 
)

Definition at line 468 of file variant.hpp.

template<typename T >
void fc::to_variant ( const std::unordered_set< T > &  var,
variant vo,
uint32_t  max_depth 
)

Definition at line 406 of file variant.hpp.

template<typename K , typename... T>
void fc::to_variant ( const flat_map< K, T... > &  var,
variant vo,
uint32_t  _max_depth 
)

Definition at line 128 of file flat.hpp.

void fc::to_variant ( const exception e,
variant v,
uint32_t  max_depth 
)

Definition at line 145 of file exception.cpp.

void fc::to_variant ( const log_message l,
variant v,
uint32_t  max_depth 
)

Definition at line 108 of file log_message.cpp.

template<typename T >
void fc::to_variant ( const std::deque< T > &  src,
variant v,
uint32_t  max_depth 
)

Definition at line 522 of file variant.hpp.

void fc::to_variant ( const graphene::protocol::vote_id_type var,
fc::variant vo,
uint32_t  max_depth = 1 
)

Definition at line 32 of file vote.cpp.

template<typename T >
void fc::to_variant ( const std::set< T > &  var,
variant vo,
uint32_t  max_depth 
)

Definition at line 489 of file variant.hpp.

void fc::to_variant ( const time_point var,
variant vo,
uint32_t  max_depth 
)

Definition at line 56 of file time.cpp.

void fc::to_variant ( const time_point_sec var,
variant vo,
uint32_t  max_depth 
)

Definition at line 62 of file time.cpp.

void fc::to_variant ( const uint128_t &  var,
variant vo,
uint32_t  max_depth = 1 
)

Definition at line 680 of file variant.cpp.

void fc::to_variant ( long long int  s,
variant v,
uint32_t  max_depth = 1 
)

Definition at line 707 of file variant.cpp.

void fc::to_variant ( unsigned long long int  s,
variant v,
uint32_t  max_depth = 1 
)

Definition at line 708 of file variant.cpp.

void fc::to_variant ( const std::string &  s,
variant v,
uint32_t  max_depth = 1 
)

Definition at line 653 of file variant.cpp.

template<typename T >
void fc::to_variant ( const std::shared_ptr< T > &  var,
variant vo,
uint32_t  max_depth 
)

Definition at line 586 of file variant.hpp.

template<typename A , typename B >
void fc::to_variant ( const std::pair< A, B > &  t,
variant v,
uint32_t  max_depth 
)

Definition at line 558 of file variant.hpp.

template<boost::endian::order O, class T , std::size_t N, boost::endian::align A>
void fc::to_variant ( const boost::endian::endian_buffer< O, T, N, A > &  var,
variant vo,
uint32_t  max_depth 
)

Definition at line 177 of file variant.hpp.

void fc::to_variant ( const fc::path path_to_convert,
fc::variant variant_output,
uint32_t  max_depth = 1 
)

Definition at line 29 of file filesystem.cpp.

void fc::to_variant ( const graphene::db::object_id_type var,
fc::variant vo,
uint32_t  max_depth = 1 
)
inline

Definition at line 193 of file object_id.hpp.

template<typename T >
void fc::to_variant ( const graphene::protocol::extension< T > &  value,
fc::variant var,
uint32_t  max_depth 
)

Definition at line 199 of file ext.hpp.

template<uint8_t SpaceID, uint8_t TypeID>
void fc::to_variant ( const graphene::db::object_id< SpaceID, TypeID > &  var,
fc::variant vo,
uint32_t  max_depth = 1 
)

Definition at line 215 of file object_id.hpp.

void fc::to_variant ( const ecc::private_key var,
variant vo,
uint32_t  max_depth 
)

Definition at line 381 of file elliptic_common.cpp.

void fc::to_variant ( const ecc::public_key var,
variant vo,
uint32_t  max_depth 
)

Definition at line 393 of file elliptic_common.cpp.

void fc::to_variant ( const graphene::protocol::public_key_type var,
fc::variant vo,
uint32_t  max_depth = 2 
)

Definition at line 96 of file types.cpp.

template<typename... T>
void fc::to_variant ( const fc::static_variant< T... > &  s,
fc::variant v,
uint32_t  max_depth 
)

Definition at line 352 of file static_variant.hpp.

template<typename T >
void fc::to_variant ( const std::vector< T > &  t,
variant v,
uint32_t  max_depth 
)

Definition at line 546 of file variant.hpp.

template<size_t N>
void fc::to_variant ( const std::array< char, N > &  bi,
variant v,
uint32_t  max_depth = 1 
)

Definition at line 663 of file variant.hpp.

template<size_t N>
void fc::to_variant ( const std::array< unsigned char, N > &  bi,
variant v,
uint32_t  max_depth = 1 
)

Definition at line 678 of file variant.hpp.

template<typename T >
variant fc::token_from_stream ( T &  in)

Definition at line 341 of file json.cpp.

std::string fc::trim ( const std::string &  s)

Definition at line 94 of file string.cpp.

string fc::trim_and_normalize_spaces ( const string &  s)

Definition at line 104 of file string.cpp.

uint128_t fc::uint128 ( const uint64_t  hi,
const uint64_t  lo 
)
inline

Definition at line 67 of file uint128.hpp.

uint64_t fc::uint128_hi64 ( const uint128_t &  x)
inline

Definition at line 57 of file uint128.hpp.

uint64_t fc::uint128_lo64 ( const uint128_t &  x)
inline

Definition at line 54 of file uint128.hpp.

() file_not_found_exception() parse_error_exception() invalid_arg_exception() invalid_operation_exception() key_not_found_exception() bad_cast_exception() out_of_range_exception() canceled_exception() assert_exception() eof_exception() unknown_host_exception() null_optional() aes_exception() overflow_exception() fc::underflow_exception ( divide_by_zero_exception  )

Definition at line 46 of file exception.cpp.

path fc::unique_path ( )

Definition at line 342 of file filesystem.cpp.

void fc::usleep ( const microseconds u)

Yields to other ready tasks for u microseconds.

Definition at line 368 of file thread.cpp.

template<typename T , json::parse_type parser_type>
variant fc::variant_from_stream ( T &  in,
uint32_t  max_depth 
)

Definition at line 413 of file json.cpp.

template<typename T >
T fc::wait ( boost::signals2::signal< void(T)> &  sig,
const microseconds timeout_us = microseconds::maximum() 
)
inline

Definition at line 38 of file signals.hpp.

void fc::wait ( boost::signals2::signal< void()> &  sig,
const microseconds timeout_us = microseconds::maximum() 
)
inline

Definition at line 44 of file signals.hpp.

template<typename T1 , typename T2 >
int fc::wait_any ( const fc::future< T1 > &  f1,
const fc::future< T2 > &  f2,
const microseconds  timeout_us = microseconds::maximum() 
)

Wait until either f1 or f2 is ready.

Returns
0 if f1 is ready, 1 if f2 is ready or throw on error.

Definition at line 220 of file thread.hpp.

int fc::wait_any ( std::vector< promise_base::ptr > &&  v,
const microseconds timeout_us = microseconds::maximum() 
)

Definition at line 380 of file thread.cpp.

int fc::wait_any_until ( std::vector< promise_base::ptr > &&  v,
const time_point tp 
)

Definition at line 385 of file thread.cpp.

void fc::yield ( )

Yields to other ready tasks before returning.

Definition at line 365 of file thread.cpp.

std::string fc::zlib_compress ( const std::string &  in)

Definition at line 7 of file zlib.cpp.

Variable Documentation

cerr_t & fc::cerr = *cerr_ptr

Definition at line 176 of file iostream.cpp.

std::shared_ptr< cerr_t > fc::cerr_ptr = std::make_shared<cerr_t>()

Definition at line 174 of file iostream.cpp.

cin_t & fc::cin = *cin_ptr

Definition at line 177 of file iostream.cpp.

std::shared_ptr< cin_t > fc::cin_ptr = std::make_shared<cin_t>()

Definition at line 172 of file iostream.cpp.

cout_t & fc::cout = *cout_ptr

Definition at line 175 of file iostream.cpp.

std::shared_ptr< cout_t > fc::cout_ptr = std::make_shared<cout_t>()

Definition at line 173 of file iostream.cpp.

bool fc::do_default_config = configure_logging( logging_config::default_config() )

Definition at line 108 of file logger.cpp.

bool fc::enable_record_assert_trip = false

Definition at line 337 of file exception.cpp.

const char* const fc::git_revision_sha
const uint32_t fc::git_revision_unix_timestamp
openssl_thread_config fc::openssl_thread_config_manager

Definition at line 402 of file aes.cpp.