stator
A math, geometry, and utility library
Public Member Functions | Public Attributes | List of all members
sym::detail::SubstituteRT Struct Reference

#include <runtime.hpp>

Inheritance diagram for sym::detail::SubstituteRT:
sym::detail::VisitorHelper< SubstituteRT > sym::detail::VisitorInterface

Public Member Functions

 SubstituteRT (VarRT var, Expr replacement)
 
template<class T >
Expr apply (const T &v)
 
Expr apply (const VarRT &v)
 
template<typename Op >
Expr apply (const UnaryOp< Expr, Op > &op)
 
template<typename Op >
Expr apply (const BinaryOp< Expr, Op, Expr > &op)
 
- Public Member Functions inherited from sym::detail::VisitorHelper< SubstituteRT >
virtual Expr visit (const double &x)
 
virtual Expr visit (const VarRT &x)
 
virtual Expr visit (const UnaryOp< Expr, detail::Sine > &x)
 
virtual Expr visit (const UnaryOp< Expr, detail::Cosine > &x)
 
virtual Expr visit (const UnaryOp< Expr, detail::Log > &x)
 
virtual Expr visit (const UnaryOp< Expr, detail::Exp > &x)
 
virtual Expr visit (const UnaryOp< Expr, detail::Absolute > &x)
 
virtual Expr visit (const UnaryOp< Expr, detail::Arbsign > &x)
 
virtual Expr visit (const BinaryOp< Expr, detail::Add, Expr > &x)
 
virtual Expr visit (const BinaryOp< Expr, detail::Subtract, Expr > &x)
 
virtual Expr visit (const BinaryOp< Expr, detail::Multiply, Expr > &x)
 
virtual Expr visit (const BinaryOp< Expr, detail::Divide, Expr > &x)
 
virtual Expr visit (const BinaryOp< Expr, detail::Power, Expr > &x)
 

Public Attributes

Expr _replacement
 
VarRT _var
 

Detailed Description

Definition at line 518 of file runtime.hpp.

Constructor & Destructor Documentation

◆ SubstituteRT()

sym::detail::SubstituteRT::SubstituteRT ( VarRT  var,
Expr  replacement 
)
inline

Definition at line 519 of file runtime.hpp.

Member Function Documentation

◆ apply() [1/4]

template<class T >
Expr sym::detail::SubstituteRT::apply ( const T &  v)
inline

Definition at line 523 of file runtime.hpp.

◆ apply() [2/4]

Expr sym::detail::SubstituteRT::apply ( const VarRT v)
inline

Definition at line 527 of file runtime.hpp.

◆ apply() [3/4]

template<typename Op >
Expr sym::detail::SubstituteRT::apply ( const UnaryOp< Expr, Op > &  op)
inline

Definition at line 534 of file runtime.hpp.

◆ apply() [4/4]

template<typename Op >
Expr sym::detail::SubstituteRT::apply ( const BinaryOp< Expr, Op, Expr > &  op)
inline

Definition at line 540 of file runtime.hpp.

Member Data Documentation

◆ _replacement

Expr sym::detail::SubstituteRT::_replacement

Definition at line 551 of file runtime.hpp.

◆ _var

VarRT sym::detail::SubstituteRT::_var

Definition at line 550 of file runtime.hpp.


The documentation for this struct was generated from the following file: