Back to index

texmacs  1.0.7.15
Public Member Functions | Public Attributes
observer_rep Class Reference

#include <observer.hpp>

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

List of all members.

Public Member Functions

 observer_rep ()
virtual ~observer_rep ()
virtual int get_type ()
virtual tm_ostreamprint (tm_ostream &out)
virtual void announce (tree &ref, modification mod)
virtual void announce_assign (tree &ref, path p, tree t)
virtual void announce_insert (tree &ref, path p, tree ins)
virtual void announce_remove (tree &ref, path p, int nr)
virtual void announce_split (tree &ref, path p)
virtual void announce_join (tree &ref, path p)
virtual void announce_assign_node (tree &ref, path p, tree_label op)
virtual void announce_insert_node (tree &ref, path p, tree ins)
virtual void announce_remove_node (tree &ref, path p)
virtual void announce_set_cursor (tree &ref, path p, tree data)
virtual void done (tree &ref, modification mod)
virtual void touched (tree &ref, path p)
virtual void notify_assign (tree &ref, tree t)
virtual void notify_insert (tree &ref, int pos, int nr)
virtual void notify_remove (tree &ref, int pos, int nr)
virtual void notify_split (tree &ref, int pos, tree prev)
virtual void notify_var_split (tree &ref, tree t1, tree t2)
virtual void notify_join (tree &ref, int pos, tree next)
virtual void notify_var_join (tree &ref, tree t, int offset)
virtual void notify_assign_node (tree &ref, tree_label op)
virtual void notify_insert_node (tree &ref, int pos)
virtual void notify_remove_node (tree &ref, int pos)
virtual void notify_set_cursor (tree &ref, int pos, tree data)
virtual void notify_detach (tree &ref, tree closest, bool right)
virtual bool get_ip (path &ip)
virtual bool set_ip (path ip)
virtual bool get_position (tree &t, int &index)
virtual bool set_position (tree t, int index)
virtual observerget_child (int which)
virtual list< observerget_tree_pointers ()
virtual bool get_tree (tree &t)
virtual bool get_contents (int kind, blackbox &bb)
virtual bool set_highlight (int lan, int col, int start, int end)
virtual bool get_highlight (int lan, array< int > &cols)

Public Attributes

int ref_count

Detailed Description

Definition at line 41 of file observer.hpp.


Constructor & Destructor Documentation

Definition at line 43 of file observer.hpp.

{ TM_DEBUG(observer_count++); }

Here is the call graph for this function:

virtual observer_rep::~observer_rep ( ) [inline, virtual]

Definition at line 44 of file observer.hpp.

{ TM_DEBUG(observer_count--); }

Here is the call graph for this function:


Member Function Documentation

void observer_rep::announce ( tree ref,
modification  mod 
) [virtual]

Reimplemented in list_observer_rep, tree_pointer_rep, highlight_observer_rep, ip_observer_rep, edit_observer_rep, and undo_observer_rep.

Definition at line 543 of file observer.cpp.

                                                   {
  // cout << "Modify: " << mod << "\n";
  switch (mod->k) {
  case MOD_ASSIGN:
    announce_assign (ref, mod->p, mod->t);
    break;
  case MOD_INSERT:
    announce_insert (ref, mod->p, mod->t);
    break;
  case MOD_REMOVE:
    announce_remove (ref, path_up (mod->p), last_item (mod->p));
    break;
  case MOD_SPLIT:
    announce_split (ref, mod->p);
    break;
  case MOD_JOIN:
    announce_join (ref, mod->p);
    break;
  case MOD_ASSIGN_NODE:
    announce_assign_node (ref, mod->p, L(mod->t));
    break;
  case MOD_INSERT_NODE:
    announce_insert_node (ref, mod->p, mod->t);
    break;
  case MOD_REMOVE_NODE:
    announce_remove_node (ref, mod->p);
    break;
  case MOD_SET_CURSOR:
    announce_set_cursor (ref, mod->p, mod->t);
    break;
  }
}

Here is the call graph for this function:

void observer_rep::announce_assign ( tree ref,
path  p,
tree  t 
) [virtual]

Definition at line 587 of file observer.cpp.

                                                        {
  (void) ref; (void) p; (void) t;
}

Here is the caller graph for this function:

void observer_rep::announce_assign_node ( tree ref,
path  p,
tree_label  op 
) [virtual]

Definition at line 612 of file observer.cpp.

                                                                    {
  (void) ref; (void) p; (void) op;
}

