|
stator
A math, geometry, and utility library
|
The generic holder/smart pointer for a runtime Abstract Syntax Tree (AST) (expression). More...
#include <runtime.hpp>
Public Types | |
| typedef shared_ptr< const RTBase > | Base |
Public Member Functions | |
| Expr () | |
| Expr (const std::shared_ptr< const RTBase > &p) | |
| Expr (const char *) | |
| Expr (const std::string &) | |
| Expr (const RTBase &) | |
| Expr (const double &) | |
| template<std::intmax_t Num, std::intmax_t Denom> | |
| Expr (const C< Num, Denom > &c) | |
| template<typename ... Args> | |
| Expr (const Var< Args... > v) | |
| template<class Op , class Arg_t > | |
| Expr (const UnaryOp< Arg_t, Op > &) | |
| template<class LHS_t , class Op , class RHS_t > | |
| Expr (const BinaryOp< LHS_t, Op, RHS_t > &) | |
| Expr (const detail::NoIdentity &) | |
| template<class T > | |
| T | as () const |
| operator bool () const | |
| bool | operator!= (const Expr &o) const |
| bool | operator== (const Expr &) const |
| bool | operator== (const detail::NoIdentity &) const |
This class is simply a smart pointer, with specialised constructors to allow it to convert compile-time expressions (and formula strings) into runtime forms. It also inherits from SymbolicOperator and can be used in compile-time expressions.
Definition at line 68 of file runtime.hpp.
| typedef shared_ptr<const RTBase> sym::Expr::Base |
Definition at line 69 of file runtime.hpp.
|
inline |
Definition at line 71 of file runtime.hpp.
|
inline |
Definition at line 72 of file runtime.hpp.
| sym::Expr::Expr | ( | const char * | str | ) |
Definition at line 447 of file parser.hpp.
| sym::Expr::Expr | ( | const std::string & | str | ) |
Definition at line 437 of file parser.hpp.
|
inline |
Definition at line 343 of file runtime.hpp.
|
inline |
Definition at line 345 of file runtime.hpp.
| sym::Expr::Expr | ( | const C< Num, Denom > & | c | ) |
Definition at line 348 of file runtime.hpp.
| sym::Expr::Expr | ( | const Var< Args... > | v | ) |
Definition at line 357 of file runtime.hpp.
| sym::Expr::Expr | ( | const UnaryOp< Arg_t, Op > & | op | ) |
Definition at line 351 of file runtime.hpp.
| sym::Expr::Expr | ( | const BinaryOp< LHS_t, Op, RHS_t > & | op | ) |
Definition at line 354 of file runtime.hpp.
|
inline |
Definition at line 93 of file runtime.hpp.
| T sym::Expr::as | ( | ) | const |
Definition at line 360 of file runtime.hpp.
|
inlineexplicit |
Definition at line 98 of file runtime.hpp.
|
inline |
Definition at line 96 of file runtime.hpp.
|
inline |
Definition at line 368 of file runtime.hpp.
|
inline |
Definition at line 97 of file runtime.hpp.
1.8.13