Regina Calculation Engine
Public Member Functions
regina::xml::XMLPropertyDict Class Reference

Represents a hashed map from property names to property values. More...

#include <xmlutils.h>

List of all members.

Public Member Functions

 XMLPropertyDict ()
 Create a new hashed map.
const std::string & lookup (const std::string &key, const std::string &defaultVal=std::string()) const
 Return a value for the given key, even if the key does not exist in the hashed map.

Detailed Description

Represents a hashed map from property names to property values.

Python:
Not present.

Constructor & Destructor Documentation

regina::xml::XMLPropertyDict::XMLPropertyDict ( ) [inline]

Create a new hashed map.


Member Function Documentation

const std::string & regina::xml::XMLPropertyDict::lookup ( const std::string &  key,
const std::string &  defaultVal = std::string() 
) const [inline]

Return a value for the given key, even if the key does not exist in the hashed map.

Parameters:
keythe key to look up.
defaultValthe value to return if the key does not exist.
Returns:
the value associated with the given key, or parameter default if the key does not exist in the hashed map.

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

Copyright © 1999-2009, Ben Burton
This software is released under the GNU General Public License.
For further information, or to submit a bug or other problem, please contact Ben Burton (bab@debian.org).