Here is the caller graph for this function:

void observer_rep::announce_insert ( tree ref,
path  p,
tree  ins 
) [virtual]

Definition at line 592 of file observer.cpp.

                                                          {
  (void) ref; (void) p; (void) ins;
}

Here is the caller graph for this function:

void observer_rep::announce_insert_node ( tree ref,
path  p,
tree  ins 
) [virtual]

Definition at line 617 of file observer.cpp.

                                                               {
  (void) ref; (void) p; (void) ins;
}

Here is the caller graph for this function:

void observer_rep::announce_join ( tree ref,
path  p 
) [virtual]

Definition at line 607 of file observer.cpp.

                                              {
  (void) ref; (void) p;
}

Here is the caller graph for this function:

void observer_rep::announce_remove ( tree ref,
path  p,
int  nr 
) [virtual]

Definition at line 597 of file observer.cpp.

                                                        {
  (void) ref; (void) p; (void) nr;
}

Here is the caller graph for this function:

void observer_rep::announce_remove_node ( tree ref,
path  p 
) [virtual]

Definition at line 622 of file observer.cpp.

                                                     {
  (void) ref; (void) p;
}

Here is the caller graph for this function:

void observer_rep::announce_set_cursor ( tree ref,
path  p,
tree  data 
) [virtual]

Definition at line 627 of file observer.cpp.

                                                               {
  (void) ref; (void) p; (void) data;
}

Here is the caller graph for this function:

void observer_rep::announce_split ( tree ref,
path  p 
) [virtual]

Definition at line 602 of file observer.cpp.

                                               {
  (void) ref; (void) p;
}

Here is the caller graph for this function:

void observer_rep::done ( tree ref,
modification  mod 
) [virtual]

Reimplemented in list_observer_rep, ip_observer_rep, and edit_observer_rep.

Definition at line 577 of file observer.cpp.

                                               {
  (void) ref; (void) mod;
}
observer & observer_rep::get_child ( int  which) [virtual]

Reimplemented in list_observer_rep.

Definition at line 716 of file observer.cpp.

                                  {
  (void) which;
  return nil_observer;
}
bool observer_rep::get_contents ( int  kind,
blackbox bb 
) [virtual]

Reimplemented in list_observer_rep, and tree_addendum_rep.

Definition at line 733 of file observer.cpp.

                                                  {
  (void) kind; (void) bb;
  return false;
}
bool observer_rep::get_highlight ( int  lan,
array< int > &  cols 
) [virtual]

Reimplemented in list_observer_rep, and highlight_observer_rep.

Definition at line 745 of file observer.cpp.

                                                      {
  (void) lan; (void) cols; return false;
}
bool observer_rep::get_ip ( path ip) [virtual]

Reimplemented in list_observer_rep, and ip_observer_rep.

Definition at line 692 of file observer.cpp.

                              {
  (void) ip;
  return false;
}
bool observer_rep::get_position ( tree t,
int &  index 
) [virtual]

Reimplemented in list_observer_rep, and tree_position_rep.

Definition at line 704 of file observer.cpp.

                                               {
  (void) t; (void) index;
  return false;
}
bool observer_rep::get_tree ( tree t) [virtual]

Reimplemented in list_observer_rep, tree_addendum_rep, and tree_pointer_rep.

Definition at line 727 of file observer.cpp.

                               {
  (void) t;
  return false;
}

Reimplemented in list_observer_rep, and tree_pointer_rep.

Definition at line 722 of file observer.cpp.

                                 {
  return list<observer> ();
}
virtual int observer_rep::get_type ( ) [inline, virtual]
void observer_rep::notify_assign ( tree ref,
tree  t 
) [virtual]

Reimplemented in list_observer_rep, ip_observer_rep, tree_addendum_rep, tree_pointer_rep, edit_observer_rep, tree_position_rep, and undo_observer_rep.

Definition at line 632 of file observer.cpp.

                                              {
  (void) ref; (void) t;
}
void observer_rep::notify_assign_node ( tree ref,
tree_label  op 
) [virtual]

Reimplemented in list_observer_rep, ip_observer_rep, tree_addendum_rep, tree_pointer_rep, and tree_position_rep.

Definition at line 667 of file observer.cpp.

                                                          {
  (void) ref; (void) op;
}
void observer_rep::notify_detach ( tree ref,
tree  closest,
bool  right 
) [virtual]

Reimplemented in list_observer_rep, ip_observer_rep, tree_addendum_rep, tree_pointer_rep, tree_position_rep, edit_observer_rep, and undo_observer_rep.

