scclib
Stable Cloud Computing C++ Library
Public Member Functions | List of all members
scc::util::OutPipeline Struct Reference

Output stream pipeline of writers. More...

#include <iopipeline.h>

Inheritance diagram for scc::util::OutPipeline:
Inheritance graph
[legend]
Collaboration diagram for scc::util::OutPipeline:
Collaboration graph
[legend]

Public Member Functions

 OutPipeline (const std::shared_ptr< Writer > &, size_t=1024)
 Create with base writer and write buffer size.
 
std::shared_ptr< Writerwr_fix_chain ()
 Fix the chain, and return the pointer that should be pointed to by the stream.
 
- Public Member Functions inherited from scc::util::OutChain
 OutChain (const std::shared_ptr< Writer > &)
 Create with base writer and write buffer size.
 
void wr_replace_base (const std::shared_ptr< PipelineWriter > &w)
 Replace the base writer with a new base writer.
 
void wr_add_back (const std::shared_ptr< PipelineWriter > &w)
 Add a writer to the end of the chain (before the base).
 
void wr_add_front (const std::shared_ptr< PipelineWriter > &w)
 Add a writer to the start of the chain (after the stream).
 
void wr_del (const std::shared_ptr< PipelineWriter > &)
 Delete a writer from the chain.
 
- Public Member Functions inherited from scc::util::OutStream
 OutStream (Writer &, size_t=1024)
 Create writer stream. More...
 
 OutStream (const std::shared_ptr< Writer > &, size_t=1024)
 Create writer stream. More...
 
 OutStream ()=delete
 No default construct.
 
 OutStream (const OutStream &)=delete
 Copy construct not allowed.
 
OutStreamoperator= (const OutStream &)=delete
 Copy assign not allowed.
 
 OutStream (OutStream &&)
 Move construct.
 
OutStreamoperator= (OutStream &&)
 Move assign.
 
void write_reset (const std::shared_ptr< Writer > &)
 
std::shared_ptr< Writerwrite_shared () const
 
size_t sendbuf_size () const
 Size of send buffer.
 
void sendbuf_size (size_t)
 Resize the send buffer. More...
 
virtual std::string send_fail () const
 Failure message from outstream. More...
 
void clear (std::ios::iostate=std::ios::goodbit)
 

Additional Inherited Members

- Public Attributes inherited from scc::util::OutChain
std::shared_ptr< Writerwr_base
 
std::list< std::shared_ptr< PipelineWriter > > wr_chain
 

Detailed Description

Output stream pipeline of writers.

Without: stream writes <-> base With chain: stream writes <-> chain[0] <-> ... <-> chain[N] <-> base

Definition at line 148 of file iopipeline.h.


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