![]() |
Cadabra
Computer algebra system for field theory problems
|
#include <cadabra2-cli.hh>
Classes | |
| class | CatchOutput |
Public Types | |
| enum class | Flags : unsigned int { None = 0x00 , NoBanner = 0x01 , IgnoreSemicolons = 0x02 , NoColour = 0x04 , NoReadline = 0x08 , TeXmacs = 0x10 } |
Public Member Functions | |
| Shell (Flags flags) | |
| ~Shell () | |
| void | start () |
| void | interact () |
| void | interact_texmacs () |
| pybind11::object | evaluate (const std::string &code, const std::string &filename="<stdin>") const |
| void | execute (const std::string &code, const std::string &filename="<stdin>") |
| void | execute_file (const std::string &filename, bool preprocess=true) |
| void | interact_file (const std::string &filename, bool preprocess=true) |
| void | show_banner () const |
| void | write_stdout (const std::string &text, const std::string &end="\n", bool flush=false) |
| void | write_stderr (const std::string &text, const std::string &end="\n", bool flush=false) |
Public Attributes | |
| CatchOutput | catchOut |
| CatchOutput | catchErr |
Private Member Functions | |
| void | set_histfile () |
| std::string | str (const pybind11::handle &obj) const |
| std::string | repr (const pybind11::handle &obj) |
| std::string | sanitize (std::string s) |
| void | process_ps1 (const std::string &line) |
| void | process_ps2 (const std::string &line) |
| void | set_completion_callback (const char *buffer, std::vector< std::string > &completions) |
| std::string | get_ps1 () |
| std::string | get_ps2 () |
| void | handle_error () |
| void | handle_error (pybind11::error_already_set &err) |
| void | open_texmacs_logfile () |
Private Attributes | |
| std::string | histfile |
| std::string | site_path |
| std::ofstream | logf |
| pybind11::module | main_module |
| pybind11::object | main_namespace |
| pybind11::dict | globals |
| pybind11::object | sys |
| pybind11::object | py_stdout |
| pybind11::object | py_stderr |
| std::string | collect |
| const char * | colour_error |
| const char * | colour_warning |
| const char * | colour_info |
| const char * | colour_success |
| const char * | colour_reset |
| const char * | colour_bold |
| Flags | flags |
|
strong |
| Shell::Shell | ( | Flags | flags | ) |
| Shell::~Shell | ( | ) |
| pybind11::object Shell::evaluate | ( | const std::string & | code, |
| const std::string & | filename = "<stdin>" ) const |
| void Shell::execute | ( | const std::string & | code, |
| const std::string & | filename = "<stdin>" ) |
| void Shell::execute_file | ( | const std::string & | filename, |
| bool | preprocess = true ) |
|
private |
|
private |
|
private |
|
private |
| void Shell::interact | ( | ) |
| void Shell::interact_file | ( | const std::string & | filename, |
| bool | preprocess = true ) |
| void Shell::interact_texmacs | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| void Shell::show_banner | ( | ) | const |
| void Shell::start | ( | ) |
|
private |
| void Shell::write_stderr | ( | const std::string & | text, |
| const std::string & | end = "\n", | ||
| bool | flush = false ) |
| void Shell::write_stdout | ( | const std::string & | text, |
| const std::string & | end = "\n", | ||
| bool | flush = false ) |
| CatchOutput Shell::catchErr |
| CatchOutput Shell::catchOut |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |