cheshirekow  v0.1.0
fontconfig::StrSetDelegate Class Reference

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...
 
StrSetDelegateoperator-> ()
 
const StrSetDelegateoperator-> () const
 
bool setMember (const Char8_t *s)
 check set for membership More...
 

Private Member Functions

StrSetDelegateoperator= (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 >
 

Detailed Description

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.

Definition at line 51 of file StrSet.h.

Constructor & Destructor Documentation

fontconfig::StrSetDelegate::StrSetDelegate ( FcStrSet *  ptr)
inlineexplicitprivate

wrap constructor

wraps the pointer with this interface, does nothing else, only called by RefPtr<Atomic>

Definition at line 61 of file StrSet.h.

fontconfig::StrSetDelegate::StrSetDelegate ( const StrSetDelegate other)
private

not copy-constructable

Member Function Documentation

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.

bool fontconfig::StrSetDelegate::equal ( RefPtr< StrSet other)

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.

StrSetDelegate* fontconfig::StrSetDelegate::operator-> ( )
inline

Definition at line 74 of file StrSet.h.

const StrSetDelegate* fontconfig::StrSetDelegate::operator-> ( ) const
inline

Definition at line 75 of file StrSet.h.

StrSetDelegate& fontconfig::StrSetDelegate::operator= ( const StrSetDelegate other)
private

not assignable

bool fontconfig::StrSetDelegate::setMember ( const Char8_t s)

check set for membership

Returns whether s is a member of set.

Friends And Related Function Documentation

friend class RefPtr< StrSet >
friend

Definition at line 72 of file StrSet.h.

Member Data Documentation

FcStrSet* fontconfig::StrSetDelegate::m_ptr
private

Definition at line 54 of file StrSet.h.


The documentation for this class was generated from the following file: