OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
|
#include <Translation.h>
Public Member Functions | |
virtual | ~Translation () |
virtual void | print (int indentwidth) |
void | applyTranslation (std::vector< std::shared_ptr< Base > > &bfuncs) |
virtual void | apply (std::vector< std::shared_ptr< Base > > &bfuncs) |
Public Member Functions inherited from mslang::Function | |
virtual | ~Function () |
virtual void | print (int indent)=0 |
virtual void | apply (std::vector< std::shared_ptr< Base > > &bfuncs)=0 |
Static Public Member Functions | |
static bool | parse_detail (iterator &it, const iterator &end, Function *&fun) |
Static Public Member Functions inherited from mslang::Function | |
static bool | parse (iterator &it, const iterator &end, Function *&fun) |
Public Attributes | |
Function * | func_m |
double | shiftx_m |
double | shifty_m |
Additional Inherited Members | |
Static Public Attributes inherited from mslang::Function | |
static const std::string | UDouble = "([0-9]+\\.?[0-9]*([Ee][+-]?[0-9]+)?)" |
static const std::string | Double = "(-?[0-9]+\\.?[0-9]*([Ee][+-]?[0-9]+)?)" |
static const std::string | UInt = "([0-9]+)" |
static const std::string | FCall = "([a-z_]*)\\((.*)" |
Definition at line 7 of file Translation.h.
|
inlinevirtual |
Definition at line 12 of file Translation.h.
References func_m.
|
virtual |
Implements mslang::Function.
Definition at line 34 of file Translation.cpp.
References mslang::Function::apply(), applyTranslation(), and func_m.
void mslang::Translation::applyTranslation | ( | std::vector< std::shared_ptr< Base > > & | bfuncs | ) |
Definition at line 20 of file Translation.cpp.
References applyTranslation(), shiftx_m, and shifty_m.
Referenced by apply(), and applyTranslation().
|
static |
Definition at line 39 of file Translation.cpp.
References Physics::e, end(), endl(), func_m, mslang::ArgumentExtractor::get(), mslang::ArgumentExtractor::getLengthConsumed(), mslang::Function::parse(), mslang::parseMathExpression(), shiftx_m, and shifty_m.
Referenced by mslang::Function::parse().
|
virtual |
Implements mslang::Function.
Definition at line 10 of file Translation.cpp.
References endl(), func_m, mslang::Function::print(), shiftx_m, and shifty_m.
Function* mslang::Translation::func_m |
Definition at line 8 of file Translation.h.
Referenced by apply(), parse_detail(), print(), and ~Translation().
double mslang::Translation::shiftx_m |
Definition at line 9 of file Translation.h.
Referenced by applyTranslation(), parse_detail(), and print().
double mslang::Translation::shifty_m |
Definition at line 10 of file Translation.h.
Referenced by applyTranslation(), parse_detail(), and print().