Menu

class eosio::extended_symbol

Class List > eosio :: extended_symbol

Public Functions

Type Name
constexpr extended_symbol ()
constexpr extended_symbol (symbol sym, name con)
constexpr symbol get_symbol () const
constexpr name get_contract () const
void print (bool show_precision = true) const
Print the extended symbol
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==
friend constexpr bool operator !=
friend constexpr bool operator<
friend DataStream & operator<<
friend DataStream & operator >>
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 >>

Detailed Description

Extended asset which stores the information of the owner of the symbol

Public Functions Documentation

function extended_symbol (3/4)

constexpr eosio::extended_symbol::extended_symbol()

Default constructor, construct a new extended_symbol

function extended_symbol (4/4)

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

Parameters:

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

function get_symbol (2/2)

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

Returns the symbol in the extended_contract

Returns:

symbol

function get_contract (2/2)

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

Returns the name of the contract in the extended_symbol

Returns:

name

function print (2/2)

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

Print the extended symbol

Print the extended symbol

function extended_symbol (3/4)

constexpr eosio::extended_symbol::extended_symbol()

Construct a new empty extended_symbol object.

Default constructor, construct a new extended_symbol

function extended_symbol (4/4)

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 (2/2)

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

Returns the symbol in the extended_contract

Returns:

symbol

function get_contract (2/2)

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

Returns the name of the contract in the extended_symbol

Returns:

name

function print (2/2)

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

Print the extended symbol

Print the extended symbol

Friends Documentation

friend operator== (2/2)

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

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

Returns:

boolean - true if both provided extended_symbols are the same

friend operator != (2/2)

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

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

Returns:

boolean - true if both provided extended_symbols are not the same

friend operator< (2/2)

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

Less than operator. Returns true if a < b.

Returns:

boolean - true if extended_symbol a is less than b

friend operator<< (2/2)

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

friend operator >> (2/2)

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

friend operator== (2/2)

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 != (2/2)

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< (2/2)

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<< (2/2)

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

friend operator >> (2/2)

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

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