Back to index

texmacs  1.0.7.15
Classes | Functions
bridge_compound.cpp File Reference
#include "bridge.hpp"
#include "drd_std.hpp"

Go to the source code of this file.

Classes

class  bridge_compound_rep

Functions

tree insert_at (tree, path, tree)
tree remove_at (tree, path, int)
bridge bridge_compound (typesetter ttt, tree st, path ip)

Function Documentation

bridge bridge_compound ( typesetter  ttt,
tree  st,
path  ip 
)

Definition at line 57 of file bridge_compound.cpp.

                                                   {
  return tm_new<bridge_compound_rep> (ttt, st, ip);
}

Here is the caller graph for this function:

tree insert_at ( tree  ,
path  ,
tree   
)

Definition at line 48 of file bridge_default.cpp.

                                   {
  if (is_atom (p)) {
    if (is_atomic (t)) {
      ASSERT (is_atomic (u), "two atoms expected");
      return t->label (0, p->item) *u->label* t->label (p->item, N(t->label));
    }
    else return (t (0, p->item) * u) * t (p->item, N(t));
  }
  else return substitute (t, p->item, insert_at (t[p->item], p->next, u));
}

Here is the call graph for this function:

tree remove_at ( tree  ,
path  ,
int   
)

Definition at line 60 of file bridge_default.cpp.

                                   {
  if (is_atom (p)) {
    if (is_atomic (t))
      return t->label (0, p->item) * t->label (p->item+nr, N(t->label));
    else return t (0, p->item) * t (p->item+nr, N(t));
  }
  else return substitute (t, p->item, remove_at (t[p->item], p->next, nr));
}

Here is the call graph for this function: