Class List > eosio :: binary_extension

container to hold a binary payload for an extension More...

Public Types

Type Name
typedef T value_type

Public Functions

Type Name
constexpr binary_extension ()
constexpr binary_extension (const T & ext)
constexpr binary_extension (T && ext)
constexpr binary_extension (std::in_place_t, Args &&... args)
~binary_extension ()
constexpr binary_extension (const binary_extension & other)
constexpr binary_extension (binary_extension && other)
constexpr operator bool () const
constexpr bool has_value () const
constexpr T & value ()
constexpr const T & value () const
constexpr auto value_or (U && def)
constexpr T && value_or ()
constexpr const T && value_or () const
constexpr T value_or ()
constexpr T value_or () const
constexpr T * operator-> ()
constexpr const T * operator-> () const
constexpr T & operator* ()
constexpr const T & operator* () const
constexpr const T && operator* () const
constexpr T && operator* ()
T & emplace (Args &&... args)
void reset ()

Detailed Description

Binary Extension

Template parameters:

  • T - Contained typed

Public Types Documentation

typedef value_type

using eosio::binary_extension< T >::value_type =  T;

Public Functions Documentation

function binary_extension (1/6)

constexpr eosio::binary_extension< T >::binary_extension()

function binary_extension (2/6)

constexpr eosio::binary_extension< T >::binary_extension(
    const T & ext
)

function binary_extension (3/6)

constexpr eosio::binary_extension< T >::binary_extension(
    T && ext
)

function binary_extension (4/6)

template<typename... Args>
constexpr eosio::binary_extension< T >::binary_extension(
    std::in_place_t ,
    Args &&... args
)

construct contained type in place

function ~binary_extension

eosio::binary_extension< T >::~binary_extension()

function binary_extension (5/6)

constexpr eosio::binary_extension< T >::binary_extension(
    const binary_extension & other
)

function binary_extension (6/6)

constexpr eosio::binary_extension< T >::binary_extension(
    binary_extension && other
)

function operator bool

explicit constexpr eosio::binary_extension< T >::operator bool() const

test if container is holding a value

function has_value

constexpr bool eosio::binary_extension< T >::has_value() const

test if container is holding a value

function value (1/2)

constexpr T& eosio::binary_extension< T >::value()

get the contained value

function value (2/2)

constexpr const T& eosio::binary_extension< T >::value() const

get the contained value

function value_or (1/5)

template<typename U>
constexpr auto eosio::binary_extension< T >::value_or(
    U && def
)

get the contained value or a user specified default

Precondition:

def should be convertible to type T

function value_or (2/5)

constexpr T&& eosio::binary_extension< T >::value_or()

function value_or (3/5)

constexpr const T&& eosio::binary_extension< T >::value_or() const

function value_or (4/5)

constexpr T eosio::binary_extension< T >::value_or()

function value_or (5/5)

constexpr T eosio::binary_extension< T >::value_or() const

function operator-> (1/2)

constexpr T* eosio::binary_extension< T >::operator->()

function operator-> (2/2)

constexpr const T* eosio::binary_extension< T >::operator->() const

function operator* (1/4)

constexpr T& eosio::binary_extension< T >::operator*()

function operator* (2/4)

constexpr const T& eosio::binary_extension< T >::operator*() const

function operator* (3/4)

constexpr const T&& eosio::binary_extension< T >::operator*() const

function operator* (4/4)

constexpr T&& eosio::binary_extension< T >::operator*()

function emplace

template<typename ... Args>
T& eosio::binary_extension< T >::emplace(
    Args &&... args
)

function reset

void eosio::binary_extension< T >::reset()

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