s11nlite::save_stream_unary_f Struct Reference

A unary functor which forwards to s11nlite::save(node_type|SerializableT,ostream). More...

#include <s11nlite.hpp>

Inheritance diagram for s11nlite::save_stream_unary_f:
s11n::serialize_unary_serializable_f_tag s11n::serialize_unary_node_f_tag s11n::serialize_f_tag

List of all members.

Public Types

typedef ::s11nlite::node_type node_type

Public Member Functions

 save_stream_unary_f (std::ostream &os)
 Specifies that operator() should send output to the given stream.
bool operator() (node_type const &src) const
 Returns s11nlite:;save( src, this->stream ).
template<typename SerT >
bool operator() (SerT const &src) const
 Returns s11nlite:;save( src, this->stream ).

Public Attributes

std::ostream & stream

Detailed Description

A unary functor which forwards to s11nlite::save(node_type|SerializableT,ostream).

Note that while this type conforms to two s11n-standard tags (its parent classes), it is not *really* intended to be used as a normal part of a serialization algorithm. That said, that approach may indeed turn out to have some interesting uses. It certainly has some pitfalls, in any case, so don't blythely do it.

Added in version 1.1.3.

Definition at line 509 of file s11nlite.hpp.


Member Typedef Documentation

Definition at line 512 of file s11nlite.hpp.


Constructor & Destructor Documentation

s11nlite::save_stream_unary_f::save_stream_unary_f ( std::ostream &  os  )  [inline, explicit]

Specifies that operator() should send output to the given stream.

Definition at line 518 of file s11nlite.hpp.


Member Function Documentation

template<typename SerT >
bool s11nlite::save_stream_unary_f::operator() ( SerT const &  src  )  const [inline]

Returns s11nlite:;save( src, this->stream ).

Definition at line 533 of file s11nlite.hpp.

References s11nlite::save(), and stream.

bool s11nlite::save_stream_unary_f::operator() ( node_type const &  src  )  const [inline]

Returns s11nlite:;save( src, this->stream ).

Definition at line 524 of file s11nlite.hpp.

References s11nlite::save(), and stream.


Member Data Documentation

Definition at line 513 of file s11nlite.hpp.

Referenced by operator()().


The documentation for this struct was generated from the following file:

Generated on Sat Mar 20 12:29:26 2010 for libs11n-1.2.10 by  doxygen 1.6.1