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 514 of file s11nlite.hpp.


Member Typedef Documentation

typedef ::s11nlite::node_type s11nlite::save_stream_unary_f::node_type

Definition at line 517 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 523 of file s11nlite.hpp.


Member Function Documentation

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

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

Definition at line 529 of file s11nlite.hpp.

References s11nlite::save().

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

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

Definition at line 538 of file s11nlite.hpp.

References s11nlite::save().


Member Data Documentation

std::ostream& s11nlite::save_stream_unary_f::stream

Definition at line 518 of file s11nlite.hpp.


The documentation for this struct was generated from the following file:
Generated on Wed Jun 4 21:45:47 2008 for libs11n-1.2.7 by  doxygen 1.5.3