TuringSim
C++ framework to simulate abstract computing models
Static Public Member Functions | List of all members
TuringSim::Utils::Debug::Debug< CharT, Traits, T > Class Template Reference

A generic debug printer, defaulting to operator<< , when no specialization applies. More...

#include <utils/printer.h>

Static Public Member Functions

static std::basic_ostream< CharT, Traits > & print (std::basic_ostream< CharT, Traits > &os, const T &s)
 Printer function. More...
 

Detailed Description

template<typename CharT, typename Traits, typename T>
class TuringSim::Utils::Debug::Debug< CharT, Traits, T >

A generic debug printer, defaulting to operator<< , when no specialization applies.

A debug printer for many types.

Template Parameters
CharTchar type.
Traitsstd::basic_ostream trait.
Tthe element types in the queue.
CharTchar type.
Traitsstd::basic_ostream trait.
Tprinted type.

Definition at line 59 of file printer.h.

Member Function Documentation

◆ print()

template<typename CharT , typename Traits , typename T >
static std::basic_ostream<CharT, Traits>& TuringSim::Utils::Debug::Debug< CharT, Traits, T >::print ( std::basic_ostream< CharT, Traits > &  os,
const T &  s 
)
inlinestatic

Printer function.

Parameters
osoutput stream.
sobject to print.
Returns
a reference to os.

Definition at line 65 of file printer.h.

Here is the caller graph for this function:

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