Vcsn  2.8
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

◆ __HERE__

#define __HERE__   __FILE__ ":" << __LINE__

Definition at line 21 of file show.hh.

◆ SHOW

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

Definition at line 17 of file show.hh.

◆ SHOWH

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

Definition at line 23 of file show.hh.

◆ SHOWV

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

Definition at line 19 of file show.hh.

◆ V

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

Display S and its value.

Definition at line 10 of file show.hh.

◆ VV

#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.

Function Documentation

◆ operator<<() [1/4]

template<typename T , typename Compare , typename Alloc >
ostream& std::operator<< ( ostream &  o,
set< T, Compare, Alloc > &  ts 
)

Definition at line 29 of file show.hh.

◆ operator<<() [2/4]

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

Definition at line 45 of file show.hh.

◆ operator<<() [3/4]

template<typename Key , typename Hash , typename KeyEqual , typename Alloc >
ostream& std::operator<< ( ostream &  o,
unordered_set< Key, Hash, KeyEqual, Alloc > &  ts 
)

Definition at line 60 of file show.hh.

◆ operator<<() [4/4]

template<typename T , typename Alloc >
ostream& std::operator<< ( ostream &  o,
vector< T, Alloc > &  ts 
)

Definition at line 75 of file show.hh.