#include <debug.h>
Collaboration diagram for Dv::Util::Debug< T >:
Public Member Functions | |
Debug (const T &t) | |
Constructor. | |
Private Member Functions | |
Debug (const Debug< T > &) | |
Debug< T > | operator= (Debug< T > &) |
Private Attributes | |
const T & | t_ |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Debug< T > &d) |
Print Debug version of object. |
This is useful if e.g. operator<<(ostream&, T) is already used. In such a case, one defines a const member T::Debug(ostream&) and then uses it as in the fragment below.
T t;
cout << "T object=\n" << Debug<T>(t) << std::endl;
Definition at line 19 of file debug.h.
|
Constructor.
References Dv::Util::Debug< T >::t_. |
|
|
|
|
|
Print Debug version of object.
|
|
Definition at line 36 of file debug.h. Referenced by Dv::Util::Debug< T >::Debug(). |
dvutil-0.13.15 | [30 December, 2004] |