struct eosio::multi_index::index

Class List > eosio :: multi_index :: index

Classes

Type Name
struct const_iterator

Public Types

Type Name
enum constants { table_name = static_cast(TableName), index_name = static_cast(IndexName), index_number = Number, index_table_name = (static_cast(TableName) & 0xFFFFFFFFFFFFFFF0ULL)
(Number & 0x000000000000000FULL) }
typedef Extractor secondary_extractor_type
typedef std::decay< decltype(Extractor()(nullptr))>::type secondary_key_type
typedef std::reverse_iterator< const_iterator > const_reverse_iterator
struct multi_index::index::const_iterator

Friends

Type Name
friend class multi_index

Public Static Functions

Type Name
static constexpr bool validate_index_name (eosio::name n)
static constexpr uint64_t name ()
static constexpr uint64_t number ()
static auto extract_secondary_key (const T & obj)

Public Functions

Type Name
const_iterator cbegin () const
const_iterator begin () const
const_iterator cend () const
const_iterator end () const
const_reverse_iterator crbegin () const
const_reverse_iterator rbegin () const
const_reverse_iterator crend () const
const_reverse_iterator rend () const
const_iterator find (secondary_key_type && secondary) const
const_iterator find (const secondary_key_type & secondary) const
const_iterator require_find (secondary_key_type && secondary, const char * error_msg = "unable to find secondary key") const
const_iterator require_find (const secondary_key_type & secondary, const char * error_msg = "unable to find secondary key") const
const T & get (secondary_key_type && secondary, const char * error_msg = "unable to find secondary key") const
const T & get (const secondary_key_type & secondary, const char * error_msg = "unable to find secondary key") const
const_iterator lower_bound (secondary_key_type && secondary) const
const_iterator lower_bound (const secondary_key_type & secondary) const
const_iterator upper_bound (secondary_key_type && secondary) const
const_iterator upper_bound (const secondary_key_type & secondary) const
const_iterator iterator_to (const T & obj)
void modify (const_iterator itr, eosio::name payer, Lambda && updater)
const_iterator erase (const_iterator itr)
eosio::name get_code () const
uint64_t get_scope () const

Public Types Documentation

enum constants

enum eosio::multi_index::index::constants {
    table_name = static_cast<uint64_t>(TableName),
    index_name = static_cast<uint64_t>(IndexName),
    index_number = Number,
    index_table_name = (static_cast<uint64_t>(TableName) & 0xFFFFFFFFFFFFFFF0ULL)
                                    | (Number & 0x000000000000000FULL),
};

typedef secondary_extractor_type

typedef Extractor eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::secondary_extractor_type;

typedef secondary_key_type

typedef std::decay<decltype( Extractor()(nullptr) )>::type eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::secondary_key_type;

typedef const_reverse_iterator

typedef std::reverse_iterator<const_iterator> eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::const_reverse_iterator;

struct multi_index::index::const_iterator

Friends Documentation

friend multi_index

friend class multi_index;

Public Static Functions Documentation

function validate_index_name

static constexpr bool eosio::multi_index::index::validate_index_name (
    eosio::name n
)

function name

static constexpr uint64_t eosio::multi_index::index::name ()

function number

static constexpr uint64_t eosio::multi_index::index::number ()

function extract_secondary_key

static auto eosio::multi_index::index::extract_secondary_key (
    const T & obj
)

Public Functions Documentation

function cbegin

const_iterator eosio::multi_index::index::cbegin () const

function begin

const_iterator eosio::multi_index::index::begin () const

function cend

const_iterator eosio::multi_index::index::cend () const

function end

const_iterator eosio::multi_index::index::end () const

function crbegin

const_reverse_iterator eosio::multi_index::index::crbegin () const

function rbegin

const_reverse_iterator eosio::multi_index::index::rbegin () const

function crend

const_reverse_iterator eosio::multi_index::index::crend () const

function rend

const_reverse_iterator eosio::multi_index::index::rend () const

function find (1/2)

const_iterator eosio::multi_index::index::find (
    secondary_key_type && secondary
) const

function find (2/2)

const_iterator eosio::multi_index::index::find (
    const secondary_key_type & secondary
) const

function require_find (1/2)

const_iterator eosio::multi_index::index::require_find (
    secondary_key_type && secondary,
    const char * error_msg = "unable to find secondary key"
) const

function require_find (2/2)

const_iterator eosio::multi_index::index::require_find (
    const secondary_key_type & secondary,
    const char * error_msg = "unable to find secondary key"
) const

function get (1/2)

const T & eosio::multi_index::index::get (
    secondary_key_type && secondary,
    const char * error_msg = "unable to find secondary key"
) const

function get (2/2)

const T & eosio::multi_index::index::get (
    const secondary_key_type & secondary,
    const char * error_msg = "unable to find secondary key"
) const

function lower_bound (1/2)

const_iterator eosio::multi_index::index::lower_bound (
    secondary_key_type && secondary
) const

function lower_bound (2/2)

const_iterator eosio::multi_index::index::lower_bound (
    const secondary_key_type & secondary
) const

function upper_bound (1/2)

const_iterator eosio::multi_index::index::upper_bound (
    secondary_key_type && secondary
) const

function upper_bound (2/2)

const_iterator eosio::multi_index::index::upper_bound (
    const secondary_key_type & secondary
) const

function iterator_to

const_iterator eosio::multi_index::index::iterator_to (
    const T & obj
)

function modify

void eosio::multi_index::index::modify (
    const_iterator itr,
    eosio::name payer,
    Lambda && updater
)

function erase

const_iterator eosio::multi_index::index::erase (
    const_iterator itr
)

function get_code

eosio::name eosio::multi_index::index::get_code () const

function get_scope

uint64_t eosio::multi_index::index::get_scope () const

The documentation for this class was generated from the following file: in/eosio.cdt/libraries/eosiolib/contracts/eosio/multi\_index.hpp

results matching ""

    No results matching ""