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

#include <s_root_extension.hpp>

Collaboration diagram for sysio::chain::s_header:

Public Member Functions

 s_header ()=default
 
 s_header (const name &contract, const checksum256_type &prev, const checksum256_type &curr, const checksum256_type &root)
 
 s_header (const s_header &other)=default
 
s_headeroperator= (const s_header &other)
 
std::string to_string () const
 

Public Attributes

name contract_name
 
checksum256_type previous_s_id
 
checksum256_type current_s_id
 
checksum256_type current_s_root
 

Friends

bool operator== (const s_header &a, const s_header &b)
 

Detailed Description

Definition at line 7 of file s_root_extension.hpp.

Constructor & Destructor Documentation

◆ s_header() [1/3]

sysio::chain::s_header::s_header ( )
default

◆ s_header() [2/3]

sysio::chain::s_header::s_header ( const name & contract,
const checksum256_type & prev,
const checksum256_type & curr,
const checksum256_type & root )
inline

Definition at line 14 of file s_root_extension.hpp.

15 : contract_name(contract), previous_s_id(prev), current_s_id(curr), current_s_root(root) {}
checksum256_type current_s_id
checksum256_type current_s_root
checksum256_type previous_s_id

◆ s_header() [3/3]

sysio::chain::s_header::s_header ( const s_header & other)
default

Member Function Documentation

◆ operator=()

s_header & sysio::chain::s_header::operator= ( const s_header & other)
inline

Definition at line 21 of file s_root_extension.hpp.

21 {
22 if (this != &other) {
23 contract_name = other.contract_name;
24 previous_s_id = other.previous_s_id;
25 current_s_id = other.current_s_id;
26 current_s_root = other.current_s_root;
27 }
28 return *this;
29 }

◆ to_string()

std::string sysio::chain::s_header::to_string ( ) const
inline

Definition at line 36 of file s_root_extension.hpp.

36 {
37 return "\n\tContract Name: " + contract_name.to_string() +
38 "\n\tPrevious S-ID: " + previous_s_id.str() +
39 "\n\tCurrent S-ID: " + current_s_id.str() +
40 "\n\tCurrent S-Root: " + current_s_root.str();
41 }
string str() const
Definition sha256.cpp:26
std::string to_string() const
Definition name.cpp:19
Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ operator==

bool operator== ( const s_header & a,
const s_header & b )
friend

Definition at line 31 of file s_root_extension.hpp.

31 {
32 return std::tie(a.contract_name, a.previous_s_id, a.current_s_id, a.current_s_root) ==
33 std::tie(b.contract_name, b.previous_s_id, b.current_s_id, b.current_s_root);
34 }
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition pointer.h:1181

Member Data Documentation

◆ contract_name

name sysio::chain::s_header::contract_name

Definition at line 8 of file s_root_extension.hpp.

◆ current_s_id

checksum256_type sysio::chain::s_header::current_s_id

Definition at line 10 of file s_root_extension.hpp.

◆ current_s_root

checksum256_type sysio::chain::s_header::current_s_root

Definition at line 11 of file s_root_extension.hpp.

◆ previous_s_id

checksum256_type sysio::chain::s_header::previous_s_id

Definition at line 9 of file s_root_extension.hpp.


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