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

Functions

OutputStreamflush (OutputStream &os)
 Enforces a buffer flush.
 
OutputStreamendl (OutputStream &os)
 Prints a newline character to the stream and issues a buffer flush.
 
OutputStreambin (OutputStream &os)
 Print subsequent numbers in binary form.
 
OutputStreamoct (OutputStream &os)
 Print subsequent numbers in octal form.
 
OutputStreamdec (OutputStream &os)
 Print subsequent numbers in decimal form.
 
OutputStreamhex (OutputStream &os)
 Print subsequent numbers in hex form.
 

Function Documentation

◆ flush()

OutputStream & flush ( OutputStream os)

Enforces a buffer flush.

Todo:
Implement Manipulator
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.

Todo:
Implement Manipulator
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.

Todo:
Implement Manipulator
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.

Todo:
Implement Manipulator
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.

Todo:
Implement Manipulator
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.

Todo:
Implement Manipulator
Parameters
osReference to stream to be modified.
Returns
Reference to OutputStream os; allows operator chaining.