MBDyn-1.7.3
|
#include <mbstrbuf.h>
Public Member Functions | |
mbstrbuf (unsigned l=0) | |
std::ostream & | stats (std::ostream &out) |
void | make_room (unsigned newlen) |
void | return_cursor (unsigned newcursor=0) |
void | print_str (const char *str) |
void | print_double (const char *fmt, double d) |
const char * | get_buf (void) const |
unsigned | get_len (void) const |
Private Attributes | |
unsigned | len |
unsigned | cursor |
char * | buf |
Friends | |
std::ostream & | operator<< (std::ostream &, const mbstrbuf &) |
Definition at line 37 of file mbstrbuf.h.
|
inline |
Definition at line 46 of file mbstrbuf.h.
const char * mbstrbuf::get_buf | ( | void | ) | const |
Definition at line 99 of file mbstrbuf.cc.
References buf.
unsigned mbstrbuf::get_len | ( | void | ) | const |
Definition at line 105 of file mbstrbuf.cc.
References len.
void mbstrbuf::make_room | ( | unsigned | newlen | ) |
Definition at line 47 of file mbstrbuf.cc.
References buf, cursor, and len.
Referenced by print_double(), and print_str().
void mbstrbuf::print_double | ( | const char * | fmt, |
double | d | ||
) |
Definition at line 83 of file mbstrbuf.cc.
References buf, cursor, len, and make_room().
void mbstrbuf::print_str | ( | const char * | str | ) |
Definition at line 65 of file mbstrbuf.cc.
References buf, cursor, len, and make_room().
void mbstrbuf::return_cursor | ( | unsigned | newcursor = 0 | ) |
Definition at line 58 of file mbstrbuf.cc.
References cursor.
std::ostream & mbstrbuf::stats | ( | std::ostream & | out | ) |
Definition at line 40 of file mbstrbuf.cc.
|
friend |
Definition at line 111 of file mbstrbuf.cc.
|
private |
Definition at line 43 of file mbstrbuf.h.
Referenced by get_buf(), make_room(), mbstrbuf(), operator<<(), print_double(), and print_str().
|
private |
Definition at line 42 of file mbstrbuf.h.
Referenced by make_room(), print_double(), print_str(), return_cursor(), and stats().
|
private |
Definition at line 41 of file mbstrbuf.h.
Referenced by get_len(), make_room(), mbstrbuf(), print_double(), print_str(), and stats().