Definition at line 687 of file observer.cpp.

                                                                {
  (void) ref; (void) closest; (void) right;
}
void observer_rep::notify_insert ( tree ref,
int  pos,
int  nr 
) [virtual]

Reimplemented in list_observer_rep, ip_observer_rep, tree_addendum_rep, tree_pointer_rep, and tree_position_rep.

Definition at line 637 of file observer.cpp.

                                                       {
  (void) ref; (void) pos; (void) nr;
}
void observer_rep::notify_insert_node ( tree ref,
int  pos 
) [virtual]

Reimplemented in list_observer_rep, ip_observer_rep, tree_addendum_rep, tree_pointer_rep, and tree_position_rep.

Definition at line 672 of file observer.cpp.

                                                    {
  (void) ref; (void) pos;
}
void observer_rep::notify_join ( tree ref,
int  pos,
tree  next 
) [virtual]

Reimplemented in list_observer_rep, ip_observer_rep, tree_addendum_rep, tree_pointer_rep, and tree_position_rep.

Definition at line 657 of file observer.cpp.

                                                        {
  (void) ref; (void) pos; (void) next;
}
void observer_rep::notify_remove ( tree ref,
int  pos,
int  nr 
) [virtual]

Reimplemented in list_observer_rep, ip_observer_rep, tree_addendum_rep, tree_pointer_rep, and tree_position_rep.

Definition at line 642 of file observer.cpp.

                                                       {
  (void) ref; (void) pos; (void) nr;
}
void observer_rep::notify_remove_node ( tree ref,
int  pos 
) [virtual]

Reimplemented in list_observer_rep, ip_observer_rep, tree_addendum_rep, tree_pointer_rep, tree_position_rep, edit_observer_rep, and undo_observer_rep.

Definition at line 677 of file observer.cpp.

                                                    {
  (void) ref; (void) pos;
}
void observer_rep::notify_set_cursor ( tree ref,
int  pos,
tree  data 
) [virtual]

Reimplemented in list_observer_rep.

Definition at line 682 of file observer.cpp.

                                                              {
  (void) ref; (void) pos; (void) data;
}
void observer_rep::notify_split ( tree ref,
int  pos,
tree  prev 
) [virtual]

Reimplemented in list_observer_rep, ip_observer_rep, tree_addendum_rep, tree_pointer_rep, and tree_position_rep.

Definition at line 647 of file observer.cpp.

                                                         {
  (void) ref; (void) pos; (void) prev;
}
void observer_rep::notify_var_join ( tree ref,
tree  t,
int  offset 
) [virtual]

Reimplemented in list_observer_rep, ip_observer_rep, tree_addendum_rep, tree_pointer_rep, tree_position_rep, edit_observer_rep, and undo_observer_rep.

Definition at line 662 of file observer.cpp.

                                                            {
  (void) ref; (void) t; (void) offset;
}
void observer_rep::notify_var_split ( tree ref,
tree  t1,
tree  t2 
) [virtual]

Reimplemented in list_observer_rep, ip_observer_rep, tree_addendum_rep, tree_pointer_rep, tree_position_rep, edit_observer_rep, and undo_observer_rep.

Definition at line 652 of file observer.cpp.

                                                           {
  (void) ref; (void) t1; (void) t2;
}
virtual tm_ostream& observer_rep::print ( tm_ostream out) [inline, virtual]
bool observer_rep::set_highlight ( int  lan,
int  col,
int  start,
int  end 
) [virtual]

Reimplemented in list_observer_rep, and highlight_observer_rep.

Definition at line 739 of file observer.cpp.

                                                                 {
  (void) col; (void) start; (void) end; (void) lan;
  return false;
}
bool observer_rep::set_ip ( path  ip) [virtual]

Reimplemented in list_observer_rep, and ip_observer_rep.

Definition at line 698 of file observer.cpp.

                             {
  (void) ip;
  return false;
}
bool observer_rep::set_position ( tree  t,
int  index 
) [virtual]

Reimplemented in list_observer_rep, and tree_position_rep.

Definition at line 710 of file observer.cpp.

                                             {
  (void) t; (void) index;
  return false;
}
void observer_rep::touched ( tree ref,
path  p 
) [virtual]

Reimplemented in list_observer_rep, ip_observer_rep, and edit_observer_rep.

Definition at line 582 of file observer.cpp.

                                        {
  (void) ref; (void) p;
}

Member Data Documentation

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: