Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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


Member Typedef Documentation

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

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

References stream.


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

References s11nlite::save().

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

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

Definition at line 515 of file s11nlite.hpp.

References s11nlite::save().


Member Data Documentation

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

Definition at line 504 of file s11nlite.hpp.

Referenced by save_stream_unary_f().


The documentation for this struct was generated from the following file:
Generated on Thu Sep 29 20:01:17 2005 for libs11n-1.1.3-dev by  doxygen 1.4.1