struct eosio::kv::detail::elem
Class List > eosio :: kv :: detail :: elem
This struct represents the data type stored in map. More...
Public Types
Type | Name |
---|---|
typedef typename KV::key_t | key_t |
typedef typename KV::value_t | value_t |
Public Attributes
Type | Name |
---|---|
key_type | key |
value_t | value |
name | payer |
Public Functions
Type | Name |
---|---|
elem () = default | |
constexpr | elem (const key_t & k, value_t v, name p = current_context_contract()) |
elem (key_type k, value_t v, name p, packed_tag) | |
constexpr bool | operator== (const elem & e) const |
key_type & | first () |
const key_type & | first () const |
value_t & | second () |
const value_t & | second () const |
Detailed Description
You will use the set of functions and operations associated with this type to access the items stored in the map.
Note that this type in is defined as
.
Public Types Documentation
typedef key_t
using eosio::kv::detail::elem< KV >::key_t = typename KV::key_t;
typedef value_t
using eosio::kv::detail::elem< KV >::value_t = typename KV::value_t;
Public Attributes Documentation
variable key
key_type eosio::kv::detail::elem< KV >::key;
variable value
value_t eosio::kv::detail::elem< KV >::value;
variable payer
name eosio::kv::detail::elem< KV >::payer;
Public Functions Documentation
function elem (1/3)
eosio::kv::detail::elem< KV >::elem() = default
function elem (2/3)
constexpr eosio::kv::detail::elem< KV >::elem(
const key_t & k,
value_t v,
name p = current_context_contract()
)
function elem (3/3)
eosio::kv::detail::elem< KV >::elem(
key_type k,
value_t v,
name p,
packed_tag
)
function operator==
constexpr bool eosio::kv::detail::elem< KV >::operator==(
const elem & e
) const
function first (1/2)
key_type& eosio::kv::detail::elem< KV >::first()
function first (2/2)
const key_type& eosio::kv::detail::elem< KV >::first() const
function second (1/2)
value_t& eosio::kv::detail::elem< KV >::second()
function second (2/2)
const value_t& eosio::kv::detail::elem< KV >::second() const
The documentation for this class was generated from the following file: libraries/eosiolib/contracts/eosio/map.hpp