Files
mlpack/fastlib/base/otrav.cc
T
2007-07-03 03:25:48 +00:00

27 lines
508 B
C++

/**
* @file otrav.cc
*
* Definitions for object-traversal.
*
* Very little is defined here since pretty much every part of OT is
* templated.
*/
#include "otrav.h"
namespace ot_private {
void OTPrinter::ShowIndents() {
for (int i = 0; i < indent_amount_; i++) {
putc(' ', stream_);
}
}
void OTPrinter::Write(const char *format, ...) {
va_list vl;
ShowIndents();
va_start(vl, format);
vfprintf(stream_, format, vl);
va_end(vl);
putc('\n', stream_);
}
};