#include <env.h>
Public Methods | |
Display (const Env &e) | |
Initialize a display with an environment. | |
Display (const Display &d) | |
size_t | size () const |
const Env * | top () const |
Display & | push (const std::string &key) |
Display & | pop () |
const Env * | operator() (const std::string &key) const |
const Env * | operator() (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 |
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).
|
Initialize a display with an environment.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dvenv-0.2.2 | [20 October, 2002] |