Adobe Source Libraries 1.49.0
A collection of C++ libraries.
Loading...
Searching...
No Matches
Dictionary Argument Stream

Classes

struct  dictionary_arg_stream< Dictionary, InputRange, NoThrow >
 dictionary_arg_stream implements the arg_stream interface More...

Functions

template<typename R>
get_dictionary_entry (adobe::dictionary_t const &dict, adobe::name_t const &key)
 dictionary_arg_stream requires specializations of get_dictionary_entry for the dictionary. For example, the adobe::dictionary_t specializations.
template<typename F, typename Dictionary, typename SingleArg>
arg_stream::result_type< F >::type call_with_dictionary (F f, Dictionary const &dict, SingleArg const &key_or_key_range)
 call the function/callable-object f with args pulled from dictionary dict via keys from key_range

Detailed Description

Function Documentation

◆ get_dictionary_entry()

template<typename R>
R get_dictionary_entry ( adobe::dictionary_t const & dict,
adobe::name_t const & key )
we use 'get_dictionary_entry' instead of the standard adobe::get_value because
get_value(dict, key).cast<R>();
bool get_value(const dictionary_t &dict, name_t key, T &value)
Seems a bit too specific of an interface to ask someone to implement

Definition at line 38 of file dictionary_arg_stream.hpp.

◆ call_with_dictionary()

template<typename F, typename Dictionary, typename SingleArg>
arg_stream::result_type< F >::type call_with_dictionary ( F f,
Dictionary const & dict,
SingleArg const & key_or_key_range )

Definition at line 256 of file dictionary_arg_stream.hpp.