![]() |
Spicy
|
#include <type-info.h>
Public Types | |
using | Accessor = std::pair< const void *, const void * >(*)(const Value &v) |
Public Member Functions | |
MapIterator (const TypeInfo *ktype, const TypeInfo *vtype, Accessor accessor) | |
std::pair< Value, Value > | value (const Value &v) const |
const TypeInfo * | keyType () const |
const TypeInfo * | valueType () const |
Static Public Member Functions | |
template<typename K , typename V > | |
static auto | accessor () |
Auxiliary type information for type `iterator<map>
.
using hilti::rt::type_info::MapIterator::Accessor = std::pair<const void*, const void*> (*)(const Value& v) |
Type of a function that, given the outer value, returns a pointer to the contained element.
|
inline |
Constructor.
ktype | type of the keys of the contained elements |
vtype | type of the values of the contained elements |
accessor | function retrieving a pointer to the contained element |
|
inline |
Returns the type of the key of the elements, as passed into the constructor.
Returns the contained value as (key, value) pair.
|
inline |
Returns the type of the valye of the elements, as passed into the constructor.