Back to index

texmacs  1.0.7.15
Functions | Variables
tmfs_table.cpp File Reference
#include "tmfs.hpp"
#include "file.hpp"

Go to the source code of this file.

Functions

void tmfs_initialize ()
void tmfs_write (transaction t)
transaction tmfs_read (collection c)
void tmfs_set (string key, collection val)
void tmfs_set (string key, string val)
void tmfs_reset (string key, collection val)
void tmfs_reset (string key, string val)
collection tmfs_get (string key)
void tmfs_save (string key, string val)
void tmfs_remove (string key)
string tmfs_load (string key)

Variables

disk_table tmfs

Function Documentation

Definition at line 63 of file tmfs_table.cpp.

                      {
  transaction t= tmfs_read (singleton (key));
  return simplify (t[key]);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void tmfs_initialize ( )

Definition at line 22 of file tmfs_table.cpp.

                   {
  if (is_nil (tmfs)) tmfs= disk_table ("$TEXMACS_HOME_PATH/tmfs");
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 83 of file tmfs_table.cpp.

                       {
  transaction t= tmfs_read (singleton (key, 3));
  collection  c= simplify (t[key]);
  if (N(c) != 1) return "";
  return first (c);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 33 of file tmfs_table.cpp.

                         {
  tmfs_initialize ();
  return tmfs->read (c);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void tmfs_remove ( string  key)

Definition at line 78 of file tmfs_table.cpp.

                         {
  tmfs_write (atom (key, singleton ("*", -3)));
}

Here is the call graph for this function:

Here is the caller graph for this function:

void tmfs_reset ( string  key,
collection  val 
)

Definition at line 53 of file tmfs_table.cpp.

                                        {
  tmfs_write (atom (key, invert (val)));
}

Here is the call graph for this function:

Here is the caller graph for this function:

void tmfs_reset ( string  key,
string  val 
)

Definition at line 58 of file tmfs_table.cpp.

                                    {
  tmfs_write (atom (key, singleton (val, -1)));
}

Here is the call graph for this function:

void tmfs_save ( string  key,
string  val 
)

Definition at line 73 of file tmfs_table.cpp.

                                   {
  tmfs_write (atom (key, singleton (val, 3)));
}

Here is the call graph for this function:

Here is the caller graph for this function:

void tmfs_set ( string  key,
collection  val 
)

Definition at line 43 of file tmfs_table.cpp.

                                      {
  tmfs_write (atom (key, val));
}

Here is the call graph for this function:

Here is the caller graph for this function:

void tmfs_set ( string  key,
string  val 
)

Definition at line 48 of file tmfs_table.cpp.

                                  {
  tmfs_write (atom (key, singleton (val, 1)));
}

Here is the call graph for this function:

void tmfs_write ( transaction  t)

Definition at line 27 of file tmfs_table.cpp.

                           {
  tmfs_initialize ();
  tmfs->write (t);
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Definition at line 19 of file tmfs_table.cpp.