본문으로 건너뛰기

eosio::extended_symbol

Module: Core API / Symbol

More...

#include <symbol.hpp>

Public Functions

Name
constexprextended_symbol()
constexprextended_symbol(symbol s, name con)
constexpr symbolget_symbol() const
constexpr nameget_contract() const
voidprint(bool show_precision =true) const
Print the extended symbol

Friends

Name
constexpr friend booloperator==(const extended_symbol & a, const extended_symbol & b)
constexpr friend booloperator!=(const extended_symbol & a, const extended_symbol & b)
constexpr friend booloperator<(const extended_symbol & a, const extended_symbol & b)

Detailed Description

class eosio::extended_symbol;

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

Public Functions Documentation

function extended_symbol

inline constexpr extended_symbol()

Default constructor, construct a new extended_symbol

function extended_symbol

inline constexpr extended_symbol(
symbol s,
name con
)

Parameters:

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

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

function get_symbol

inline constexpr symbol get_symbol() const

Return: symbol

Returns the symbol in the extended_contract

function get_contract

inline constexpr name get_contract() const

Return: name

Returns the name of the contract in the extended_symbol

function print

inline void print(
bool show_precision =true
) const

Print the extended symbol

Print the extended symbol

Friends

friend operator==

friend constexpr friend bool operator==(
const extended_symbol & a,

const extended_symbol & b
);

Return: boolean - true if both provided extended_symbols are the same

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

friend operator!=

friend constexpr friend bool operator!=(
const extended_symbol & a,

const extended_symbol & b
);

Return: boolean - true if both provided extended_symbols are not the same

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

friend operator<

friend constexpr friend bool operator<(
const extended_symbol & a,

const extended_symbol & b
);

Return: boolean - true if extended_symbola is less than b

Less than operator. Returns true if a < b.


Updated on 2022-12-05 at 15:38:08 +0000