Back to index

Functions | Variables
new_document.hpp File Reference
#include "tree.hpp"
#include "path.hpp"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


path new_document ()
void delete_document (path rp)
void set_document (path rp, tree t)


tree the_et

Function Documentation

void delete_document ( path  rp)

Definition at line 33 of file new_document.cpp.

Definition at line 21 of file new_document.cpp.

  int i, n= N(the_et);
  for (i=0; i<n; i++)
    if (the_et[i] == UNINIT) {
      assign (the_et[i], tree (DOCUMENT, ""));
      return path (i); // obtain_ip (the_et[i]);
  insert (the_et, n, tuple (tree (DOCUMENT, "")));
  return path (n); // obtain_ip (the_et[n]);
void set_document ( path  rp,
tree  t 

Definition at line 39 of file new_document.cpp.

  //assign (subtree (the_et, rp), t);
  assign (subtree (the_et, rp), copy (t));

Variable Documentation

Definition at line 18 of file new_document.cpp.