Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXStringDict Class Reference

String dictionary maps a character string to a character string. More...

#include <FXStringDict.h>

Inheritance diagram for FX::FXStringDict:
FX::FXDict FX::FXObject

List of all members.

Public Member Functions

 FXStringDict ()
 Construct a string dictionary.
const FXchar * insert (const FXchar *ky, const FXchar *str, FXbool mrk=false)
 Insert a new string indexed by key, with given mark flag.
const FXchar * replace (const FXchar *ky, const FXchar *str, FXbool mrk=false)
 Replace or insert a new string indexed by key, unless given mark is lower that the existing mark.
const FXchar * remove (const FXchar *ky)
 Remove entry indexed by key.
const FXchar * find (const FXchar *ky) const
 Return the entry indexed by key, or return NULL if the key does not exist.
const FXchar * data (FXint pos) const
 Return the string at position pos.
virtual ~FXStringDict ()
 Destructor.

Protected Member Functions

virtual void * createData (void *)
 Overload this function in a derived class to return the data pointer given an input pointer; the default implementation just returns the input pointer.
virtual void deleteData (void *)
 Overload this function in a derived class to delete the pointer previously returned by createData(); the default implementation does nothing.

Detailed Description

String dictionary maps a character string to a character string.

The inserted strings are copied when they're inserted.


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

Copyright © 1997-2011 Jeroen van der Zijp