bpp-core3
3.0.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::unique_ptr< std::ostream > | stream_ |
int | precision_ |
bool | scienceNotation_ |
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 155 of file OutputStream.h.
|
inline |
Definition at line 162 of file OutputStream.h.
Referenced by clone().
|
inline |
Definition at line 163 of file OutputStream.h.
References stream_.
|
inlinevirtual |
Create a copy of this object and send a pointer to it.
Implements bpp::OutputStream.
Definition at line 194 of file OutputStream.h.
References StlOutputStream().
|
inlinevirtualinherited |
Implements bpp::OutputStream.
Definition at line 117 of file OutputStream.h.
References bpp::AbstractOutputStream::scienceNotation_.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtualinherited |
Implements bpp::OutputStream.
Definition at line 115 of file OutputStream.h.
References bpp::AbstractOutputStream::precision_.
Referenced by bpp::StdErr::operator<<(), operator<<(), bpp::StlOutputStreamWrapper::operator<<(), and bpp::StdOut::operator<<().
|
inlinevirtualinherited |
Implements bpp::OutputStream.
Definition at line 118 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 |
Implements bpp::OutputStream.
Definition at line 178 of file OutputStream.h.
References bpp::AbstractOutputStream::getPrecision(), bpp::AbstractOutputStream::isScientificNotationEnabled(), and stream_.
|
inlinevirtual |
|
inlinevirtual |
Implements bpp::OutputStream.
Definition at line 184 of file OutputStream.h.
References bpp::AbstractOutputStream::getPrecision(), bpp::AbstractOutputStream::isScientificNotationEnabled(), and stream_.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inline |
Definition at line 164 of file OutputStream.h.
References stream_.
|
inlinevirtualinherited |
Implements bpp::OutputStream.
Definition at line 110 of file OutputStream.h.
References bpp::AbstractOutputStream::precision_.
|
privateinherited |
Definition at line 103 of file OutputStream.h.
Referenced by bpp::AbstractOutputStream::getPrecision(), and bpp::AbstractOutputStream::setPrecision().
|
privateinherited |
Definition at line 104 of file OutputStream.h.
Referenced by bpp::AbstractOutputStream::enableScientificNotation(), and bpp::AbstractOutputStream::isScientificNotationEnabled().
|
mutableprivate |
Definition at line 159 of file OutputStream.h.
Referenced by endLine(), flush(), operator<<(), operator=(), and StlOutputStream().