shogun string
Definition at line 24 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 () |
Public Attributes | |
T * | string |
index_t | slen |
bool | do_free |
SGString | ( | ) |
default constructor
Definition at line 28 of file SGString.h.
constructor for setting params
Definition at line 31 of file SGString.h.
constructor for setting params from a SGVector
Definition at line 35 of file SGString.h.
constructor to create new string in memory
Definition at line 39 of file SGString.h.
copy constructor
Definition at line 46 of file SGString.h.
void destroy_string | ( | ) |
destroy string
Definition at line 76 of file SGString.h.
void free_string | ( | ) |
free string
Definition at line 65 of file SGString.h.
bool operator== | ( | const SGString< T > & | other | ) | const |
equality operator
Definition at line 50 of file SGString.h.
bool do_free |
whether string needs to be freed
Definition at line 88 of file SGString.h.
length of string
Definition at line 86 of file SGString.h.
T* string |
string
Definition at line 84 of file SGString.h.