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 ()
 FXStringDict (const FXStringDict &orig)
FXStringDictoperator= (const FXStringDict &orig)
const FXcharinsert (const FXchar *ky, const FXchar *str, bool mrk=false)
const FXcharreplace (const FXchar *ky, const FXchar *str, bool mrk=false)
const FXcharremove (const FXchar *ky)
const FXcharfind (const FXchar *ky) const
const FXchardata (FXuint pos) const
virtual ~FXStringDict ()

Detailed Description

String dictionary maps a character string to a character string.

The inserted strings are copied when they're inserted.


Constructor & Destructor Documentation

FX::FXStringDict::FXStringDict  ) 
 

Construct a string dictionary.

FX::FXStringDict::FXStringDict const FXStringDict orig  ) 
 

Copy constructor.

virtual FX::FXStringDict::~FXStringDict  )  [virtual]
 

Destructor.


Member Function Documentation

FXStringDict& FX::FXStringDict::operator= const FXStringDict orig  ) 
 

Assignment operator.

const FXchar* FX::FXStringDict::insert const FXchar ky,
const FXchar str,
bool  mrk = false
[inline]
 

Insert a new string indexed by key, with given mark flag.

const FXchar* FX::FXStringDict::replace const FXchar ky,
const FXchar str,
bool  mrk = false
[inline]
 

Replace or insert a new string indexed by key, unless given mark is lower that the existing mark.

const FXchar* FX::FXStringDict::remove const FXchar ky  )  [inline]
 

Remove entry indexed by key.

Reimplemented from FX::FXDict.

const FXchar* FX::FXStringDict::find const FXchar ky  )  const [inline]
 

Return the entry indexed by key, or return NULL if the key does not exist.

Reimplemented from FX::FXDict.

const FXchar* FX::FXStringDict::data FXuint  pos  )  const [inline]
 

Return the string at position pos.

Reimplemented from FX::FXDict.

Copyright © 1997-2005 Jeroen van der Zijp