cheshirekow  v0.1.0
fontconfig::StrListDelegate Class Reference

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_tnext ()
 get next string in iteration More...
 
StrListDelegateoperator-> ()
 
const StrListDelegateoperator-> () const
 

Private Member Functions

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

Detailed Description

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.

Definition at line 50 of file StrList.h.

Constructor & Destructor Documentation

fontconfig::StrListDelegate::StrListDelegate ( FcStrList *  ptr)
inlineexplicitprivate

wrap constructor

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

Definition at line 60 of file StrList.h.

fontconfig::StrListDelegate::StrListDelegate ( const StrListDelegate other)
private

not copy-constructable

Member Function Documentation

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.

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

Definition at line 73 of file StrList.h.

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

Definition at line 74 of file StrList.h.

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

not assignable

Friends And Related Function Documentation

friend class RefPtr< StrList >
friend

Definition at line 71 of file StrList.h.

Member Data Documentation

FcStrList* fontconfig::StrListDelegate::m_ptr
private

Definition at line 53 of file StrList.h.


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