Back to index

texmacs  1.0.7.15
Public Member Functions | Public Attributes | Protected Attributes | Private Attributes
inactive_memorizer_rep Class Reference
Inheritance diagram for inactive_memorizer_rep:
Inheritance graph
[legend]
Collaboration diagram for inactive_memorizer_rep:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 inactive_memorizer_rep (environment env, tree t, inactive_style sty)
void print (tm_ostream &out)
int type ()
int hash ()
bool equal (memorizer_rep *mem)
void set_environment (environment env)
environment get_environment ()
void set_tree (tree t)
tree get_tree ()
void set_children (memorizer *a, int n)
void get_children (memorizer *&a, int &n)
virtual void compute ()

Public Attributes

int ref_count

Protected Attributes

memorizera
int n

Private Attributes

environment env_in
tree t_in
inactive_style sty_in
environment env_out
tree t_out

Detailed Description

Definition at line 167 of file evaluate_inactive.cpp.


Constructor & Destructor Documentation

Definition at line 175 of file evaluate_inactive.cpp.

                                                                             :
    env_in (env), t_in (t), sty_in (sty), env_out (), t_out (no_tree) {}

Member Function Documentation

void memorizer_rep::compute ( ) [virtual, inherited]

Reimplemented in end_with_memorizer_rep, begin_with_memorizer_rep, and assign_memorizer_rep.

Definition at line 22 of file memorizer.cpp.

                        {
  FAILED ("memorizer can't compute its own output");
}

Here is the caller graph for this function:

bool inactive_memorizer_rep::equal ( memorizer_rep mem) [inline, virtual]

Implements memorizer_rep.

Definition at line 183 of file evaluate_inactive.cpp.

Here is the call graph for this function:

void compound_memorizer_rep::get_children ( memorizer *&  a,
int &  n 
) [virtual, inherited]

Reimplemented from memorizer_rep.

Definition at line 81 of file memorizer.cpp.

                                                             {
  a2= a;
  n2= n;
}

Reimplemented from memorizer_rep.

Definition at line 191 of file evaluate_inactive.cpp.

{ return env_out; }
tree inactive_memorizer_rep::get_tree ( ) [inline, virtual]

Reimplemented from memorizer_rep.

Definition at line 193 of file evaluate_inactive.cpp.

{ return t_out; }
int inactive_memorizer_rep::hash ( ) [inline, virtual]

Implements memorizer_rep.

Definition at line 181 of file evaluate_inactive.cpp.

              {
    return weak_hash (env_in) ^ weak_hash (t_in) ^ ::hash (sty_in); }

Here is the call graph for this function:

void inactive_memorizer_rep::print ( tm_ostream out) [inline, virtual]

Implements memorizer_rep.

Definition at line 177 of file evaluate_inactive.cpp.

                               {
    out << "inactive_memorizer (" << t_in << ")"; }
void compound_memorizer_rep::set_children ( memorizer a,
int  n 
) [virtual, inherited]

Reimplemented from memorizer_rep.

Definition at line 67 of file memorizer.cpp.

                                                           {
  if (n != 0) {
    n= 0;
    tm_delete_array (a);
  }
  if (n2 != 0) {
    n= n2;
    a= tm_new_array<memorizer> (n);
    for (int i=0; i<n; i++)
      a[i]= a2[i];
  }
}

Here is the call graph for this function:

void inactive_memorizer_rep::set_environment ( environment  env) [inline, virtual]

Reimplemented from memorizer_rep.

Definition at line 190 of file evaluate_inactive.cpp.

{ env_out= env; }
void inactive_memorizer_rep::set_tree ( tree  t) [inline, virtual]

Reimplemented from memorizer_rep.

Definition at line 192 of file evaluate_inactive.cpp.

{ t_out= t; }
int inactive_memorizer_rep::type ( ) [inline, virtual]

Implements memorizer_rep.

Definition at line 180 of file evaluate_inactive.cpp.

{ return MEMORIZE_INACTIVE; }

Member Data Documentation

memorizer* compound_memorizer_rep::a [protected, inherited]

Definition at line 85 of file memorizer.hpp.

Definition at line 168 of file evaluate_inactive.cpp.

Definition at line 171 of file evaluate_inactive.cpp.

int compound_memorizer_rep::n [protected, inherited]

Definition at line 86 of file memorizer.hpp.

int abstract_struct::ref_count [inherited]

Definition at line 142 of file basic.hpp.

Definition at line 170 of file evaluate_inactive.cpp.

Definition at line 169 of file evaluate_inactive.cpp.

Definition at line 172 of file evaluate_inactive.cpp.


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