/******************************************************************* * * 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 #include #include #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 inline ostream &operator <<( ostream& os, pair &p ) { os << p.first << "/" << p.second; return os; } template inline ostream &operator<<( ostream &os, list t ) { for( list::iterator cursor = t.begin(); cursor != t.end() ; os << *cursor++ << endl ) ; return os; } inline void PrintList( const TransportDelayCell::Queue &q ) { cout << q; } #endif // __DEBUG_H