mod_servlet
C++Servlets
|
Implementation of output stream object. More...
#include <io.h>
Public Types | |
typedef CharT | char_type |
Cacracter type to be used by this stream. | |
typedef Traits | traits_type |
Type of character traits class to be used by this stream. | |
typedef traits_type::int_type | int_type |
traits_type::int_type | |
typedef traits_type::pos_type | pos_type |
traits_type::pos_type | |
typedef traits_type::off_type | off_type |
traits_type::off_type | |
Public Member Functions | |
template<class... Args> | |
basic_outstream (Args &&...args) | |
Main constructor. More... | |
basic_outstream (basic_outstream &&other) | |
Move constructor. More... | |
basic_outstream & | operator= (basic_outstream &&other) |
Move assignment operator. More... | |
~basic_outstream () noexceptoverride | |
Destructor. | |
Sink & | operator* () |
Provides access to the reference to the Sink instance associated with this stream. More... | |
Sink * | operator-> () |
Provides access to the pointer to the Sink instance associated with this stream. More... | |
const Sink & | operator* () const |
Provides access to the constant reference to the Sink instance associated with this stream. More... | |
const Sink * | operator-> () const |
Provides access to the constant pointer to the Sink instance associated with this stream. More... | |
Implementation of output stream object.
This class inherits from std::basic_ostream
and can be used as one.
This object uses the Sink
provided as a template parameter to write data to. The Sink
can be either sink or buffer_provider.
Sink | sink object to use to write data. |
Buffering | Buffer size to be used. |
CharT | character type for this stream |
Traits | cahracter traits type to be used in this stream. |
|
inlineexplicit |
Main constructor.
This generic constructor will pass received arguments to its buffer, which in turn will pass them to Sink
. Thus, generally, these arguments should be the ones to create the Sink
Args | types of the arguments to forward to Sink constructor |
args | Arguments to be forwarded to construct the Sink |
|
inline |
Move constructor.
other | basic_outstream which contents and state will be acquired by created object. |
|
inline |
Provides access to the reference to the Sink
instance associated with this stream.
Sink
instance.
|
inline |
Provides access to the constant reference to the Sink
instance associated with this stream.
Sink
instance.
|
inline |
Provides access to the pointer to the Sink
instance associated with this stream.
Sink
instance.
|
inline |
Provides access to the constant pointer to the Sink
instance associated with this stream.
Sink
instance.
|
inline |
Move assignment operator.
other | basic_outstream which contents and state will be acquired by created object. |