file table.hpp

Classes

Type Name
class eosio::kv::table
class eosio::kv::internal::index_base
class eosio::kv::internal::table_base
class eosio::kv::internal::iterator_base
class eosio::kv::table
class eosio::kv::table::index
Defines an index on an EOSIO Key Value Table.
class eosio::kv::table::base_iterator
class eosio::kv::table::iterator
class eosio::kv::table::reverse_iterator
class eosio::kv::table::index
Defines an index on an EOSIO Key Value Table.

Defines

Type Name
define EOSIO_CDT_GET_RETURN_T
define KV_NAMED_INDEX
Macro to define an index.

Defines Documentation

define EOSIO_CDT_GET_RETURN_T

#define EOSIO_CDT_GET_RETURN_T(value_class, index_name) std::decay_t<decltype(std::invoke(&value_class::index_name, std::declval<const value_class*>()))>

define KV_NAMED_INDEX

#define KV_NAMED_INDEX(index_name, member_name) index<EOSIO_CDT_GET_RETURN_T(value_type, member_name)> member_name{eosio::name{index_name}, &value_type::member_name};

Macro to define an index.

This macro allows users to conveniently define an index without having to specify the index template type, as those can be large/unwieldy to type out. It can be used for both primary and secondary indexes.

Parameters:

  • index_name - The index name.
  • member_name - The name of the member pointer used for the index. This also defines the index's C++ variable name.

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