StuBS
outputstream.cc File Reference
#include "outputstream.h"
Include dependency graph for outputstream.cc:

Functions

OutputStream & flush (OutputStream &os)
 Enforces a buffer flush.
 
OutputStream & endl (OutputStream &os)
 Prints a newline character to the stream and issues a buffer flush.
 
OutputStream & bin (OutputStream &os)
 Print subsequent numbers in binary form.
 
OutputStream & oct (OutputStream &os)
 Print subsequent numbers in octal form.
 
OutputStream & dec (OutputStream &os)
 Print subsequent numbers in decimal form.
 
OutputStream & hex (OutputStream &os)
 Print subsequent numbers in hex form.
 

Function Documentation

◆ flush()

OutputStream & flush ( OutputStream &  os)

Enforces a buffer flush.

Parameters
osReference to stream to be flushed.
Returns
Reference to OutputStream os; allows operator chaining.

◆ endl()

OutputStream & endl ( OutputStream &  os)

Prints a newline character to the stream and issues a buffer flush.

Parameters
osReference to stream to be modified.
Returns
Reference to OutputStream os; allows operator chaining.

◆ bin()

OutputStream & bin ( OutputStream &  os)

Print subsequent numbers in binary form.

Parameters
osReference to stream to be modified.
Returns
Reference to OutputStream os; allows operator chaining.

◆ oct()

OutputStream & oct ( OutputStream &  os)

Print subsequent numbers in octal form.

Parameters
osReference to stream to be modified.
Returns
Reference to OutputStream os; allows operator chaining.

◆ dec()

OutputStream & dec ( OutputStream &  os)

Print subsequent numbers in decimal form.

Parameters
osReference to stream to be modified.
Returns
Reference to OutputStream os; allows operator chaining.

◆ hex()

OutputStream & hex ( OutputStream &  os)

Print subsequent numbers in hex form.

Parameters
osReference to stream to be modified.
Returns
Reference to OutputStream os; allows operator chaining.