cheshirekow
v0.1.0
|
holds a list of strings that can be appended to and enumerated. More...
#include <cpp_fontconfig/StrSet.h>
Public Member Functions | |
bool | add (const Char8_t *s) |
add to a string set More... | |
bool | addFilename (const Char8_t *s) |
add a filename to a string set More... | |
bool | del (const Char8_t *s) |
delete from a string set More... | |
void | destroy () |
destroy a string set More... | |
bool | equal (RefPtr< StrSet > other) |
check sets for equality More... | |
StrSetDelegate * | operator-> () |
const StrSetDelegate * | operator-> () const |
bool | setMember (const Char8_t *s) |
check set for membership More... | |
Private Member Functions | |
StrSetDelegate & | operator= (const StrSetDelegate &other) |
not assignable More... | |
StrSetDelegate (FcStrSet *ptr) | |
wrap constructor More... | |
StrSetDelegate (const StrSetDelegate &other) | |
not copy-constructable More... | |
Private Attributes | |
FcStrSet * | m_ptr |
Friends | |
class | RefPtr< StrSet > |
holds a list of strings that can be appended to and enumerated.
Its unique characteristic is that the enumeration works even while strings are appended during enumeration.
String sets are not reference counted object and the StrSet class is mearly a container for the pointer. It is safe to copy an StrSet but be sure to only call destroy on one of the copies.
Also, since StrSet is a wrapper for the pointer, you should probably only allocate an StrSet on the stack.
|
inlineexplicitprivate |
|
private |
not copy-constructable
bool fontconfig::StrSetDelegate::add | ( | const Char8_t * | s | ) |
add to a string set
Adds a copy of s to set.
bool fontconfig::StrSetDelegate::addFilename | ( | const Char8_t * | s | ) |
add a filename to a string set
Adds a copy s to set, The copy is created with FcStrCopyFilename so that leading '~' values are replaced with the value of the HOME environment variable.
bool fontconfig::StrSetDelegate::del | ( | const Char8_t * | s | ) |
delete from a string set
Removes s from set, returning FcTrue if s was a member else FcFalse.
void fontconfig::StrSetDelegate::destroy | ( | ) |
destroy a string set
Destroys set.
check sets for equality
Returns whether set_a contains precisely the same strings as set_b. Ordering of strings within the two sets is not considered.
|
inline |
|
inline |
|
private |
not assignable
bool fontconfig::StrSetDelegate::setMember | ( | const Char8_t * | s | ) |
check set for membership
Returns whether s is a member of set.