SHOGUN
v3.2.0
|
template class SGStringList
Definition at line 25 of file SGStringList.h.
Public Member Functions | |
SGStringList () | |
SGStringList (SGString< T > *s, index_t num_s, index_t max_length, bool ref_counting=true) | |
SGStringList (index_t num_s, index_t max_length, bool ref_counting=true) | |
SGStringList (const SGStringList &orig) | |
virtual | ~SGStringList () |
SGStringList< T > | get () |
void | load (CFile *loader) |
void | save (CFile *saver) |
int32_t | ref_count () |
Public Attributes | |
index_t | num_strings |
index_t | max_string_length |
SGString< T > * | strings |
Protected Member Functions | |
virtual void | copy_data (const SGReferencedData &orig) |
virtual void | init_data () |
void | free_data () |
void | copy_refcount (const SGReferencedData &orig) |
int32_t | ref () |
int32_t | unref () |
SGStringList | ( | ) |
default constructor
Definition at line 9 of file SGStringList.cpp.
SGStringList | ( | SGString< T > * | s, |
index_t | num_s, | ||
index_t | max_length, | ||
bool | ref_counting = true |
||
) |
constructor for setting params
Definition at line 15 of file SGStringList.cpp.
SGStringList | ( | index_t | num_s, |
index_t | max_length, | ||
bool | ref_counting = true |
||
) |
constructor to create new string list in memory
Definition at line 23 of file SGStringList.cpp.
SGStringList | ( | const SGStringList< T > & | orig | ) |
copy constructor
Definition at line 31 of file SGStringList.cpp.
~SGStringList | ( | ) | [virtual] |
destructor
Definition at line 38 of file SGStringList.cpp.
void copy_data | ( | const SGReferencedData & | orig | ) | [protected, virtual] |
void copy_refcount | ( | const SGReferencedData & | orig | ) | [protected, inherited] |
copy refcount
Definition at line 58 of file SGReferencedData.cpp.
void free_data | ( | ) | [protected, virtual] |
SGStringList<T> get | ( | ) |
get the string list (no copying is done here)
Definition at line 49 of file SGStringList.h.
void init_data | ( | ) | [protected, virtual] |
load strings from file
loader | File object via which to load data |
Definition at line 43 of file SGStringList.cpp.
int32_t ref | ( | ) | [protected, inherited] |
increase reference counter
Definition at line 67 of file SGReferencedData.cpp.
int32_t ref_count | ( | ) | [inherited] |
display reference counter
Definition at line 44 of file SGReferencedData.cpp.
save strings to file
saver | File object via which to save data |
Definition at line 53 of file SGStringList.cpp.
int32_t unref | ( | ) | [protected, inherited] |
decrement reference counter and deallocate object if refcount is zero before or after decrementing it
Definition at line 87 of file SGReferencedData.cpp.
length of longest string
Definition at line 83 of file SGStringList.h.
number of strings
Definition at line 80 of file SGStringList.h.
this contains the array of features
Definition at line 86 of file SGStringList.h.