stlab.adobe.com Adobe Systems Incorporated

single< T > Struct Template Reference

holds a single value, and returns it as an arg n (default 1) times More...

#include <arg_stream.hpp>

List of all members.

Public Types

typedef T value_type

Public Member Functions

template<typename R >
convert_or_throw (value_type &value, typename boost::enable_if< boost::is_convertible< value_type, R > >::type *dummy=0)
template<typename R >
convert_or_throw (value_type &value, typename boost::disable_if< boost::is_convertible< value_type, R > >::type *dummy=0)
bool eof ()
template<typename R >
get_next_arg ()
 single (typename boost::add_reference< T const >::type t, unsigned int count=1)

Public Attributes

unsigned int repeat
value

Detailed Description

template<typename T>
struct adobe::arg_stream::single< T >

this is useful (in combination with arg_stream::chain) when you need to slip a single value at the front/back of an arg_stream.

Definition at line 428 of file arg_stream.hpp.


Member Typedef Documentation

typedef T value_type

Definition at line 430 of file arg_stream.hpp.


Constructor & Destructor Documentation

single ( typename boost::add_reference< T const >::type  t,
unsigned int  count = 1 
)

Definition at line 435 of file arg_stream.hpp.


Member Function Documentation

R convert_or_throw ( value_type value,
typename boost::enable_if< boost::is_convertible< value_type, R > >::type *  dummy = 0 
)

Definition at line 445 of file arg_stream.hpp.

R convert_or_throw ( value_type value,
typename boost::disable_if< boost::is_convertible< value_type, R > >::type *  dummy = 0 
)

Definition at line 450 of file arg_stream.hpp.

bool eof (  )

Definition at line 439 of file arg_stream.hpp.

R get_next_arg (  )

Definition at line 457 of file arg_stream.hpp.


Member Data Documentation

unsigned int repeat

Definition at line 433 of file arg_stream.hpp.

T value

Definition at line 432 of file arg_stream.hpp.

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google