klee
|
#include <TreeStream.h>
Public Member Functions | |
TreeStreamWriter (const std::string &_path) | |
~TreeStreamWriter () | |
bool | good () |
TreeOStream | open () |
TreeOStream | open (const TreeOStream &node) |
void | flush () |
void | readStream (TreeStreamID id, std::vector< unsigned char > &out) |
Private Member Functions | |
void | write (TreeOStream &os, const char *s, unsigned size) |
void | flushBuffer () |
Private Attributes | |
char | buffer [bufferSize] |
unsigned | lastID |
unsigned | bufferCount |
std::string | path |
std::ofstream * | output |
unsigned | ids |
Static Private Attributes | |
static const unsigned | bufferSize = 4*4096 |
Friends | |
class | TreeOStream |
Definition at line 21 of file TreeStream.h.
TreeStreamWriter::TreeStreamWriter | ( | const std::string & | _path | ) |
Definition at line 28 of file TreeStream.cpp.
References output.
TreeStreamWriter::~TreeStreamWriter | ( | ) |
Definition at line 41 of file TreeStream.cpp.
References flush(), and output.
void TreeStreamWriter::flush | ( | ) |
Definition at line 91 of file TreeStream.cpp.
References flushBuffer(), and output.
Referenced by klee::TreeOStream::flush(), readStream(), and ~TreeStreamWriter().
|
private |
Definition at line 82 of file TreeStream.cpp.
References buffer, bufferCount, lastID, and output.
Referenced by flush(), open(), and write().
bool TreeStreamWriter::good | ( | ) |
Definition at line 46 of file TreeStream.cpp.
References output.
Referenced by KleeHandler::setInterpreter().
TreeOStream TreeStreamWriter::open | ( | ) |
Definition at line 50 of file TreeStream.cpp.
References open(), and TreeOStream.
Referenced by klee::Executor::fork(), open(), and klee::Executor::runFunctionAsMain().
TreeOStream TreeStreamWriter::open | ( | const TreeOStream & | node | ) |
Definition at line 54 of file TreeStream.cpp.
References flushBuffer(), klee::TreeOStream::id, ids, output, TreeOStream, and klee::TreeOStream::writer.
void TreeStreamWriter::readStream | ( | TreeStreamID | id, |
std::vector< unsigned char > & | out | ||
) |
Definition at line 96 of file TreeStream.cpp.
References flush(), ids, and path.
Referenced by KleeHandler::processTestCase().
|
private |
Definition at line 64 of file TreeStream.cpp.
References buffer, bufferCount, bufferSize, flushBuffer(), klee::TreeOStream::id, lastID, and output.
Referenced by klee::TreeOStream::write().
|
friend |
Definition at line 24 of file TreeStream.h.
Referenced by open().
|
private |
Definition at line 27 of file TreeStream.h.
Referenced by flushBuffer(), and write().
|
private |
Definition at line 28 of file TreeStream.h.
Referenced by flushBuffer(), and write().
|
staticprivate |
Definition at line 22 of file TreeStream.h.
Referenced by write().
|
private |
Definition at line 32 of file TreeStream.h.
Referenced by open(), and readStream().
|
private |
Definition at line 28 of file TreeStream.h.
Referenced by flushBuffer(), and write().
|
private |
Definition at line 31 of file TreeStream.h.
Referenced by flush(), flushBuffer(), good(), open(), TreeStreamWriter(), write(), and ~TreeStreamWriter().
|
private |
Definition at line 30 of file TreeStream.h.
Referenced by readStream().