Back to index

texmacs  1.0.7.15
Classes | Functions
edit_observer.cpp File Reference
#include "modification.hpp"

Go to the source code of this file.

Classes

class  edit_observer_rep

Functions

observer edit_observer (editor_rep *ed)
observer search_type (observer o, int type)
observer search_observer (tree &ref, int type)
bool admits_edit_observer (tree t)

Function Documentation

Definition at line 133 of file edit_observer.cpp.

                              {
  return !is_nil (search_observer (t, OBSERVER_EDIT));
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 110 of file edit_observer.cpp.

                               {
  return tm_new<edit_observer_rep> (ed);
}
observer search_observer ( tree ref,
int  type 
)

Definition at line 128 of file edit_observer.cpp.

                                      {
  return search_type (ref->obs, type);
}

Here is the call graph for this function:

Here is the caller graph for this function:

observer search_type ( observer  o,
int  type 
)

Definition at line 115 of file edit_observer.cpp.

                                   {
  if (is_nil (o)) return o;
  if (o->get_type () == type) return o;
  if (o->get_type () == OBSERVER_LIST) {
    observer r= search_type (o->get_child (0), type);
    if (!is_nil (r)) return r;
    r= search_type (o->get_child (1), type);
    if (!is_nil (r)) return r;
  }
  return observer ();
}

Here is the call graph for this function:

Here is the caller graph for this function: