Aufgabe 5: Zeitscheiben
NullStream Class Reference
Ignore all data passed by the stream operator. More...
#include <debug/nullstream.h>
| Public Member Functions | |
| NullStream () | |
| Empty default constructor. | |
| template<typename T > | |
| NullStream & | operator<< (T value) | 
| Generic stream operator for any data type.  More... | |
Detailed Description
Ignore all data passed by the stream operator.
Can be used instead of the OutputStream if (for debugging reasons) all output should be ignored, e.g. for DBG_VERBOSE
By using template programming, a single generic methods is sufficient (which simply discard everything).
Member Function Documentation
template<typename T > 
| 
 | inline | 
Generic stream operator for any data type.
Uses template meta programming for a generic & short solution
- Template Parameters
- 
  T Type of data to ignore 
- Parameters
- 
  value data to be ignore 
- Returns
- Reference to the NullStream object allowing concatenation of operators
The documentation for this class was generated from the following file:
- debug/nullstream.h