Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio::chain::chain_id_type Struct Reference

#include <chain_id_type.hpp>

Inheritance diagram for sysio::chain::chain_id_type:
Collaboration diagram for sysio::chain::chain_id_type:

Public Member Functions

void reflector_init () const
 
- Public Member Functions inherited from fc::sha256
 sha256 ()
 
 sha256 (const string &hex_str)
 
 sha256 (const char *data, size_t size)
 
string str () const
 
 operator string () const
 
const char * data () const
 
char * data ()
 
size_t data_size () const
 
uint32_t pop_count () const
 
uint16_t clz () const
 
uint32_t approx_log_32 () const
 
void set_to_inverse_approx_log_32 (uint32_t x)
 

Friends

class sysio::chain_apis::read_only
 
class sysio::net_plugin_impl
 
struct sysio::handshake_message
 
class block_log
 
struct trim_data
 
class controller
 
struct controller_impl
 
class global_property_object
 
struct snapshot_global_property_object
 
struct legacy::snapshot_global_property_object_v3
 
struct legacy::snapshot_global_property_object_v4
 
template<typename T >
Toperator<< (T &ds, const chain_id_type &cid)
 
template<typename T >
Toperator>> (T &ds, chain_id_type &cid)
 
template<typename T >
T fc::variant::as () const
 

Additional Inherited Members

- Static Public Member Functions inherited from fc::sha256
static sha256 hash (const char *d, uint32_t dlen)
 
static sha256 hash (const string &)
 
static sha256 hash (const sha256 &)
 
template<typename T >
static sha256 hash (const T &t)
 
static double inverse_approx_log_32_double (uint32_t x)
 
- Public Attributes inherited from fc::sha256
uint64_t _hash [4]
 

Detailed Description

Definition at line 23 of file chain_id_type.hpp.

Member Function Documentation

◆ reflector_init()

void sysio::chain::chain_id_type::reflector_init ( ) const

Definition at line 6 of file chain_id_type.cpp.

6 {
7 SYS_ASSERT( *reinterpret_cast<const fc::sha256*>(this) != fc::sha256(), chain_id_type_exception, "chain_id_type cannot be zero" );
8 }
#define SYS_ASSERT(expr, exc_type, FORMAT,...)
Definition exceptions.hpp:7

Friends And Related Symbol Documentation

◆ block_log

friend class block_log
friend

Definition at line 51 of file chain_id_type.hpp.

◆ controller

friend class controller
friend

Definition at line 53 of file chain_id_type.hpp.

◆ controller_impl

friend struct controller_impl
friend

Definition at line 54 of file chain_id_type.hpp.

◆ fc::variant::as

template<typename T >
T fc::variant::as ( ) const
friend

◆ global_property_object

Definition at line 55 of file chain_id_type.hpp.

◆ legacy::snapshot_global_property_object_v3

Definition at line 57 of file chain_id_type.hpp.

◆ legacy::snapshot_global_property_object_v4

Definition at line 58 of file chain_id_type.hpp.

◆ operator<<

template<typename T >
T & operator<< ( T & ds,
const chain_id_type & cid )
friend

Definition at line 27 of file chain_id_type.hpp.

27 {
28 ds.write( cid.data(), cid.data_size() );
29 return ds;
30 }
static const Segment ds(Segment::ds)

◆ operator>>

template<typename T >
T & operator>> ( T & ds,
chain_id_type & cid )
friend

Definition at line 33 of file chain_id_type.hpp.

33 {
34 ds.read( cid.data(), cid.data_size() );
35 return ds;
36 }

◆ snapshot_global_property_object

friend struct snapshot_global_property_object
friend

Definition at line 56 of file chain_id_type.hpp.

◆ sysio::chain_apis::read_only

Definition at line 47 of file chain_id_type.hpp.

◆ sysio::handshake_message

friend struct sysio::handshake_message
friend

Definition at line 50 of file chain_id_type.hpp.

◆ sysio::net_plugin_impl

Definition at line 49 of file chain_id_type.hpp.

◆ trim_data

friend struct trim_data
friend

Definition at line 52 of file chain_id_type.hpp.


The documentation for this struct was generated from the following files: