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

Dictionary Class Reference

Inheritance diagram for Dictionary:

MutableDictionary List of all members.

Public Member Functions

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

Private Attributes

char[][char[]] dictionary

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 63 of file Dictionary.d.


Member Function Documentation

char [] get char[]  name  )  [inline]
 

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.

Referenced by ServletContext::getMimeType().

void optimize  )  [inline]
 

Perform some post population optimization.

Definition at line 87 of file Dictionary.d.

References dictionary.

Referenced by ServletContext::this().

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

Iterate over the entire dictionary

Definition at line 98 of file Dictionary.d.

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


Member Data Documentation

char [][char[]] dictionary [private]
 

Definition at line 65 of file Dictionary.d.

Referenced by get(), opApply(), and optimize().


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