#include <trace-utilization.h>
Public Member Functions | |
compressedBuffer () | |
compressedBuffer (int bytes) | |
compressedBuffer (void *buffer) | |
void | init (void *buffer) |
void * | currentPtr () |
template<typename T> | |
T | read (int offset) |
template<typename T> | |
void | write (T v, int offset) |
template<typename T> | |
void | increment (int offset) |
template<typename T> | |
void | accumulate (T v, int offset) |
template<typename T> | |
int | push (T v) |
template<typename T> | |
T | pop () |
template<typename T> | |
T | peek () |
template<typename T0, typename T> | |
T | peekSecond () |
int | datalength () |
void * | buffer () |
void | freeBuf () |
~compressedBuffer () | |
compressedBuffer () | |
compressedBuffer (int bytes) | |
compressedBuffer (void *buffer) | |
void | init (void *buffer) |
void * | currentPtr () |
template<typename T> | |
T | read (int offset) |
template<typename T> | |
void | write (T v, int offset) |
template<typename T> | |
void | increment (int offset) |
template<typename T> | |
void | accumulate (T v, int offset) |
template<typename T> | |
int | push (T v) |
template<typename T> | |
T | pop () |
template<typename T> | |
T | peek () |
template<typename T0, typename T> | |
T | peekSecond () |
int | datalength () |
void * | buffer () |
void | freeBuf () |
~compressedBuffer () | |
Data Fields | |
char * | buf |
int | pos |
< byte position just beyond the previously read/written data | |
char * | buf |
This class exists because I need to get references to parts of the buffer that have already been used so that I can increment counters inside the buffer.
Definition at line 39 of file trace-summary.C.
compressedBuffer::compressedBuffer | ( | ) | [inline] |
compressedBuffer::compressedBuffer | ( | int | bytes | ) | [inline] |
Definition at line 94 of file trace-utilization.h.
References buf, malloc(), and pos.
compressedBuffer::compressedBuffer | ( | void * | buffer | ) | [inline] |
compressedBuffer::~compressedBuffer | ( | ) | [inline] |
Definition at line 184 of file trace-utilization.h.
void compressedBuffer::init | ( | void * | buffer | ) | [inline] |
void* compressedBuffer::currentPtr | ( | ) | [inline] |
T compressedBuffer::read | ( | int | offset | ) | [inline] |
void compressedBuffer::write | ( | T | v, | |
int | offset | |||
) | [inline] |
void compressedBuffer::increment | ( | int | offset | ) | [inline] |
Definition at line 129 of file trace-utilization.h.
void compressedBuffer::accumulate | ( | T | v, | |
int | offset | |||
) | [inline] |
Definition at line 137 of file trace-utilization.h.
int compressedBuffer::push | ( | T | v | ) | [inline] |
T compressedBuffer::pop | ( | ) | [inline] |
T compressedBuffer::peek | ( | ) | [inline] |
T compressedBuffer::peekSecond | ( | ) | [inline] |
int compressedBuffer::datalength | ( | ) | [inline] |
void* compressedBuffer::buffer | ( | ) | [inline] |
void compressedBuffer::freeBuf | ( | ) | [inline] |
char* compressedBuffer::buf |
Definition at line 41 of file trace-summary.C.
Referenced by buffer(), compressedBuffer(), currentPtr(), freeBuf(), init(), peekSecond(), read(), and write().
char* compressedBuffer::buf |
Definition at line 86 of file trace-utilization.h.