Definition in file vsl_indent.h.
#include <vcl_iosfwd.h>
Go to the source code of this file.
Classes | |
| class | vsl_indent |
| Put indents into output streams, to produce more legible printed output. More... | |
Functions | |
| void | vsl_indent_inc (vcl_ostream &os) |
| Increments current indent for given stream. | |
| void | vsl_indent_dec (vcl_ostream &os) |
| Decrements current indent for given stream. | |
| void | vsl_indent_set_tab (vcl_ostream &os, int) |
| Set number of spaces per increment step. | |
| int | vsl_indent_tab (vcl_ostream &os) |
| Number of spaces per increment step. | |
| void | vsl_indent_clear (vcl_ostream &os) |
| Set indentation to zero. | |
| vcl_ostream & | operator<< (vcl_ostream &os, const vsl_indent &indent) |
| Outputs current indent to os. | |
| void | vsl_indent_clear_all_data () |
| Tidy up the internal indent map to remove potential memory leaks. | |
| vcl_ostream& operator<< | ( | vcl_ostream & | os, | |
| const vsl_indent & | indent | |||
| ) |
| void vsl_indent_clear | ( | vcl_ostream & | os | ) |
| void vsl_indent_clear_all_data | ( | ) |
Tidy up the internal indent map to remove potential memory leaks.
The details of indents for each stream are stored in a static map. When testing for memory leaks, this is flagged, creating lots of noise in the output of memory leak checkers. This call empties the map, removing the potential leak. Pragmatically it is called in the vsl_delete_all_loaders()
This should no longer be needed, since that static map was made a static inside the function indent_data() instead of a global one. - PVr. (B.t.w., purify on SGI's native compiler never showed a memory leak here.)
Definition at line 86 of file vsl_indent.cxx.
| void vsl_indent_dec | ( | vcl_ostream & | os | ) |
| void vsl_indent_inc | ( | vcl_ostream & | os | ) |
| void vsl_indent_set_tab | ( | vcl_ostream & | os, | |
| int | ||||
| ) |
| int vsl_indent_tab | ( | vcl_ostream & | os | ) |
1.5.1