Vcsn  2.3
Be Rational
show.hh File Reference
#include <iostream>
#include <set>
#include <unordered_map>
#include <unordered_set>
#include <vector>
Include dependency graph for show.hh:

Go to the source code of this file.

Macros

#define V(S)    #S ": " << S << ' '
 Display S and its value. More...
 
#define VV(S)    "<" #S ":" __HERE__ << '>' << S << "</" << #S << '>'
 Display S and its value in pseudo XML tags, in case of nesting. More...
 
#define SHOW(S)   std::cerr << S << std::endl
 
#define SHOWV(S)   SHOW(V(S))
 
#define __HERE__   __FILE__ ": " << __LINE__
 
#define SHOWH(S)   SHOW(__HERE__ << ": " << S)
 

Functions

template<typename T , typename Compare , typename Alloc >
ostream & std::operator<< (ostream &o, set< T, Compare, Alloc > &ts)
 
template<typename Key , typename T , typename Hash , typename KeyEqual , typename Alloc >
ostream & std::operator<< (ostream &o, unordered_map< Key, T, Hash, KeyEqual, Alloc > &ts)
 
template<typename Key , typename Hash , typename KeyEqual , typename Alloc >
ostream & std::operator<< (ostream &o, unordered_set< Key, Hash, KeyEqual, Alloc > &ts)
 
template<typename T , typename Alloc >
ostream & std::operator<< (ostream &o, vector< T, Alloc > &ts)
 

Macro Definition Documentation

#define __HERE__   __FILE__ ": " << __LINE__

Definition at line 21 of file show.hh.

#define SHOW (   S)    std::cerr << S << std::endl

Definition at line 17 of file show.hh.

#define SHOWH (   S)    SHOW(__HERE__ << ": " << S)

Definition at line 23 of file show.hh.

#define SHOWV (   S)    SHOW(V(S))

Definition at line 19 of file show.hh.

#define V (   S)    #S ": " << S << ' '

Display S and its value.

Definition at line 10 of file show.hh.

#define VV (   S)    "<" #S ":" __HERE__ << '>' << S << "</" << #S << '>'

Display S and its value in pseudo XML tags, in case of nesting.

Definition at line 14 of file show.hh.