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

Dv::Util::Env::Display Class Reference

A display is a stack of pointers into an environment. More...

#include <env.h>

List of all members.

Public Methods

 Display (const Env &e)
 Initialize a display with an environment.

 Display (const Display &d)
size_t size () const
const Envtop () const
Display & push (const std::string &key)
Display & pop ()
const Envoperator() (const std::string &key) const
const Envoperator() (const std::vector< std::string > &keys) const
Display & expand (const std::vector< std::string > &keys)
void substitute (std::ostream &os, std::istream &is) const throw (Exception)
std::ostream & print (std::ostream &os) const


Detailed Description

A display is a stack of pointers into an environment.

The bottom of the stack always contains the ``top'' environment e, all other entries point to a subenvironment of e. Unlike for e.g. displays in a Pascal compiler, the stack does not need to represent a path in the underlying environment. Looking up an index in a display returns the first environment found (search proceeds from the stack down).


Constructor & Destructor Documentation

Dv::Util::Env::Display::Display const Env   e
 

Initialize a display with an environment.

Parameters:
e  root environment of display.

Dv::Util::Env::Display::Display const Display &    d
 


Member Function Documentation

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

const Env* Dv::Util::Env::Display::top   const [inline]
 

Returns:
topmost environment of display

Display& Dv::Util::Env::Display::push const std::string &    key
 

Display& Dv::Util::Env::Display::pop  
 

const Env* Dv::Util::Env::Display::operator() const std::string &    key const
 

const Env* Dv::Util::Env::Display::operator() const std::vector< std::string > &    keys const
 

Display& Dv::Util::Env::Display::expand const std::vector< std::string > &    keys
 

void Dv::Util::Env::Display::substitute std::ostream &    os,
std::istream &    is
const throw (Exception)
 

std::ostream& Dv::Util::Env::Display::print std::ostream &    os const
 


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