arg_stream.hpp
Go to the documentation of this file.
138 static bool eof_check(ArgStream & as, typename boost::enable_if_c<traits<ArgStream>::has_eof_memberfunction>::type * dummy = 0)
144 static bool eof_check(ArgStream & as, typename boost::disable_if_c<traits<ArgStream>::has_eof_memberfunction>::type * dummy = 0)
257 // we convert the function signature into a mpl sequence (it *is* an mpl sequence, since it implements mpl::begin/end/etc)
263 class From = typename boost::mpl::begin< boost::function_types::parameter_types<typename signature<F>::type> >::type,
264 class To = typename boost::mpl::end< boost::function_types::parameter_types<typename signature<F>::type> >::type>
321 // and remove first arg from signature (the object that the member function belongs to) using mpl::next
324 typename boost::mpl::next< typename boost::mpl::begin< boost::function_types::parameter_types<typename signature<F>::type, boost::add_pointer<boost::mpl::placeholders::_> > >::type>::type,
325 typename boost::mpl::end< boost::function_types::parameter_types<typename signature<F>::type, boost::add_pointer<boost::mpl::placeholders::_> > >::type>
393 chain<ArgStreamFirst, ArgStreamSecond> make_chain(ArgStreamFirst & first_stream, ArgStreamSecond & second_stream)
413 return *(R*)32; // some compilers need a return; here's a bad one (but that doesn't require default construction)
435 single(typename boost::add_reference<T const>::type t, unsigned int count = 1) : value(t), repeat(count)
445 R convert_or_throw(value_type & value, typename boost::enable_if<boost::is_convertible<value_type, R> >::type * dummy = 0)
450 R convert_or_throw(value_type & value, typename boost::disable_if<boost::is_convertible<value_type, R> >::type * dummy = 0)
497 static const bool value = has_type_type<typename Class::template arg_stream_inverse_lookup<R> >::value;
503 static const bool value = has_entry_if_has_inverse_lookup<Class, R, has_inverse_lookup<Class>::value>::value;
526 return transformer.template arg_stream_transform<R>(arg_stream::get_next_arg<Rfrom>(argstream));
529 R transforming_get(typename boost::disable_if<has_transform<Transformer, R> >::type * dummy = 0)
542 with_transform<ArgStream, Transformer> make_transforming(ArgStream & as, Transformer & transformer)
static bool eof_check(ArgStream &as, typename boost::enable_if_c< traits< ArgStream >::has_eof_memberfunction >::type *dummy=0) Definition: arg_stream.hpp:138 is T::type a valid type (or a compile error?) Definition: type_inspection.hpp:76 static const bool value Definition: arg_stream.hpp:492 Transformer & transformer Definition: arg_stream.hpp:511 Definition: arg_stream.hpp:53 Definition: arg_stream.hpp:51 static const bool value Definition: arg_stream.hpp:486 #define ADOBE_HAS_TEMPLATE1(C, TemplateInQuestion) returns true iff C has an internal template named 'TemplateInQuestion' with 1 (nondefault) template p... Definition: type_inspection.hpp:217 holds a single value, and returns it as an arg n (default 1) times Definition: arg_stream.hpp:428 static result_type< F >::type apply(F func, ArgStream &astream, Args const &args) Definition: arg_stream.hpp:271 static const bool value Definition: arg_stream.hpp:116 R get_next_arg(ArgStream const &as) arg_stream::get_next_arg Definition: arg_stream.hpp:186 bool eof(ArgStream const &as) arg_stream::eof(argstream) returns true if there are no more args available. Definition: arg_stream.hpp:168 static const bool value Definition: arg_stream.hpp:503 static result_type< F >::type apply(F func, ArgStream &, Args const &args) Definition: arg_stream.hpp:288 boost::function_types::result_type< typename signature< F >::type >::type type Definition: arg_stream.hpp:242 R convert_or_throw(value_type &value, typename boost::enable_if< boost::is_convertible< value_type, R > >::type *dummy=0) Definition: arg_stream.hpp:445 with_transform(ArgStream &as, Transformer &trans) Definition: arg_stream.hpp:513 Definition: functional.hpp:26 boost::range_difference< InputRange >::type count(InputRange &range, T &value) count implementation Definition: count.hpp:41 Definition: function.hpp:163 chain< ArgStreamFirst, ArgStreamSecond > make_chain(ArgStreamFirst &first_stream, ArgStreamSecond &second_stream) given 2 arg_streams, returns an arg_stream of the 2 streams chained together Definition: arg_stream.hpp:393 static const bool has_eof_member Definition: arg_stream.hpp:131 chain 2 arg_streams together by calling the first stream until depleted, then calling the second... Definition: arg_stream.hpp:339 with_transform< ArgStream, Transformer > make_transforming(ArgStream &as, Transformer &transformer) Definition: arg_stream.hpp:542 R convert_or_throw(value_type &value, typename boost::disable_if< boost::is_convertible< value_type, R > >::type *dummy=0) Definition: arg_stream.hpp:450 R transforming_get(typename boost::enable_if< has_transform< Transformer, R > >::type *dummy=0) Definition: arg_stream.hpp:523 ADOBE_HAS_TEMPLATE1_IMPL(arg_stream_inverse_lookup) defines any traits that help with the implementation of arg_stream::call() and/or helper objects like... Definition: arg_stream.hpp:129 result_type< F >::type call(F f, ArgStream &astream) Calls function/callable-object f with function arguments supplied by the arg_stream. Definition: arg_stream.hpp:306 single(typename boost::add_reference< T const >::type t, unsigned int count=1) Definition: arg_stream.hpp:435 chain(ArgStreamFirst &first_stream, ArgStreamSecond &second_stream) Definition: arg_stream.hpp:352 the empty-set arg stream has no arguments. Not sure what this might be useful for. Definition: arg_stream.hpp:401 ArgStream arg_stream_type Definition: arg_stream.hpp:507 Transformer transformer_type Definition: arg_stream.hpp:508 result_type Definition: arg_stream.hpp:240 ADOBE_HAS_TYPE_IMPL(eof) R transforming_get(typename boost::disable_if< has_transform< Transformer, R > >::type *dummy=0) Definition: arg_stream.hpp:529 #define ADOBE_HAS_TYPE(C, TypeInQuestion) returns true iff C has an internal type named 'TypeInQuestion'. ie returns true iff C::TypeInQuestion... Definition: type_inspection.hpp:65 returns the function signature of the callable object type F Definition: arg_stream.hpp:220 |