issue#11: tests/unit: changed .h file guard prefix to CDSUNIT_xxx
[libcds.git] / tests / unit / print_mspriorityqueue_stat.h
1 //$$CDS-header$$
2
3 #ifndef CDSUNIT_PRINT_MSPRIORITYQUEUE_STAT_H
4 #define CDSUNIT_PRINT_MSPRIORITYQUEUE_STAT_H
5
6 #include <cds/container/mspriority_queue.h>
7
8 namespace std {
9     static inline ostream& operator <<( ostream& o, cds::container::mspriority_queue::empty_stat const& /*s*/ )
10     {
11         return o;
12     }
13
14     static inline ostream& operator <<( ostream& o, cds::container::mspriority_queue::stat<> const& s )
15     {
16         return o << "\nMSPriorityQueue statistis [cds::container::mspriority_queue::stat]:\n"
17             << "\t\t            Success push count: " << s.m_nPushCount.get() << "\n"
18             << "\t\t             Success pop count: " << s.m_nPopCount.get() << "\n"
19             << "\t\tFailed push count (full queue): " << s.m_nPushFailCount.get() << "\n"
20             << "\t\tFailed pop count (empty queue): " << s.m_nPopFailCount.get() << "\n"
21             << "\t\t          Heapify swap on push: " << s.m_nPushHeapifySwapCount.get() << "\n"
22             << "\t\t           Heapify swap on pop: " << s.m_nPopHeapifySwapCount.get() << "\n";
23     }
24 }
25
26 #endif // #ifndef CDSUNIT_PRINT_MSPRIORITYQUEUE_STAT_H