class eosio::binary_extension

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

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

function binary_extension

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

function binary_extension

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

function binary_extension

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

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

function binary_extension

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

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

get the contained value

function value

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

get the contained value

function value_or

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

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

function value_or

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

function value_or

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

function value_or

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

function operator->

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

function operator->

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

function operator*

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

function operator*

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

function operator*

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

function operator*

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