Back to index

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

List of all members.

Public Member Functions

 list_observer_rep (observer o1b, observer o2b)
int get_type ()
tm_ostreamprint (tm_ostream &out)
void announce (tree &ref, modification mod)
void done (tree &ref, modification mod)
void touched (tree &ref, path p)
void notify_assign (tree &ref, tree t)
void notify_insert (tree &ref, int pos, int nr)
void notify_remove (tree &ref, int pos, int nr)
void notify_split (tree &ref, int pos, tree prev)
void notify_var_split (tree &ref, tree t1, tree t2)
void notify_join (tree &ref, int pos, tree next)
void notify_var_join (tree &ref, tree t, int offset)
void notify_assign_node (tree &ref, tree_label op)
void notify_insert_node (tree &ref, int pos)
void notify_remove_node (tree &ref, int pos)
void notify_set_cursor (tree &ref, int pos, tree data)
void notify_detach (tree &ref, tree closest, bool right)
bool get_ip (path &ip)
bool set_ip (path ip)
bool get_position (tree &t, int &index)
bool set_position (tree t, int index)
observerget_child (int which)
list< observerget_tree_pointers ()
bool get_tree (tree &t)
bool get_contents (int kind, blackbox &bb)
bool set_highlight (int lan, int col, int start, int end)
bool get_highlight (int lan, array< int > &cols)
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)

Public Attributes

int ref_count

Private Attributes

observer o1
observer o2

Detailed Description

Definition at line 24 of file list_observer.cpp.


Constructor & Destructor Documentation

Definition at line 29 of file list_observer.cpp.

: o1 (o1b), o2 (o2b) {}

Member Function Documentation

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

Reimplemented from observer_rep.

Definition at line 70 of file list_observer.cpp.

                                                        {
  if (!is_nil (o1)) o1->announce (ref, mod);
  if (!is_nil (o2)) o2->announce (ref, mod);
}

Here is the call graph for this function:

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

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, inherited]

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, inherited]

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, inherited]

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, inherited]

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, inherited]

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, inherited]

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, inherited]

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, inherited]

Definition at line 602 of file observer.cpp.

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

Here is the caller graph for this function:

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

Reimplemented from observer_rep.

Definition at line 76 of file list_observer.cpp.

                                                    {
  if (!is_nil (o1)) o1->done (ref, mod);
  if (!is_nil (o2)) o2->done (ref, mod);
}

Here is the call graph for this function:

observer & list_observer_rep::get_child ( int  which) [virtual]

Reimplemented from observer_rep.

Definition at line 192 of file list_observer.cpp.

                                       {
  if (which == 0) return o1;
  else return o2;
}
bool list_observer_rep::get_contents ( int  kind,
blackbox bb 
) [virtual]

Reimplemented from observer_rep.

Definition at line 212 of file list_observer.cpp.

                                                       {
  return (!is_nil (o1) && o1->get_contents (kind, bb)) |
         (!is_nil (o2) && o2->get_contents (kind, bb));
}

Here is the call graph for this function:

bool list_observer_rep::get_highlight ( int  lan,
array< int > &  cols 
) [virtual]

Reimplemented from observer_rep.

Definition at line 224 of file list_observer.cpp.

                                                           {
  return (!is_nil (o1) && o1->get_highlight (lan, cols)) |
         (!is_nil (o2) && o2->get_highlight (lan, cols));
}

Here is the call graph for this function:

bool list_observer_rep::get_ip ( path ip) [virtual]

Reimplemented from observer_rep.

Definition at line 168 of file list_observer.cpp.

                                   {
  return (!is_nil (o1) && o1->get_ip (ip)) |
         (!is_nil (o2) && o2->get_ip (ip));
}

Here is the call graph for this function:

bool list_observer_rep::get_position ( tree t,
int &  index 
) [virtual]

Reimplemented from observer_rep.

Definition at line 180 of file list_observer.cpp.

                                                    {
  return (!is_nil (o1) && o1->get_position (t, index)) |
         (!is_nil (o2) && o2->get_position (t, index));
}

Here is the call graph for this function:

bool list_observer_rep::get_tree ( tree t) [virtual]

Reimplemented from observer_rep.

Definition at line 206 of file list_observer.cpp.

                                    {
  return (!is_nil (o1) && o1->get_tree (t)) |
         (!is_nil (o2) && o2->get_tree (t));
}

Here is the call graph for this function:

Reimplemented from observer_rep.

Definition at line 198 of file list_observer.cpp.

                                      {
  list<observer> l;
  if (!is_nil (o1)) l= l * o1->get_tree_pointers ();
  if (!is_nil (o2)) l= l * o2->get_tree_pointers ();
  return l;
}

Here is the call graph for this function:

int list_observer_rep::get_type ( ) [inline, virtual]

Reimplemented from observer_rep.

Definition at line 30 of file list_observer.cpp.

{ return OBSERVER_LIST; }
void list_observer_rep::notify_assign ( tree ref,
tree  t 
) [virtual]

Reimplemented from observer_rep.

Definition at line 92 of file list_observer.cpp.

                                                   {
  if (!is_nil (o1)) o1->notify_assign (ref, t);
  if (!is_nil (o2)) o2->notify_assign (ref, t);
}

Here is the call graph for this function:

void list_observer_rep::notify_assign_node ( tree ref,
tree_label  op 
) [virtual]

Reimplemented from observer_rep.

Definition at line 134 of file list_observer.cpp.

                                                               {
  if (!is_nil (o1)) o1->notify_assign_node (ref, op);
  if (!is_nil (o2)) o2->notify_assign_node (ref, op);
}

Here is the call graph for this function:

void list_observer_rep::notify_detach ( tree ref,
tree  closest,
bool  right 
) [virtual]

Reimplemented from observer_rep.

