Cadabra
Computer algebra system for field theory problems
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Namespaces | Typedefs | Functions
DataCell.hh File Reference
#include <string>
#include <mutex>
#include "tree.hh"
#include "json/json.h"

Go to the source code of this file.

Classes

class  cadabra::DataCell
 DataCells are the basic building blocks for a document. More...
 
class  cadabra::DataCell::id_t
 Each cell is identified by a serial number 'id' which is used to keep track of it across network calls, and a bool indicating whether the client or the server has created this cell. More...
 

Namespaces

 cadabra
 Functions to handle the exchange properties of two or more symbols in a product.
 

Typedefs

typedef tree< DataCell > cadabra::DTree
 

Functions

std::string cadabra::JSON_serialise (const DTree &)
 Serialise a document into .cj format, which is a JSON version of the document tree. More...
 
void cadabra::JSON_recurse (const DTree &, DTree::iterator, Json::Value &)
 
void cadabra::JSON_deserialise (const std::string &, DTree &)
 Load a document from .cj format, i.e. the inverse of the above. More...
 
void cadabra::JSON_in_recurse (DTree &doc, DTree::iterator loc, const Json::Value &cells)
 
std::string cadabra::export_as_HTML (const DTree &doc, bool for_embedding=false, std::string title="")
 Export a document to a single self-contained HTML file containing inline CSS. More...
 
void cadabra::HTML_recurse (const DTree &doc, DTree::iterator it, std::ostringstream &str, const std::string &preamble_string, bool for_embedding=false, std::string title="")
 
std::string cadabra::latex_to_html (const std::string &)
 Convert various LaTeX constructions to HTML-with-Mathjax, e.g. More...
 
std::string cadabra::export_as_LaTeX (const DTree &doc)
 Export a document to a single self-contained LaTeX file. More...
 
void cadabra::LaTeX_recurse (const DTree &doc, DTree::iterator it, std::ostringstream &str, const std::string &preamble_string)
 
std::string cadabra::export_as_python (const DTree &doc)
 Export a document to a python-like file (converting text cells to comments and python cells to python code, dropping output cells). More...
 
void cadabra::python_recurse (const DTree &doc, DTree::iterator it, std::ostringstream &str)