Back to index

texmacs  1.0.7.15
Private Member Functions | Friends
bridge Class Reference

#include <bridge.hpp>

List of all members.

Private Member Functions

 ABSTRACT_NULL (bridge)
bool operator== (bridge br2)
bool operator!= (bridge br2)

Friends

bridge make_bridge (typesetter ttt, tree st, path ip)
void replace_bridge (bridge &br, tree st, path ip)
void replace_bridge (bridge &br, path p, tree ot, tree nt, path ip)

Detailed Description

Definition at line 68 of file bridge.hpp.


Member Function Documentation

bridge::ABSTRACT_NULL ( bridge  ) [private]
bool bridge::operator!= ( bridge  br2) [private]

Definition at line 149 of file bridge.cpp.

                                 {
  return rep != item2.rep;
}
bool bridge::operator== ( bridge  br2) [private]

Definition at line 144 of file bridge.cpp.

                                 {
  return rep == item2.rep;
}

Friends And Related Function Documentation

bridge make_bridge ( typesetter  ttt,
tree  st,
path  ip 
) [friend]

Definition at line 59 of file bridge.cpp.

                                               {
  // cout << "Make bridge " << st << ", " << ip << LF;
  // cout << "Preamble mode= " << ttt->env->preamble << LF;
  if (ttt->env->preamble)
    return make_inactive_bridge (ttt, st, ip);
  switch (L(st)) {
  case ERROR:
    return bridge_auto (ttt, st, ip, error_m, true);
  case DOCUMENT:
    return bridge_document (ttt, st, ip);
  case SURROUND:
    return bridge_surround (ttt, st, ip);
  case HIDDEN:
    return bridge_hidden (ttt, st, ip);
  case DATOMS:
    return bridge_formatting (ttt, st, ip, ATOM_DECORATIONS);
  case DLINES:
    return bridge_formatting (ttt, st, ip, LINE_DECORATIONS);
  case DPAGES:
    return bridge_formatting (ttt, st, ip, PAGE_DECORATIONS);
  case TFORMAT:
    return bridge_formatting (ttt, st, ip, CELL_FORMAT);
  case WITH:
    return bridge_with (ttt, st, ip);
  case COMPOUND:
    return bridge_compound (ttt, st, ip);
  case ARG:
    return bridge_argument (ttt, st, ip);
  case MARK:
    return bridge_mark (ttt, st, ip);
  case EXPAND_AS:
    return bridge_expand_as (ttt, st, ip);
  case EVAL:
  case QUASI:
    return bridge_eval (ttt, st, ip);
  case EXTERN:
    return bridge_rewrite (ttt, st, ip);
  case INCLUDE:
    return bridge_rewrite (ttt, st, ip);
  case STYLE_ONLY:
  case VAR_STYLE_ONLY:
  case ACTIVE:
  case VAR_ACTIVE:
    return bridge_compound (ttt, st, ip);
  case INACTIVE:
    return bridge_auto (ttt, st, ip, inactive_m, true);
  case VAR_INACTIVE:
    return bridge_auto (ttt, st, ip, var_inactive_m, true);
  case REWRITE_INACTIVE:
    return bridge_rewrite (ttt, st, ip);
  case LOCUS:
    return bridge_locus (ttt, st, ip);
  case HLINK:
  case ACTION:
    return bridge_compound (ttt, st, ip);
  case CANVAS:
    return bridge_canvas (ttt, st, ip);
  case ORNAMENT:
    return bridge_ornament (ttt, st, ip);
  default:
    if (L(st) < START_EXTENSIONS) return bridge_default (ttt, st, ip);
    else return bridge_compound (ttt, st, ip);
  }
}
void replace_bridge ( bridge br,
tree  st,
path  ip 
) [friend]

Definition at line 125 of file bridge.cpp.

                                              {
  bridge new_br= make_bridge (br->ttt, st, ip);
  new_br->changes= br->changes;
  br= new_br;
}
void replace_bridge ( bridge br,
path  p,
tree  ot,
tree  nt,
path  ip 
) [friend]

Definition at line 132 of file bridge.cpp.

                                                                   {
  if (oldt == newt) return;
  if (is_atomic (newt) || L(oldt) != L(newt) || N(oldt) != N(newt)) {
    if (is_nil (p)) replace_bridge (br, newt, ip);
    else br->notify_assign (p, newt);
  }
  else
    for (int i=0; i<N(newt); i++)
      replace_bridge (br, p * i, oldt[i], newt[i], ip);
}

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