Definition at line 158 of file list_observer.cpp.

                                                                     {
  if (!is_nil (o1)) o1->notify_detach (ref, closest, right);
  if (!is_nil (o2)) o2->notify_detach (ref, closest, right);
}

Here is the call graph for this function:

void list_observer_rep::notify_insert ( tree ref,
int  pos,
int  nr 
) [virtual]

Reimplemented from observer_rep.

Definition at line 98 of file list_observer.cpp.

                                                            {
  if (!is_nil (o1)) o1->notify_insert (ref, pos, nr);
  if (!is_nil (o2)) o2->notify_insert (ref, pos, nr);
}

Here is the call graph for this function:

void list_observer_rep::notify_insert_node ( tree ref,
int  pos 
) [virtual]

Reimplemented from observer_rep.

Definition at line 140 of file list_observer.cpp.

                                                         {
  if (!is_nil (o1)) o1->notify_insert_node (ref, pos);
  if (!is_nil (o2)) o2->notify_insert_node (ref, pos);
}

Here is the call graph for this function:

void list_observer_rep::notify_join ( tree ref,
int  pos,
tree  next 
) [virtual]

Reimplemented from observer_rep.

Definition at line 122 of file list_observer.cpp.

                                                             {
  if (!is_nil (o1)) o1->notify_join (ref, pos, next);
  if (!is_nil (o2)) o2->notify_join (ref, pos, next);
}

Here is the call graph for this function:

void list_observer_rep::notify_remove ( tree ref,
int  pos,
int  nr 
) [virtual]

Reimplemented from observer_rep.

Definition at line 104 of file list_observer.cpp.

                                                            {
  if (!is_nil (o1)) o1->notify_remove (ref, pos, nr);
  if (!is_nil (o2)) o2->notify_remove (ref, pos, nr);
}

Here is the call graph for this function:

void list_observer_rep::notify_remove_node ( tree ref,
int  pos 
) [virtual]

Reimplemented from observer_rep.

Definition at line 146 of file list_observer.cpp.

                                                         {
  if (!is_nil (o1)) o1->notify_remove_node (ref, pos);
  if (!is_nil (o2)) o2->notify_remove_node (ref, pos);
}

Here is the call graph for this function:

void list_observer_rep::notify_set_cursor ( tree ref,
int  pos,
tree  data 
) [virtual]

Reimplemented from observer_rep.

Definition at line 152 of file list_observer.cpp.

                                                                   {
  if (!is_nil (o1)) o1->notify_set_cursor (ref, pos, data);
  if (!is_nil (o2)) o2->notify_set_cursor (ref, pos, data);
}

Here is the call graph for this function:

void list_observer_rep::notify_split ( tree ref,
int  pos,
tree  prev 
) [virtual]

Reimplemented from observer_rep.

Definition at line 110 of file list_observer.cpp.

                                                              {
  if (!is_nil (o1)) o1->notify_split (ref, pos, prev);
  if (!is_nil (o2)) o2->notify_split (ref, pos, prev);
}

Here is the call graph for this function:

void list_observer_rep::notify_var_join ( tree ref,
tree  t,
int  offset 
) [virtual]

Reimplemented from observer_rep.

Definition at line 128 of file list_observer.cpp.

                                                                 {
  if (!is_nil (o1)) o1->notify_var_join (ref, t, offset);
  if (!is_nil (o2)) o2->notify_var_join (ref, t, offset);
}

Here is the call graph for this function:

void list_observer_rep::notify_var_split ( tree ref,
tree  t1,
tree  t2 
) [virtual]

Reimplemented from observer_rep.

Definition at line 116 of file list_observer.cpp.

                                                                {
  if (!is_nil (o1)) o1->notify_var_split (ref, t1, t2);
  if (!is_nil (o2)) o2->notify_var_split (ref, t1, t2);
}

Here is the call graph for this function:

tm_ostream& list_observer_rep::print ( tm_ostream out) [inline, virtual]

Reimplemented from observer_rep.

Definition at line 31 of file list_observer.cpp.

                                      {
    if (!is_nil (o1)) o1->print (out);
    if (!is_nil (o2)) o2->print (out);
    return out; }

Here is the call graph for this function:

bool list_observer_rep::set_highlight ( int  lan,
int  col,
int  start,
int  end 
) [virtual]

Reimplemented from observer_rep.

Definition at line 218 of file list_observer.cpp.

                                                                      {
  return (!is_nil (o1) && o1->set_highlight (lan, col, start, end)) |
         (!is_nil (o2) && o2->set_highlight (lan, col, start, end));
}

Here is the call graph for this function:

bool list_observer_rep::set_ip ( path  ip) [virtual]

Reimplemented from observer_rep.

Definition at line 174 of file list_observer.cpp.

                                  {
  return (!is_nil (o1) && o1->set_ip (ip)) |
         (!is_nil (o2) && o2->set_ip (ip));
}

Here is the call graph for this function:

bool list_observer_rep::set_position ( tree  t,
int  index 
) [virtual]

Reimplemented from observer_rep.

Definition at line 186 of file list_observer.cpp.

                                                  {
  return (!is_nil (o1) && o1->set_position (t, index)) |
         (!is_nil (o2) && o2->set_position (t, index));
}

Here is the call graph for this function:

void list_observer_rep::touched ( tree ref,
path  p 
) [virtual]

Reimplemented from observer_rep.

Definition at line 82 of file list_observer.cpp.

                                             {
  if (!is_nil (o1)) o1->touched (ref, p);
  if (!is_nil (o2)) o2->touched (ref, p);
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 25 of file list_observer.cpp.

Definition at line 26 of file list_observer.cpp.

int abstract_struct::ref_count [inherited]

Definition at line 142 of file basic.hpp.


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