class eosio::extended_symbol

Class List > eosio :: extended_symbol

Public Functions

Type Name
constexpr extended_symbol ()
Construct a new empty extended_symbol object.
constexpr extended_symbol (symbol sym, name con)
Construct a new symbol_code object initialising symbol and contract with the passed in symbol and name.
constexpr symbol get_symbol () const
constexpr name get_contract () const
void print (bool show_precision = true) const
Print the extended symbol

Friends

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

Public Functions Documentation

function extended_symbol (1/2)

constexpr eosio::extended_symbol::extended_symbol()

Construct a new empty extended_symbol object.

Default constructor, construct a new extended_symbol

function extended_symbol (2/2)

constexpr eosio::extended_symbol::extended_symbol(
    symbol sym,
    name con
)

Construct a new symbol_code object initialising symbol and contract with the passed in symbol and name.

Construct a new symbol_code given a symbol and a name.

Parameters:

  • sym - The symbol
  • con - The name of the contract

function get_symbol

constexpr symbol eosio::extended_symbol::get_symbol() const

Returns the symbol in the extended_contract

Returns:

symbol

function get_contract

constexpr name eosio::extended_symbol::get_contract() const

Returns the name of the contract in the extended_symbol

Returns:

name

function print

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

Print the extended symbol

Print the extended symbol

Friends Documentation

friend operator==

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

Equivalency operator.

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

Returns:

boolean - true if both provided extended_symbols are the same

friend operator!=

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

Inverted equivalency operator.

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

Returns:

boolean - true if both provided extended_symbols are not the same

friend operator<

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

Less than operator.

Less than operator. Returns true if a < b.

Returns:

boolean - true if extended_symbol a is less than b

friend operator<<

template<typename DataStream>
DataStream& operator<<(
    DataStream & ds,
    const extended_symbol & t
)

friend operator>>

template<typename DataStream>
DataStream& operator>>(
    DataStream & ds,
    extended_symbol & t
)

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