My Project
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions
CxxTest::ErrorPrinter::Adapter Class Reference

Public Member Functions

 Adapter (CXXTEST_STD(ostream) &o)
 
void flush ()
 
OutputStreamoperator<< (const char *s)
 
OutputStreamoperator<< (Manipulator m)
 
OutputStreamoperator<< (unsigned i)
 
- Public Member Functions inherited from CxxTest::OutputStream
virtual ~OutputStream ()
 
virtual void flush ()
 
virtual OutputStreamoperator<< (unsigned)
 
virtual OutputStreamoperator<< (const char *)
 
virtual OutputStreamoperator<< (Manipulator m)
 

Private Member Functions

 CXXTEST_STD (ostream) &_o
 

Additional Inherited Members

- Public Types inherited from CxxTest::OutputStream
typedef void(* Manipulator) (OutputStream &)
 
- Static Public Member Functions inherited from CxxTest::OutputStream
static void endl (OutputStream &o)
 

Detailed Description

Definition at line 36 of file ErrorPrinter.h.

Constructor & Destructor Documentation

◆ Adapter()

CxxTest::ErrorPrinter::Adapter::Adapter ( CXXTEST_STD(ostream) &  o)
inline

Definition at line 40 of file ErrorPrinter.h.

40: _o(o) {}

Member Function Documentation

◆ CXXTEST_STD()

CxxTest::ErrorPrinter::Adapter::CXXTEST_STD ( ostream  ) &
private

◆ flush()

void CxxTest::ErrorPrinter::Adapter::flush ( )
inlinevirtual

Reimplemented from CxxTest::OutputStream.

Definition at line 41 of file ErrorPrinter.h.

41{ _o.flush(); }
virtual void flush()

◆ operator<<() [1/3]

OutputStream & CxxTest::ErrorPrinter::Adapter::operator<< ( const char *  s)
inlinevirtual

Reimplemented from CxxTest::OutputStream.

Definition at line 42 of file ErrorPrinter.h.

42{ _o << s; return *this; }
char * s
Definition: ValueTraits.h:143

◆ operator<<() [2/3]

OutputStream & CxxTest::ErrorPrinter::Adapter::operator<< ( Manipulator  m)
inlinevirtual

Reimplemented from CxxTest::OutputStream.

Definition at line 43 of file ErrorPrinter.h.

43{ return OutputStream::operator<<( m ); }
int m
Definition: cfEzgcd.cc:128
virtual OutputStream & operator<<(unsigned)

◆ operator<<() [3/3]

OutputStream & CxxTest::ErrorPrinter::Adapter::operator<< ( unsigned  i)
inlinevirtual

Reimplemented from CxxTest::OutputStream.

Definition at line 44 of file ErrorPrinter.h.

45 {
46 char s[1 + 3 * sizeof(unsigned)];
47 numberToString( i, s );
48 _o << s;
49 return *this;
50 }
int i
Definition: cfEzgcd.cc:132

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