ETISS 0.8.0
Extendable Translating Instruction Set Simulator (version 0.8.0)
|
#include <FastString.h>
Public Member Functions | |
template<typename... T> | |
form_string (T... str) | |
template<typename T > | |
std::enable_if< std::is_integral< T >::value, void > | write_dec (unsigned field, T value) |
void | write (unsigned field, const char *buf, size_t length) |
void | writet (unsigned field, const char *buf, size_t length, char terminator=' ', char fill=' ') |
char * | c_str () |
const char * | c_str () const |
Private Member Functions | |
size_t | char_size (unsigned, size_t *, bool *) |
terminates template recursion More... | |
template<typename... O> | |
size_t | char_size (unsigned pos, size_t *size, bool *isPlaceholder, const char *s, O... others) |
template<typename... O> | |
size_t | char_size (unsigned pos, size_t *size, bool *isPlaceholder, size_t len, O... others) |
void | char_copy (unsigned, char *, size_t *) |
terminates template recursion More... | |
template<typename... O> | |
void | char_copy (unsigned pos, char *buf, size_t *size, const char *s, O... others) |
template<typename... O> | |
void | char_copy (unsigned pos, char *buf, size_t *size, size_t, O... others) |
Private Attributes | |
char * | buffer |
size_t | size |
std::vector< std::pair< size_t, size_t > > | fields |
list of field in the form_string. (offset,length) pairs More... | |
Definition at line 80 of file FastString.h.
|
inline |
Definition at line 123 of file FastString.h.
References buffer, char_copy(), char_size(), fields, size, and get_metrics::str.
|
inline |
Definition at line 215 of file FastString.h.
References buffer.
Referenced by etiss::string::operator<<().
|
inline |
Definition at line 216 of file FastString.h.
References buffer.
|
inlineprivate |
Definition at line 109 of file FastString.h.
References char_copy(), memcpy(), s, and size.
|
inlineprivate |
Definition at line 115 of file FastString.h.
References char_copy(), memset(), and size.
|
inlineprivate |
terminates template recursion
Definition at line 107 of file FastString.h.
Referenced by char_copy(), and form_string().
|
inlineprivate |
Definition at line 91 of file FastString.h.
References char_size(), s, and size.
|
inlineprivate |
Definition at line 98 of file FastString.h.
References char_size(), and size.
terminates template recursion
Definition at line 89 of file FastString.h.
Referenced by char_size(), and form_string().
|
inline |
Definition at line 179 of file FastString.h.
References buffer, ETISS_SRCLOC, etiss::FATALERROR, fields, length(), etiss::log(), memcpy(), and memset().
|
inline |
Definition at line 149 of file FastString.h.
References buffer, c, ETISS_SRCLOC, etiss::FATALERROR, fields, and etiss::log().
|
inline |
Definition at line 196 of file FastString.h.
References buffer, ETISS_SRCLOC, etiss::FATALERROR, fields, length(), etiss::log(), memcpy(), and memset().
|
private |
Definition at line 83 of file FastString.h.
Referenced by c_str(), form_string(), write(), write_dec(), and writet().
list of field in the form_string. (offset,length) pairs
Definition at line 85 of file FastString.h.
Referenced by form_string(), write(), write_dec(), and writet().
|
private |
Definition at line 84 of file FastString.h.
Referenced by char_copy(), char_size(), and form_string().