#include <lintree.h>
Definition at line 24 of file lintree.h.
◆ LinTree() [1/3]
LinTree::LinTree::LinTree |
( |
| ) |
|
◆ LinTree() [2/3]
◆ ~LinTree()
LinTree::LinTree::~LinTree |
( |
| ) |
|
◆ LinTree() [3/3]
LinTree::LinTree::LinTree |
( |
std::string & |
source | ) |
|
◆ clear()
void LinTree::LinTree::clear |
( |
| ) |
|
|
inline |
◆ error_msg()
const char * LinTree::LinTree::error_msg |
( |
| ) |
|
|
inline |
◆ get()
T LinTree::LinTree::get |
( |
| ) |
|
|
inline |
◆ get_addr()
const char * LinTree::LinTree::get_addr |
( |
| ) |
|
|
inline |
◆ get_bytes()
const char * LinTree::LinTree::get_bytes |
( |
size_t |
n | ) |
|
|
inline |
◆ get_cstring()
const char * LinTree::LinTree::get_cstring |
( |
| ) |
|
|
inline |
◆ get_int()
int LinTree::LinTree::get_int |
( |
| ) |
|
|
inline |
Definition at line 68 of file lintree.h.
68 {
69 return get<int>();
70 }
◆ get_last_ring()
void * LinTree::LinTree::get_last_ring |
( |
| ) |
|
|
inline |
◆ get_prev()
T LinTree::LinTree::get_prev |
( |
| ) |
|
|
inline |
◆ get_size()
size_t LinTree::LinTree::get_size |
( |
| ) |
|
|
inline |
Definition at line 71 of file lintree.h.
71 {
72 return get<size_t>();
73 }
◆ has_error()
int LinTree::LinTree::has_error |
( |
| ) |
|
|
inline |
◆ has_last_ring()
int LinTree::LinTree::has_last_ring |
( |
| ) |
|
|
inline |
◆ mark_error()
void LinTree::LinTree::mark_error |
( |
const char * |
s | ) |
|
|
inline |
Definition at line 38 of file lintree.h.
38 {
40 }
const CanonicalForm int s
◆ operator=()
Definition at line 888 of file lintree.cc.
888 {
893 return *this;
894}
◆ put()
void LinTree::LinTree::put |
( |
T |
data | ) |
|
|
inline |
Definition at line 61 of file lintree.h.
61 {
62 memory.append((
const char *) &data,
sizeof(
T));
63 }
◆ put_bytes()
void LinTree::LinTree::put_bytes |
( |
char * |
p, |
|
|
size_t |
n |
|
) |
| |
|
inline |
◆ put_cstring()
void LinTree::LinTree::put_cstring |
( |
char * |
p | ) |
|
|
inline |
Definition at line 99 of file lintree.h.
99 {
100 size_t n = strlen(
p);
103 }
void put_bytes(char *p, size_t n)
◆ put_int()
void LinTree::LinTree::put_int |
( |
int |
code | ) |
|
|
inline |
◆ reserve_bytes()
char * LinTree::LinTree::reserve_bytes |
( |
size_t |
n | ) |
|
|
inline |
Definition at line 91 of file lintree.h.
91 {
92 size_t pos =
memory.size();
94 for (
size_t i = 0;
i < n;
i++) {
96 }
97 return (
char *)(
memory.c_str() + pos);
98 }
◆ rewind()
void LinTree::LinTree::rewind |
( |
| ) |
|
|
inline |
◆ set_last_ring()
void LinTree::LinTree::set_last_ring |
( |
void * |
r | ) |
|
Definition at line 900 of file lintree.cc.
900 {
905}
static ring rIncRefCnt(ring r)
◆ skip()
void LinTree::LinTree::skip |
( |
| ) |
|
|
inline |
◆ skip_bytes()
void LinTree::LinTree::skip_bytes |
( |
size_t |
n | ) |
|
|
inline |
◆ skip_cstring()
void LinTree::LinTree::skip_cstring |
( |
| ) |
|
|
inline |
◆ skip_int()
void LinTree::LinTree::skip_int |
( |
| ) |
|
|
inline |
Definition at line 77 of file lintree.h.
77 {
78 skip<int>();
79 }
◆ to_string()
std::string & LinTree::LinTree::to_string |
( |
| ) |
|
|
inline |
◆ cursor
size_t LinTree::LinTree::cursor |
|
private |
◆ error
const char* LinTree::LinTree::error |
|
private |
◆ last_ring
void* LinTree::LinTree::last_ring |
|
private |
◆ memory
std::string& LinTree::LinTree::memory |
|
private |
The documentation for this class was generated from the following files: