Menu

struct eosio::multi_index::index

Class List > eosio :: multi_index :: index

Classes

Type Name
struct const_iterator

Public Types

Type Name
enum table_name { 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), 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) }
enum table_name { 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), 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 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
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)
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
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),
    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),
};

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

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

typedef secondary_key_type (2/2)

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

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

typedef secondary_extractor_type (2/2)

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

typedef secondary_key_type (2/2)

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

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

multi_index;

Public Static Functions Documentation

function validate_index_name (2/2)

static static constexpr bool eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::validate_index_name(
    eosio::name n
)

function name (2/2)

static static constexpr uint64_t eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::name()

function number (2/2)

static static constexpr uint64_t eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::number()

function extract_secondary_key (2/2)

static static auto eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::extract_secondary_key(
    const T & obj
)

function validate_index_name (2/2)

static static constexpr bool eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::validate_index_name(
    eosio::name n
)

function name (2/2)

static static constexpr uint64_t eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::name()

function number (2/2)

static static constexpr uint64_t eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::number()

function extract_secondary_key (2/2)

static static auto eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::extract_secondary_key(
    const T & obj
)

Public Functions Documentation

function cbegin (2/2)

const_iterator eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::cbegin() const

function begin (2/2)

const_iterator eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::begin() const

function cend (2/2)

const_iterator eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::cend() const

function end (2/2)

const_iterator eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::end() const

function crbegin (2/2)

const_reverse_iterator eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::crbegin() const

function rbegin (2/2)

const_reverse_iterator eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::rbegin() const

function crend (2/2)

const_reverse_iterator eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::crend() const

function rend (2/2)

const_reverse_iterator eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::rend() const

function find (3/4)

const_iterator eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::find(
    secondary_key_type && secondary
) const

function find (4/4)

const_iterator eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::find(
    const secondary_key_type & secondary
) const

function require_find (3/4)

const_iterator eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::require_find(
    secondary_key_type && secondary,
    const char * error_msg = "unable to find secondary key"
) const

function require_find (4/4)

const_iterator eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::require_find(
    const secondary_key_type & secondary,
    const char * error_msg = "unable to find secondary key"
) const

function get (3/4)

const T& eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::get(
    secondary_key_type && secondary,
    const char * error_msg = "unable to find secondary key"
) const

function get (4/4)

const T& eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::get(
    const secondary_key_type & secondary,
    const char * error_msg = "unable to find secondary key"
) const

function lower_bound (3/4)

const_iterator eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::lower_bound(
    secondary_key_type && secondary
) const

function lower_bound (4/4)

const_iterator eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::lower_bound(
    const secondary_key_type & secondary
) const

function upper_bound (3/4)

const_iterator eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::upper_bound(
    secondary_key_type && secondary
) const

function upper_bound (4/4)

const_iterator eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::upper_bound(
    const secondary_key_type & secondary
) const

function iterator_to (2/2)

const_iterator eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::iterator_to(
    const T & obj
)

function modify (2/2)

template<typename Lambda>
void eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::modify(
    const_iterator itr,
    eosio::name payer,
    Lambda && updater
)

function erase (2/2)

const_iterator eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::erase(
    const_iterator itr
)

function get_code (2/2)

eosio::name eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::get_code() const

function get_scope (2/2)

uint64_t eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::get_scope() const

function cbegin (2/2)

const_iterator eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::cbegin() const

function begin (2/2)

const_iterator eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::begin() const

function cend (2/2)

const_iterator eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::cend() const

function end (2/2)

const_iterator eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::end() const

function crbegin (2/2)

const_reverse_iterator eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::crbegin() const

function rbegin (2/2)

const_reverse_iterator eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::rbegin() const

function crend (2/2)

const_reverse_iterator eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::crend() const

function rend (2/2)

const_reverse_iterator eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::rend() const

function find (3/4)

const_iterator eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::find(
    secondary_key_type && secondary
) const

function find (4/4)

const_iterator eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::find(
    const secondary_key_type & secondary
) const

function require_find (3/4)

const_iterator eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::require_find(
    secondary_key_type && secondary,
    const char * error_msg = "unable to find secondary key"
) const

function require_find (4/4)

const_iterator eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::require_find(
    const secondary_key_type & secondary,
    const char * error_msg = "unable to find secondary key"
) const

function get (3/4)

const T& eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::get(
    secondary_key_type && secondary,
    const char * error_msg = "unable to find secondary key"
) const

function get (4/4)

const T& eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::get(
    const secondary_key_type & secondary,
    const char * error_msg = "unable to find secondary key"
) const

function lower_bound (3/4)

const_iterator eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::lower_bound(
    secondary_key_type && secondary
) const

function lower_bound (4/4)

const_iterator eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::lower_bound(
    const secondary_key_type & secondary
) const

function upper_bound (3/4)

const_iterator eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::upper_bound(
    secondary_key_type && secondary
) const

function upper_bound (4/4)

const_iterator eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::upper_bound(
    const secondary_key_type & secondary
) const

function iterator_to (2/2)

const_iterator eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::iterator_to(
    const T & obj
)

function modify (2/2)

template<typename Lambda>
void eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::modify(
    const_iterator itr,
    eosio::name payer,
    Lambda && updater
)

function erase (2/2)

const_iterator eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::erase(
    const_iterator itr
)

function get_code (2/2)

eosio::name eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::get_code() const

function get_scope (2/2)

uint64_t eosio::multi_index< TableName, T, Indices >::index< IndexName, Extractor, Number, IsConst >::get_scope() const

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