cheshirekow  v0.1.0
fontconfig::ConstantList Class Reference

utility class for building a static list of ObjectTypes, replaces static allocation of a list of FcObjectType objects More...

#include <cpp_fontconfig/name.h>

Classes

class  BuildToken
 
class  Item
 

Public Member Functions

 ConstantList (ConstantList::BuildToken &token)
 construct an object from a token More...
 
 ConstantList (const ConstantList &other)
 copy a list More...
 
void destroy ()
 destroy underlying data More...
 
int get_nItems () const
 return the number of constants More...
 
FcConstant * get_ptr ()
 return a c-array of constants More...
 
const FcConstant * get_ptr () const
 return a const c-array of constants More...
 

Static Public Member Functions

static Item create ()
 creates a new Object type list, and returns an item which points to it More...
 

Private Member Functions

 ConstantList ()
 private constructor, use ObjectTypeList::create() instead More...
 

Private Attributes

int m_nItems
 
FcConstant * m_ptr
 

Static Private Attributes

static BuildToken sm_seed
 

Detailed Description

utility class for building a static list of ObjectTypes, replaces static allocation of a list of FcObjectType objects

Example usage:

( "NameA", "ObjectA", 1001 )
( "NameB", "ObjectB", 1002 )
( "NameC", "ObjectC", 1003 )
();

Definition at line 183 of file name.h.

Constructor & Destructor Documentation

fontconfig::ConstantList::ConstantList ( )
private

private constructor, use ObjectTypeList::create() instead

fontconfig::ConstantList::ConstantList ( ConstantList::BuildToken token)

construct an object from a token

fontconfig::ConstantList::ConstantList ( const ConstantList other)

copy a list

Member Function Documentation

static Item fontconfig::ConstantList::create ( )
static

creates a new Object type list, and returns an item which points to it

void fontconfig::ConstantList::destroy ( )

destroy underlying data

int fontconfig::ConstantList::get_nItems ( ) const

return the number of constants

FcConstant* fontconfig::ConstantList::get_ptr ( )

return a c-array of constants

const FcConstant* fontconfig::ConstantList::get_ptr ( ) const

return a const c-array of constants

Member Data Documentation

int fontconfig::ConstantList::m_nItems
private

Definition at line 191 of file name.h.

FcConstant* fontconfig::ConstantList::m_ptr
private

Definition at line 187 of file name.h.

BuildToken fontconfig::ConstantList::sm_seed
staticprivate

Definition at line 193 of file name.h.


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