SHOGUN
v3.0.0
|
shogun string
Definition at line 26 of file SGString.h.
Public Member Functions | |
SGString () | |
SGString (T *s, index_t l, bool free_s=false) | |
SGString (SGVector< T > v) | |
SGString (index_t len, bool free_s=false) | |
SGString (const SGString &orig) | |
bool | operator== (const SGString &other) const |
void | free_string () |
void | destroy_string () |
SGString< T > | get () |
void | load (CFile *loader) |
void | save (CFile *saver) |
Public Attributes | |
T * | string |
index_t | slen |
bool | do_free |
SGString | ( | ) |
default constructor
Definition at line 9 of file SGString.cpp.
constructor for setting params
Definition at line 12 of file SGString.cpp.
constructor for setting params from a SGVector
Definition at line 16 of file SGString.cpp.
constructor to create new string in memory
Definition at line 20 of file SGString.cpp.
copy constructor
Definition at line 27 of file SGString.cpp.
void destroy_string | ( | ) |
destroy string
Definition at line 57 of file SGString.cpp.
void free_string | ( | ) |
free string
Definition at line 46 of file SGString.cpp.
SGString<T> get | ( | ) |
get the string (no copying is done here)
Definition at line 58 of file SGString.h.
void load | ( | CFile * | loader | ) |
load string from file
loader | File object via which to load data |
Definition at line 63 of file SGString.cpp.
bool operator== | ( | const SGString< T > & | other | ) | const |
equality operator
Definition at line 31 of file SGString.cpp.
void save | ( | CFile * | saver | ) |
save string to file
saver | File object via which to save data |
Definition at line 74 of file SGString.cpp.
bool do_free |
whether string needs to be freed
Definition at line 81 of file SGString.h.
index_t slen |
length of string
Definition at line 79 of file SGString.h.
T* string |
string
Definition at line 77 of file SGString.h.