-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug.h
More file actions
59 lines (49 loc) · 1.14 KB
/
Copy pathdebug.h
File metadata and controls
59 lines (49 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*******************************************************************
*
* DESCRIPTION: just for debuggin purposes
*
* AUTHOR: Amir Barylko & Jorge Beyoglonian
*
* EMAIL: mailto://amir@dc.uba.ar
* mailto://jbeyoglo@dc.uba.ar
*
* DATE: 27/6/1998
*
*******************************************************************/
#ifndef __DEBUG_H
#define __DEBUG_H
/** include files **/
#include <iostream>
#include <list>
#include <utility>
#include "tdcell.h"
/** foward declarations **/
/** declarations **/
class NeighborhoodValue ;
class Port ;
class AtomicCell ;
class CellState ;
void PrintInfluences( const Port & );
void PrintNeighbors( NeighborhoodValue & ) ;
void PrintCellState( CellState & ) ;
/** inline **/
template <class X, class Y>
inline
ostream &operator <<( std::ostream& os, pair<X,Y> &p )
{
os << p.first << "/" << p.second;
return os;
}
template <class T>
inline
ostream &operator<<( std::ostream &os, std::list<T> t )
{
for( std::list<T>::iterator cursor = t.begin(); cursor != t.end() ; os << *cursor++ << std::endl ) ;
return os;
}
inline
void PrintList( const TransportDelayCell::Queue &q )
{
cout << q;
}
#endif // __DEBUG_H