Effective implementation of algorithms (Master Thesis)
Effective and error-free implementation of algorithms
src/debug/ppdebug.h File Reference
Include dependency graph for ppdebug.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define D(var)   { cout << #var << ": " << (var) << endl; }
#define TPL_T   template <class T>
#define TPL_ST   template <class S, class T>
#define OSTREAM(X...)   ostream& operator << (ostream &out, const X& temp)
#define _OUT(X, Y...)

Functions

TPL_ST OSTREAM (pair< S, T >)
TPL_T OSTREAM (pair< T *, T * >)
 _OUT (TPL_T, vector< T >)
 _OUT (TPL_T, list< T >)
 _OUT (TPL_T, set< T >)
 _OUT (TPL_T, multiset< T >)
 _OUT (TPL_ST, map< S, T >)
 _OUT (TPL_ST, multimap< S, T >)
 _OUT (TPL_ST, set< S, T >)

Define Documentation

#define _OUT (   X,
  Y... 
)
Value:
X OSTREAM(Y) { \
        out << "[ "; FOREACH(it, temp) out << *it << ", "; out << "]"; \
        return out; };
#define D (   var)    { cout << #var << ": " << (var) << endl; }
#define OSTREAM (   X...)    ostream& operator << (ostream &out, const X& temp)
#define TPL_ST   template <class S, class T>
#define TPL_T   template <class T>

Function Documentation

_OUT ( TPL_T  ,
vector< T >   
)
_OUT ( TPL_ST  ,
set< S, T >   
)
_OUT ( TPL_T  ,
list< T >   
)
_OUT ( TPL_ST  ,
map< S, T >   
)
_OUT ( TPL_ST  ,
multimap< S, T >   
)
_OUT ( TPL_T  ,
set< T >   
)
_OUT ( TPL_T  ,
multiset< T >   
)
TPL_T OSTREAM ( pair< T *, T * >  )
TPL_ST OSTREAM ( pair< S, T >  )
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines