cheshirekow
v0.1.0
|
used during enumeration to safely and correctly walk the list of strings even while that list is edited in the middle of enumeration. More...
#include <cpp_fontconfig/StrList.h>
Public Member Functions | |
void | done () |
destroy a string iterator More... | |
Char8_t * | next () |
get next string in iteration More... | |
StrListDelegate * | operator-> () |
const StrListDelegate * | operator-> () const |
Private Member Functions | |
StrListDelegate & | operator= (const StrListDelegate &other) |
not assignable More... | |
StrListDelegate (FcStrList *ptr) | |
wrap constructor More... | |
StrListDelegate (const StrListDelegate &other) | |
not copy-constructable More... | |
Private Attributes | |
FcStrList * | m_ptr |
Friends | |
class | RefPtr< StrList > |
used during enumeration to safely and correctly walk the list of strings even while that list is edited in the middle of enumeration.
String iterators are not reference counted object and the StrList class is mearly a container for the pointer. It is safe to copy an StrList but be sure to only call destroy on one of the copies.
Also, since StrList is a wrapper for the pointer, you should probably only allocate an StrList on the stack.
|
inlineexplicitprivate |
|
private |
not copy-constructable
void fontconfig::StrListDelegate::done | ( | ) |
destroy a string iterator
Destroys the enumerator list.
Char8_t* fontconfig::StrListDelegate::next | ( | ) |
get next string in iteration
Returns the next string in set.
|
inline |
|
inline |
|
private |
not assignable