|
Packed strings list. More...
#include <PackedStrings.h>
Public Member Functions | |
| CPackedStrings (int cnt, const char *strings[]) | |
| CPackedStrings (FieldList &fields, int keyField) | |
| CPackedStrings (const Strings &strings) | |
| CPackedStrings (const CPackedStrings &other)=delete | |
| ~CPackedStrings () | |
| uint16_t | size () const |
| const char * | operator[] (uint16_t index) const |
| CPackedStrings & | operator= (const CPackedStrings &) |
| CPackedStrings & | operator= (const Strings &) |
| void | user_data (void *d) |
| void * | user_data () const |
| void | argument (int32_t arg) |
| int32_t | argument () const |
Public Attributes | |
| unsigned char | height |
| unsigned char | flags |
Packed strings list.
Special data structure to contain several strings packed into same memory block. The idea was to minimize the memory allocation, and decrease the total required memory. Also, contains special attributes for CListView row support.
| sptk::CPackedStrings::CPackedStrings | ( | int | cnt, |
| const char * | strings[] | ||
| ) |
Constructor
| cnt | int, source strings count |
| strings | const char *, source strings |
| sptk::CPackedStrings::CPackedStrings | ( | FieldList & | fields, |
| int | keyField | ||
| ) |
Constructor
| fields | CFieldList, the fields data |
| keyField | int, the key field number |
|
explicit |
Constructor
| strings | Source strings |
|
delete |
Deleted copy constructor
| other | Other object |
| sptk::CPackedStrings::~CPackedStrings | ( | ) |
Destructor
|
inline |
Returns user_data as integer
|
inline |
Sets user_data as integer
| CPackedStrings & sptk::CPackedStrings::operator= | ( | const CPackedStrings & | ) |
Assignment operator
| CPackedStrings & sptk::CPackedStrings::operator= | ( | const Strings & | ) |
Assignment operator
| const char * sptk::CPackedStrings::operator[] | ( | uint16_t | index | ) | const |
String access by index
|
inline |
Strings count
|
inline |
Returns user_data as void *
|
inline |
Sets user_data as void *
| unsigned char sptk::CPackedStrings::flags |
Row flags for CListView
| unsigned char sptk::CPackedStrings::height |
Row height for CListView