View Source argo_extensions_value (argo v1.1.0)

Summary

Types

-type index() :: argo_index_map:index().
-type inner() :: argo_desc_value:desc_object().
-opaque iterator()
-type iterator_order() :: ordered | reversed | key_func() | order_func().
-type key() :: argo_types:name().
-type key_func() :: fun((Index :: index(), Key :: key(), Value :: value()) -> Key :: dynamic()).
-type order_func() :: argo_index_map:iterator_order_func(key(), value()).
-type t() :: #argo_extensions_value{inner :: argo_extensions_value:inner()}.
-type value() :: argo_desc_value:t().

Functions

Link to this function

insert(ExtensionsValue, Key, DescValue)

View Source
-spec insert(ExtensionsValue, Key, DescValue) -> ExtensionsValue
          when ExtensionsValue :: t(), Key :: key(), DescValue :: argo_desc_value:t().
Link to this function

iterator(ExtensionsValue)

View Source
-spec iterator(ExtensionsValue) -> Iterator when ExtensionsValue :: t(), Iterator :: iterator().
Link to this function

iterator(ExtensionsValue, Order)

View Source
-spec iterator(ExtensionsValue, Order) -> Iterator
            when ExtensionsValue :: t(), Order :: iterator_order(), Iterator :: iterator().
-spec new() -> ExtensionsValue when ExtensionsValue :: t().
-spec new(Extensions) -> ExtensionsValue when Extensions :: inner(), ExtensionsValue :: t().
-spec next(Iterator) -> none | {Index, Key, Value, NextIterator}
        when
            Index :: index(),
            Key :: key(),
            Value :: value(),
            Iterator :: iterator(),
            NextIterator :: iterator().