bpp-core
2.2.0
|
STL output stream. More...
#include <Bpp/Io/OutputStream.h>
Public Member Functions | |
StlOutputStream (std::ostream *stream) | |
StlOutputStream (const StlOutputStream &stlos) | |
StlOutputStream & | operator= (const StlOutputStream &stlos) |
StlOutputStream & | operator<< (const std::string &message) |
StlOutputStream & | operator<< (const char *message) |
StlOutputStream & | operator<< (const char &message) |
StlOutputStream & | operator<< (const int &message) |
StlOutputStream & | operator<< (const unsigned int &message) |
StlOutputStream & | operator<< (const long int &message) |
StlOutputStream & | operator<< (const unsigned long int &message) |
StlOutputStream & | operator<< (const double &message) |
StlOutputStream & | operator<< (const long double &message) |
StlOutputStream & | operator<< (const bool &message) |
StlOutputStream & | endLine () |
StlOutputStream & | flush () |
StlOutputStream * | clone () const |
Create a copy of this object and send a pointer to it. More... | |
OutputStream & | setPrecision (int digit) |
int | getPrecision () const |
virtual OutputStream & | enableScientificNotation (bool yn) |
virtual bool | isScientificNotationEnabled () const |
Private Attributes | |
std::auto_ptr< std::ostream > | stream_ |
STL output stream.
This class wraps the std::ostream class. It takes as input a pointer toward an existing stream that will then be owned by the wrapper, as a smart pointer. Any copy of this class will then result in an inactivation of the original version (in other word, you can't have two wrappers for the same stream).
Definition at line 168 of file OutputStream.h.
|
inline |
Definition at line 175 of file OutputStream.h.
Referenced by clone().
|
inline |
Definition at line 176 of file OutputStream.h.
|
inlinevirtual |
Create a copy of this object and send a pointer to it.
Implements bpp::OutputStream.
Definition at line 207 of file OutputStream.h.
References StlOutputStream().
|
inlinevirtualinherited |
Implements bpp::OutputStream.
Definition at line 122 of file OutputStream.h.
References bpp::AbstractOutputStream::scienceNotation_.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtualinherited |
Implements bpp::OutputStream.
Definition at line 120 of file OutputStream.h.
References bpp::AbstractOutputStream::precision_.
Referenced by operator<<(), bpp::StlOutputStreamWrapper::operator<<(), bpp::StdOut::operator<<(), and bpp::StdErr::operator<<().
|
inlinevirtualinherited |
Implements bpp::OutputStream.
Definition at line 123 of file OutputStream.h.
References bpp::AbstractOutputStream::scienceNotation_.
Referenced by operator<<(), bpp::StlOutputStreamWrapper::operator<<(), bpp::StdOut::operator<<(), and bpp::StdErr::operator<<().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Implements bpp::OutputStream.
Definition at line 191 of file OutputStream.h.
References bpp::AbstractOutputStream::getPrecision(), bpp::AbstractOutputStream::isScientificNotationEnabled(), and stream_.
|
inlinevirtual |
Implements bpp::OutputStream.
Definition at line 197 of file OutputStream.h.
References bpp::AbstractOutputStream::getPrecision(), bpp::AbstractOutputStream::isScientificNotationEnabled(), and stream_.
|
inlinevirtual |
|
inline |
Definition at line 177 of file OutputStream.h.
References stream_.
|
inlinevirtualinherited |
Implements bpp::OutputStream.
Definition at line 115 of file OutputStream.h.
References bpp::AbstractOutputStream::precision_.
|
mutableprivate |
Definition at line 172 of file OutputStream.h.
Referenced by endLine(), flush(), operator<<(), and operator=().