Class List > eosio :: symbol

Public Functions

Type Name
constexpr symbol ()
constexpr symbol (uint64_t raw)
constexpr symbol (symbol_code sc, uint8_t precision)
constexpr symbol (std::string_view ss, uint8_t precision)
constexpr bool is_valid () const
constexpr uint8_t precision () const
constexpr symbol_code code () const
constexpr uint64_t raw () const
constexpr operator bool () const
void print (bool show_precision = true) const
Print the symbol

Friends

Type Name
friend constexpr bool operator==
Equivalency operator.
friend constexpr bool operator!=
Inverted equivalency operator.
friend constexpr bool operator<
Less than operator.

Public Functions Documentation

function symbol

constexpr eosio::symbol::symbol()

function symbol

explicit constexpr eosio::symbol::symbol(
    uint64_t raw
)

function symbol

constexpr eosio::symbol::symbol(
    symbol_code sc,
    uint8_t precision
)

function symbol

constexpr eosio::symbol::symbol(
    std::string_view ss,
    uint8_t precision
)

function is_valid

constexpr bool eosio::symbol::is_valid() const

Is this symbol valid

function precision

constexpr uint8_t eosio::symbol::precision() const

This symbol's precision

function code

constexpr symbol_code eosio::symbol::code() const

Returns representation of symbol name

function raw

constexpr uint64_t eosio::symbol::raw() const

Returns uint64_t repreresentation of the symbol

function operator bool

explicit constexpr eosio::symbol::operator bool() const

function print

void eosio::symbol::print(
    bool show_precision = true
) const

Print the symbol

Print the symbol

Friends Documentation

friend operator==

constexpr bool operator==(
    const symbol & a,
    const symbol & b
)

Equivalency operator.

Equivalency operator. Returns true if a == b (are the same)

Returns:

boolean - true if both provided symbols are the same

friend operator!=

constexpr bool operator!=(
    const symbol & a,
    const symbol & b
)

Inverted equivalency operator.

Inverted equivalency operator. Returns true if a != b (are different)

Returns:

boolean - true if both provided symbols are not the same

friend operator<

constexpr bool operator<(
    const symbol & a,
    const symbol & b
)

Less than operator.

Less than operator. Returns true if a < b.

Returns:

boolean - true if symbol a is less than b


The documentation for this class was generated from the following file: libraries/eosiolib/symbol.hpp