Enumerations | Functions
eval.h File Reference
#include "pybind11.h"
Include dependency graph for eval.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  eval_mode { eval_expr, eval_single_statement, eval_statements }
 

Functions

template<eval_mode mode = eval_expr>
object eval (str expr, object global=globals(), object local=object())
 
template<eval_mode mode = eval_expr, size_t N>
object eval (const char(&s)[N], object global=globals(), object local=object())
 
template<eval_mode mode = eval_statements>
object eval_file (str fname, object global=globals(), object local=object())
 
void exec (str expr, object global=globals(), object local=object())
 
template<size_t N>
void exec (const char(&s)[N], object global=globals(), object local=object())
 

Enumeration Type Documentation

enum eval_mode
Enumerator
eval_expr 

Evaluate a string containing an isolated expression.

eval_single_statement 

Evaluate a string containing a single statement. Returns none.

eval_statements 

Evaluate a string containing a sequence of statement. Returns none.

Definition at line 18 of file eval.h.

Function Documentation

template<eval_mode mode = eval_expr>
object eval ( str  expr,
object  global = globals(),
object  local = object() 
)

Definition at line 30 of file eval.h.

template<eval_mode mode = eval_expr, size_t N>
object eval ( const char(&)  s[N],
object  global = globals(),
object  local = object() 
)

Definition at line 53 of file eval.h.

template<eval_mode mode = eval_statements>
object eval_file ( str  fname,
object  global = globals(),
object  local = object() 
)

Definition at line 84 of file eval.h.

void exec ( str  expr,
object  global = globals(),
object  local = object() 
)
inline

Definition at line 60 of file eval.h.

template<size_t N>
void exec ( const char(&)  s[N],
object  global = globals(),
object  local = object() 
)

Definition at line 65 of file eval.h.



gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:29