Back to index

texmacs  1.0.7.15
Public Member Functions | Public Attributes | Protected Attributes
compound_memorizer_rep Class Reference

#include <memorizer.hpp>

Inheritance diagram for compound_memorizer_rep:
Inheritance graph
[legend]
Collaboration diagram for compound_memorizer_rep:
Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Public Attributes

int ref_count

Protected Attributes

memorizera
int n

Detailed Description

Definition at line 83 of file memorizer.hpp.


Constructor & Destructor Documentation

Definition at line 88 of file memorizer.hpp.

: memorizer_rep (), a (NULL), n (0) {}

Definition at line 89 of file memorizer.hpp.

{ if (n!=0) tm_delete_array (a); }

Here is the call graph for this function:


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:

virtual bool memorizer_rep::equal ( memorizer_rep mem) [pure virtual, inherited]
void compound_memorizer_rep::get_children ( memorizer *&  a,
int &  n 
) [virtual]

Reimplemented from memorizer_rep.

Definition at line 81 of file memorizer.cpp.

                                                             {
  a2= a;
  n2= n;
}
environment memorizer_rep::get_environment ( ) [virtual, inherited]

Reimplemented in end_with_memorizer_rep, begin_with_memorizer_rep, inactive_memorizer_rep, assign_memorizer_rep, rewrite_memorizer_rep, and evaluate_memorizer_rep.

Definition at line 45 of file memorizer.cpp.

                                {
  FAILED ("not an environment memorizer");
  return environment ();
}

Here is the caller graph for this function:

tree memorizer_rep::get_tree ( ) [virtual, inherited]

Reimplemented in inactive_memorizer_rep, rewrite_memorizer_rep, and evaluate_memorizer_rep.

Definition at line 57 of file memorizer.cpp.

                         {
  FAILED ("not a tree memorizer");
  return "";
}

Here is the caller graph for this function:

virtual int memorizer_rep::hash ( ) [pure virtual, inherited]
virtual void memorizer_rep::print ( tm_ostream out) [pure virtual, inherited]
void compound_memorizer_rep::set_children ( memorizer a,
int  n 
) [virtual]

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 memorizer_rep::set_environment ( environment  env) [virtual, inherited]

Reimplemented in end_with_memorizer_rep, begin_with_memorizer_rep, inactive_memorizer_rep, assign_memorizer_rep, rewrite_memorizer_rep, and evaluate_memorizer_rep.

Definition at line 39 of file memorizer.cpp.

                                               {
  (void) env;
  FAILED ("not an environment memorizer");
}

Here is the caller graph for this function:

void memorizer_rep::set_tree ( tree  t) [virtual, inherited]

Reimplemented in inactive_memorizer_rep, rewrite_memorizer_rep, and evaluate_memorizer_rep.

Definition at line 51 of file memorizer.cpp.

                               {
  (void) t;
  FAILED ("not a tree memorizer");
}

Here is the caller graph for this function:

virtual int memorizer_rep::type ( ) [pure virtual, inherited]

Member Data Documentation

Definition at line 85 of file memorizer.hpp.

int compound_memorizer_rep::n [protected]

Definition at line 86 of file memorizer.hpp.

int abstract_struct::ref_count [inherited]

Definition at line 142 of file basic.hpp.


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