#include <cadabra2-cli.hh>
|
| Shell (Flags flags) |
|
| ~Shell () |
|
void | restart () |
|
void | interact () |
|
pybind11::object | evaluate (const std::string &code, const std::string &filename="<stdin>") |
|
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 | 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) |
|
◆ Flags
Enumerator |
---|
None | |
NoBanner | |
IgnoreSemicolons | |
NoColour | |
NoReadline | |
◆ Shell()
Shell::Shell |
( |
Flags |
flags | ) |
|
◆ ~Shell()
◆ evaluate()
pybind11::object Shell::evaluate |
( |
const std::string & |
code, |
|
|
const std::string & |
filename = "<stdin>" |
|
) |
| |
◆ execute()
void Shell::execute |
( |
const std::string & |
code, |
|
|
const std::string & |
filename = "<stdin>" |
|
) |
| |
◆ execute_file()
void Shell::execute_file |
( |
const std::string & |
filename, |
|
|
bool |
preprocess = true |
|
) |
| |
◆ get_ps1()
std::string Shell::get_ps1 |
( |
| ) |
|
|
private |
◆ get_ps2()
std::string Shell::get_ps2 |
( |
| ) |
|
|
private |
◆ handle_error() [1/2]
void Shell::handle_error |
( |
| ) |
|
|
private |
◆ handle_error() [2/2]
void Shell::handle_error |
( |
pybind11::error_already_set & |
err | ) |
|
|
private |
◆ interact()
◆ interact_file()
void Shell::interact_file |
( |
const std::string & |
filename, |
|
|
bool |
preprocess = true |
|
) |
| |
◆ process_ps1()
void Shell::process_ps1 |
( |
const std::string & |
line | ) |
|
|
private |
◆ process_ps2()
void Shell::process_ps2 |
( |
const std::string & |
line | ) |
|
|
private |
◆ repr()
std::string Shell::repr |
( |
const pybind11::handle & |
obj | ) |
|
|
private |
◆ restart()
◆ sanitize()
std::string Shell::sanitize |
( |
std::string |
s | ) |
|
|
private |
◆ set_completion_callback()
void Shell::set_completion_callback |
( |
const char * |
buffer, |
|
|
std::vector< std::string > & |
completions |
|
) |
| |
|
private |
◆ set_histfile()
void Shell::set_histfile |
( |
| ) |
|
|
private |
◆ str()
std::string Shell::str |
( |
const pybind11::handle & |
obj | ) |
|
|
private |
◆ write_stderr()
void Shell::write_stderr |
( |
const std::string & |
text, |
|
|
const std::string & |
end = "\n" , |
|
|
bool |
flush = false |
|
) |
| |
◆ write_stdout()
void Shell::write_stdout |
( |
const std::string & |
text, |
|
|
const std::string & |
end = "\n" , |
|
|
bool |
flush = false |
|
) |
| |
◆ collect
std::string Shell::collect |
|
private |
◆ colour_error
const char* Shell::colour_error |
|
private |
◆ colour_info
const char* Shell::colour_info |
|
private |
◆ colour_reset
const char* Shell::colour_reset |
|
private |
◆ colour_success
const char* Shell::colour_success |
|
private |
◆ colour_warning
const char* Shell::colour_warning |
|
private |
◆ flags
◆ globals
pybind11::dict Shell::globals |
|
private |
◆ histfile
std::string Shell::histfile |
|
private |
◆ py_stderr
pybind11::object Shell::py_stderr |
|
private |
◆ py_stdout
pybind11::object Shell::py_stdout |
|
private |
◆ site_path
std::string Shell::site_path |
|
private |
◆ sys
pybind11::object Shell::sys |
|
private |
The documentation for this class was generated from the following files: