Back to index

texmacs  1.0.7.15
Public Member Functions | Public Attributes | Friends
std_environment_rep Class Reference
Inheritance diagram for std_environment_rep:
Inheritance graph
[legend]
Collaboration diagram for std_environment_rep:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 std_environment_rep (bool pure2, list_environment env2, std_environment next2, list_environment accel2, list_environment args2)
bool contains (int key)
tree read (int key)
void write (int key, const tree &val)
void remove (int key)
void print (const string &prefix)
bool contains (const string &key)
tree read (const string &key)
void write (const string &key, const tree &val)
void remove (const string &key)

Public Attributes

bool pure
list_environment env
std_environment next
list_environment accel
list_environment args
int ref_count

Friends

class environment

Detailed Description

Definition at line 35 of file std_environment.cpp.


Constructor & Destructor Documentation

std_environment_rep::std_environment_rep ( bool  pure2,
list_environment  env2,
std_environment  next2,
list_environment  accel2,
list_environment  args2 
) [inline]

Definition at line 44 of file std_environment.cpp.

                                                  :
    pure (pure2), env (env2), next (next2), accel (accel2), args (args2) {}

Member Function Documentation

bool std_environment_rep::contains ( int  key) [inline, virtual]

Implements environment_rep.

Definition at line 51 of file std_environment.cpp.

                                 {
    return accel->contains (key); }
bool environment_rep::contains ( const string key) [inline, inherited]

Definition at line 59 of file environment.hpp.

                                           {
    return contains ((int) make_tree_label (key)); }

Here is the call graph for this function:

void std_environment_rep::print ( const string prefix) [virtual]

Implements environment_rep.

Definition at line 73 of file std_environment.cpp.

                                                {
  cout << prefix << "Std environment" << LF;
  env->print (prefix * (pure? string ("|* "): string ("|  ")));
  std_environment it= next;
  while (!is_nil (it)) {
    it->env->print (prefix * (it->pure? string ("|* "): string ("|  ")));
    it= it->next;
  }
  if (total_size (args) != 0)
    args->print (prefix * "|o ");
}

Here is the call graph for this function:

tree std_environment_rep::read ( int  key) [inline, virtual]

Implements environment_rep.

Definition at line 53 of file std_environment.cpp.

                             {
    return accel->read (key); }
tree environment_rep::read ( const string key) [inline, inherited]

Definition at line 61 of file environment.hpp.

                                       {
    return read ((int) make_tree_label (key)); }

Here is the call graph for this function:

void std_environment_rep::remove ( int  key) [inline, virtual]

Implements environment_rep.

Definition at line 58 of file std_environment.cpp.

                               {
    // NOTE: it is not allowed to change next, in the case
    // when 'key' does not exist in the std environment 'env'
    env->remove (key);
    accel->remove (key); }
void environment_rep::remove ( const string key) [inline, inherited]

Definition at line 65 of file environment.hpp.

                                         {
    remove ((int) make_tree_label (key)); }

Here is the call graph for this function:

void std_environment_rep::write ( int  key,
const tree val 
) [inline, virtual]

Implements environment_rep.

Definition at line 55 of file std_environment.cpp.

                                               {
    env->write (key, val);
    accel->write (key, val); }
void environment_rep::write ( const string key,
const tree val 
) [inline, inherited]

Definition at line 63 of file environment.hpp.

                                                         {
    write ((int) make_tree_label (key), val); }

Here is the call graph for this function:


Friends And Related Function Documentation

friend class environment [friend, inherited]

Definition at line 68 of file environment.hpp.


Member Data Documentation

Definition at line 40 of file std_environment.cpp.

Definition at line 41 of file std_environment.cpp.

Definition at line 38 of file std_environment.cpp.

Definition at line 39 of file std_environment.cpp.

Definition at line 37 of file std_environment.cpp.

int concrete_struct::ref_count [inherited]

Definition at line 135 of file basic.hpp.


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