namespace Akenti class OutputStream : public ref_ptr

A OutputStream object is a reference-count pointer that wraps a ostream object

Inheritance:


Public Methods

OutputStream (ostream* impl = NULL)
Constructs this object
~OutputStream ()
Decrements the ref_cnt by 1, when it drops to 0 destroys the ostream and this object
OutputStream& operator<< (const char c)
The overloaded output operator, that places a character into the output stream
OutputStream& operator<< (const char* s)
The overloaded output operator, that places a C-string into the output stream
OutputStream& operator<< (const void *p)
The overloaded output operator, that places the first thing that the pointer points to into the output stream
OutputStream& operator<< (int i)
The overloaded output operator, that places a character into the output stream
OutputStream& operator<< (unsigned int ui)
The overloaded output operator, that places an unsigned integer into the output stream
OutputStream& operator<< (long l)
The overloaded output operator, that places a long integer into the output stream
OutputStream& operator<< (unsigned long ul)
The overloaded output operator, that places an unsigned long integer into the output stream
OutputStream& operator<< (bool b)
The overloaded output operator, that places a boolean into the output stream
OutputStream& operator<< (double d)
The overloaded output operator, that a double into the output stream
OutputStream& operator<< (streambuf* sb)
The overloaded output operator, that the stream buffer into the output stream
OutputStream& operator<< (const string& s)
The overloaded output operator, that places a string into the output stream

Inherited from ref_ptr:

Public Methods

ref_ptr & operator=(const ref_ptr& rhs)
T* operator->() const
operator void*() const
T* get() const

Documentation

A OutputStream object is a reference-count pointer that wraps a ostream object. Clients should not assume anything about the type of the stream wrapped in this object.
OutputStream(ostream* impl = NULL)
Constructs this object.
Parameters:
impl - the ostream for output

~OutputStream()
Decrements the ref_cnt by 1, when it drops to 0 destroys the ostream and this object

OutputStream& operator<<(const char c)
The overloaded output operator, that places a character into the output stream.
Returns:
the output stream
Parameters:
c - the character

OutputStream& operator<<(const char* s)
The overloaded output operator, that places a C-string into the output stream.
Returns:
the output stream
Parameters:
c - the C-string

OutputStream& operator<<(const void *p)
The overloaded output operator, that places the first thing that the pointer points to into the output stream.
Returns:
the output stream
Parameters:
p - the void * pointer

OutputStream& operator<<(int i)
The overloaded output operator, that places a character into the output stream.
Returns:
the output stream
Parameters:
c - the character

OutputStream& operator<<(unsigned int ui)
The overloaded output operator, that places an unsigned integer into the output stream.
Returns:
the output stream
Parameters:
ui - the unsigned integer

OutputStream& operator<<(long l)
The overloaded output operator, that places a long integer into the output stream.
Returns:
the output stream
Parameters:
l - the long integer

OutputStream& operator<<(unsigned long ul)
The overloaded output operator, that places an unsigned long integer into the output stream.
Returns:
the output stream
Parameters:
ul - the unsigned long integer

OutputStream& operator<<(bool b)
The overloaded output operator, that places a boolean into the output stream.
Returns:
the output stream
Parameters:
b - the boolean

OutputStream& operator<<(double d)
The overloaded output operator, that a double into the output stream.
Returns:
the output stream
Parameters:
d - the double

OutputStream& operator<<(streambuf* sb)
The overloaded output operator, that the stream buffer into the output stream.
Returns:
the output stream
Parameters:
sb - the stream buffer

OutputStream& operator<<(const string& s)
The overloaded output operator, that places a string into the output stream.
Returns:
the output stream
Parameters:
s - the string


This class has no child classes.
Author:
Srilekha Mudumbai Abdelilah Essiari
Version:
1.1 00/11/01
See Also:
ref_ptr

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de