OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
|
#include <Rotation.h>
Public Member Functions | |
virtual | ~Rotation () |
virtual void | print (int indentwidth) |
void | applyRotation (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 | angle_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 Rotation.h.
|
inlinevirtual |
Definition at line 11 of file Rotation.h.
References func_m.
|
virtual |
Implements mslang::Function.
Definition at line 33 of file Rotation.cpp.
References mslang::Function::apply(), applyRotation(), and func_m.
void mslang::Rotation::applyRotation | ( | std::vector< std::shared_ptr< Base > > & | bfuncs | ) |
Definition at line 17 of file Rotation.cpp.
References angle_m, applyRotation(), cos(), and sin().
Referenced by apply(), and applyRotation().
Definition at line 38 of file Rotation.cpp.
References angle_m, Physics::e, end(), endl(), func_m, mslang::ArgumentExtractor::get(), mslang::ArgumentExtractor::getLengthConsumed(), mslang::Function::parse(), and mslang::parseMathExpression().
Referenced by mslang::Function::parse().
|
virtual |
Implements mslang::Function.
Definition at line 8 of file Rotation.cpp.
References angle_m, endl(), func_m, and mslang::Function::print().
double mslang::Rotation::angle_m |
Definition at line 9 of file Rotation.h.
Referenced by applyRotation(), parse_detail(), and print().
Function* mslang::Rotation::func_m |
Definition at line 8 of file Rotation.h.
Referenced by apply(), parse_detail(), print(), and ~Rotation().