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

Dv::Util::Env::MBox Class Reference

An MBox contains a map<string,Env*> map. More...

#include <env.h>

Inherits Dv::Util::Env::Box.

List of all members.

Public Types

typedef std::map< std::string,
Env * > 
Map

Public Methods

iteratorbegin () const throw (Exception)
iteratorend () const throw (Exception)
 MBox ()
 ~MBox ()
size_t size () const
Envoperator[] (const std::string &s) throw (Exception)
 A new Env will be allocated if none exists.

const Envoperator() (const std::string &s) const throw (Exception)
 A new Env will be allocated if none exists.


Detailed Description

An MBox contains a map<string,Env*> map.


Member Typedef Documentation

typedef std::map<std::string, Env*> Dv::Util::Env::MBox::Map
 


Constructor & Destructor Documentation

Dv::Util::Env::MBox::MBox  
 

Dv::Util::Env::MBox::~MBox  
 


Member Function Documentation

iterator* Dv::Util::Env::MBox::begin   const throw (Exception) [inline, virtual]
 

Returns:
iterator pointing to first element (or end()) of container box.
Exceptions:
Exception  if not a map or array box.

Reimplemented from Dv::Util::Env::Box.

iterator* Dv::Util::Env::MBox::end   const throw (Exception) [inline, virtual]
 

Returns:
iterator pointing past the last element of a container box.
Exceptions:
Exception  if not a map or array box.

Reimplemented from Dv::Util::Env::Box.

size_t Dv::Util::Env::MBox::size   const [inline]
 

Returns:
number of elements in underlying map.

Env* Dv::Util::Env::MBox::operator[] const std::string &    s throw (Exception) [virtual]
 

A new Env will be allocated if none exists.

Parameters:
s  key to use
Returns:
pointer to Env corresponding to key.

Reimplemented from Dv::Util::Env::Box.

const Env* Dv::Util::Env::MBox::operator() const std::string &    s const throw (Exception) [virtual]
 

A new Env will be allocated if none exists.

Parameters:
s  key to use
Returns:
pointer to Env corresponding to key.

Reimplemented from Dv::Util::Env::Box.


The documentation for this class was generated from the following file:
dvenv-0.2.2 [20 October, 2002]