bpp-core3  3.0.0
bpp::AbstractOutputStream Class Referenceabstract

Helper implementation of the OutputStream interface. More...

#include <Bpp/Io/OutputStream.h>

+ Inheritance diagram for bpp::AbstractOutputStream:
+ Collaboration diagram for bpp::AbstractOutputStream:

Public Member Functions

 AbstractOutputStream ()
 
OutputStreamsetPrecision (int digit)
 
int getPrecision () const
 
virtual OutputStreamenableScientificNotation (bool yn)
 
virtual bool isScientificNotationEnabled () const
 
virtual OutputStreamoperator<< (const std::string &message)=0
 
virtual OutputStreamoperator<< (const char *message)=0
 
virtual OutputStreamoperator<< (const char &message)=0
 
virtual OutputStreamoperator<< (const int &message)=0
 
virtual OutputStreamoperator<< (const unsigned int &message)=0
 
virtual OutputStreamoperator<< (const long int &message)=0
 
virtual OutputStreamoperator<< (const unsigned long int &message)=0
 
virtual OutputStreamoperator<< (const double &message)=0
 
virtual OutputStreamoperator<< (const long double &message)=0
 
virtual OutputStreamoperator<< (const bool &message)=0
 
virtual OutputStreamendLine ()=0
 
virtual OutputStreamflush ()=0
 
The Clonable interface.
OutputStreamclone () const =0
 Create a copy of this object and send a pointer to it. More...
 

Private Attributes

int precision_
 
bool scienceNotation_
 

Detailed Description

Helper implementation of the OutputStream interface.

Definition at line 63 of file OutputStream.h.

Constructor & Destructor Documentation

◆ AbstractOutputStream()

bpp::AbstractOutputStream::AbstractOutputStream ( )
inline

Definition at line 71 of file OutputStream.h.

Member Function Documentation

◆ clone()

OutputStream* bpp::OutputStream::clone ( ) const
pure virtualinherited

Create a copy of this object and send a pointer to it.

Returns
A pointer toward the copy object.

Implements bpp::Clonable.

Implemented in bpp::StdErr, bpp::StdOut, bpp::StlOutputStreamWrapper, bpp::StlOutputStream, and bpp::NullOutputStream.

◆ enableScientificNotation()

virtual OutputStream& bpp::AbstractOutputStream::enableScientificNotation ( bool  yn)
inlinevirtual

Implements bpp::OutputStream.

Definition at line 81 of file OutputStream.h.

◆ endLine()

◆ flush()

virtual OutputStream& bpp::OutputStream::flush ( )
pure virtualinherited

◆ getPrecision()

int bpp::AbstractOutputStream::getPrecision ( ) const
inlinevirtual

Implements bpp::OutputStream.

Definition at line 79 of file OutputStream.h.

◆ isScientificNotationEnabled()

virtual bool bpp::AbstractOutputStream::isScientificNotationEnabled ( ) const
inlinevirtual

Implements bpp::OutputStream.

Definition at line 82 of file OutputStream.h.

◆ operator<<() [1/10]

virtual OutputStream& bpp::OutputStream::operator<< ( const std::string &  message)
pure virtualinherited

◆ operator<<() [2/10]

virtual OutputStream& bpp::OutputStream::operator<< ( const char *  message)
pure virtualinherited

◆ operator<<() [3/10]

virtual OutputStream& bpp::OutputStream::operator<< ( const char &  message)
pure virtualinherited

◆ operator<<() [4/10]

virtual OutputStream& bpp::OutputStream::operator<< ( const int &  message)
pure virtualinherited

◆ operator<<() [5/10]

virtual OutputStream& bpp::OutputStream::operator<< ( const unsigned int &  message)
pure virtualinherited

◆ operator<<() [6/10]

virtual OutputStream& bpp::OutputStream::operator<< ( const long int &  message)
pure virtualinherited

◆ operator<<() [7/10]

virtual OutputStream& bpp::OutputStream::operator<< ( const unsigned long int &  message)
pure virtualinherited

◆ operator<<() [8/10]

virtual OutputStream& bpp::OutputStream::operator<< ( const double &  message)
pure virtualinherited

◆ operator<<() [9/10]

virtual OutputStream& bpp::OutputStream::operator<< ( const long double &  message)
pure virtualinherited

◆ operator<<() [10/10]

virtual OutputStream& bpp::OutputStream::operator<< ( const bool &  message)
pure virtualinherited

◆ setPrecision()

OutputStream& bpp::AbstractOutputStream::setPrecision ( int  digit)
inlinevirtual

Implements bpp::OutputStream.

Definition at line 74 of file OutputStream.h.

Member Data Documentation

◆ precision_

int bpp::AbstractOutputStream::precision_
private

Definition at line 67 of file OutputStream.h.

◆ scienceNotation_

bool bpp::AbstractOutputStream::scienceNotation_
private

Definition at line 68 of file OutputStream.h.


The documentation for this class was generated from the following file: