![]() |
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Dynamic list of strings. More...
#include <string_list.h>
Public Member Functions | |
StringList (IAllocator &allocator) | |
Initialize empty string list. | |
size_t | size () const |
Get number of elements. | |
const char * | front () const |
Get first string. | |
const char * | back () const |
Get last string. | |
const char * | nextof (const char *str) const |
Get next string. | |
void | clear () |
Clear the list. | |
bool | push_back (const char *str) |
Append string to the list. | |
bool | push_back (const char *str_begin, const char *str_end) |
Append string from a range to the list. | |
bool | push_unique (const char *str) |
Append string to the list if it's not in the list already. | |
bool | push_unique (const char *str_begin, const char *str_end) |
Append string from a range to the list if it's not in the list already. | |
Dynamic list of strings.
Definition at line 24 of file string_list.h.
|
explicit |
Initialize empty string list.
const char * roc::core::StringList::back | ( | ) | const |
Get last string.
void roc::core::StringList::clear | ( | ) |
Clear the list.
const char * roc::core::StringList::front | ( | ) | const |
Get first string.
const char * roc::core::StringList::nextof | ( | const char * | str | ) | const |
bool roc::core::StringList::push_back | ( | const char * | str | ) |
Append string to the list.
bool roc::core::StringList::push_back | ( | const char * | str_begin, |
const char * | str_end | ||
) |
Append string from a range to the list.
bool roc::core::StringList::push_unique | ( | const char * | str | ) |
Append string to the list if it's not in the list already.
bool roc::core::StringList::push_unique | ( | const char * | str_begin, |
const char * | str_end | ||
) |
Append string from a range to the list if it's not in the list already.
size_t roc::core::StringList::size | ( | ) | const |
Get number of elements.