|
vkdb
A time series database engine in C++.
|
Interpreter for vq. More...
#include <interpreter.h>
Public Types | |
| using | error_callback = std::function<void(const RuntimeError&)> |
Public Member Functions | |
| Interpreter (Database &database, error_callback callback=[](const RuntimeError &) {}) noexcept | |
| Construct a new Interpreter object. | |
| void | interpret (const Expr &expr, std::ostream &stream=std::cout) const noexcept |
| Interpret the expression. | |
Interpreter for vq.
Definition at line 261 of file interpreter.h.
| using vkdb::Interpreter::error_callback = std::function<void(const RuntimeError&)> |
Definition at line 263 of file interpreter.h.
|
explicitnoexcept |
Construct a new Interpreter object.
Defaults the callback to an empty lambda.
| database | Database. |
| callback | Error callback. |
Definition at line 16 of file interpreter.cpp.
|
noexcept |
Interpret the expression.
Defaults the output stream to std::cout.
| expr | Expression. |
| stream | Stream. |
Definition at line 19 of file interpreter.cpp.