Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

MutableDictionary Class Reference

Inheritance diagram for MutableDictionary:

Dictionary List of all members.

Public Member Functions

void put (char[] name, char[] value)
void remove (char[] name)
void reset ()
void loader (char[] name, char[] value)

Private Member Functions

char[] get (char[] name)
void optimize ()
int opApply (int(*dg)(inout DElement element))

Detailed Description

Implements a dictionary for mapping names to values. This is really just a hashmap with support for certain domain-specific idioms. Note that there is no notion of thread-safety whatsoever; you are expected to ensure multiple threads do not contend over the content therein. In particular, iterating over the content is an unknown quantity in terms of time (from the perspective of this module) so you ought to consider that in a multi-threaded environment.

Definition at line 131 of file Dictionary.d.


Member Function Documentation

void put char[]  name,
char[]  value
[inline]
 

Place a name/value pair into the dictionary. If the name already exists, the prior value is replaced.

Definition at line 140 of file Dictionary.d.

Referenced by loader(), and ServletContext::this().

void remove char[]  name  )  [inline]
 

Delete the named entry from the dictionary

Definition at line 151 of file Dictionary.d.

void reset  )  [inline]
 

Clear all dictionary entries

Definition at line 163 of file Dictionary.d.

void loader char[]  name,
char[]  value
[inline]
 

loader for use with Properties.load ()

Definition at line 180 of file Dictionary.d.

References put().

char [] get char[]  name  )  [inline, inherited]
 

Return the dictionary entry with the given name, or null if there is no such name.

Definition at line 74 of file Dictionary.d.

References Dictionary::dictionary.

Referenced by ServletContext::getMimeType().

void optimize  )  [inline, inherited]
 

Perform some post population optimization.

Definition at line 87 of file Dictionary.d.

References Dictionary::dictionary.

Referenced by ServletContext::this().

int opApply int(*  dg)(inout DElement element)  )  [inline, inherited]
 

Iterate over the entire dictionary

Definition at line 98 of file Dictionary.d.

References Dictionary::dictionary, DElement::name, and DElement::value.


The documentation for this class was generated from the following file:
Generated on Sun Nov 7 19:07:07 2004 for Mango by doxygen 1.3.6