OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
mslang::Rotation Struct Reference

#include <Rotation.h>

Inheritance diagram for mslang::Rotation:
Collaboration diagram for mslang::Rotation:

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)

Static Public Member Functions

static bool parse_detail (iterator &it, const iterator &end, Function *&fun)
static bool parse (iterator &it, const iterator &end, Function *&fun)

Public Attributes

Functionfunc_m
double angle_m

Static Public Attributes

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_]*)\\‍((.*)"

Detailed Description

Definition at line 7 of file Rotation.h.

Constructor & Destructor Documentation

◆ ~Rotation()

virtual mslang::Rotation::~Rotation ( )
inlinevirtual

Definition at line 11 of file Rotation.h.

References func_m.

Member Function Documentation

◆ apply()

void mslang::Rotation::apply ( std::vector< std::shared_ptr< Base > > & bfuncs)
virtual

Implements mslang::Function.

Definition at line 33 of file Rotation.cpp.

References applyRotation(), and func_m.

Here is the call graph for this function:

◆ applyRotation()

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().

Here is the call graph for this function:

◆ parse()

◆ parse_detail()

bool mslang::Rotation::parse_detail ( iterator & it,
const iterator & end,
Function *& fun )
static

Definition at line 38 of file Rotation.cpp.

References angle_m, end(), func_m, mslang::ArgumentExtractor::get(), mslang::ArgumentExtractor::getLengthConsumed(), mslang::Function::parse(), and mslang::parseMathExpression().

Referenced by mslang::Function::parse().

Here is the call graph for this function:

◆ print()

void mslang::Rotation::print ( int indentwidth)
virtual

Implements mslang::Function.

Definition at line 8 of file Rotation.cpp.

References angle_m, and func_m.

Member Data Documentation

◆ angle_m

double mslang::Rotation::angle_m

Definition at line 9 of file Rotation.h.

Referenced by applyRotation(), parse_detail(), and print().

◆ Double

const std::string mslang::Function::Double = "(-?[0-9]+\\.?[0-9]*([Ee][+-]?[0-9]+)?)"
staticinherited

Definition at line 34 of file MSLang.h.

◆ FCall

const std::string mslang::Function::FCall = "([a-z_]*)\\‍((.*)"
staticinherited

Definition at line 36 of file MSLang.h.

Referenced by parse().

◆ func_m

Function* mslang::Rotation::func_m

Definition at line 8 of file Rotation.h.

Referenced by apply(), parse_detail(), print(), and ~Rotation().

◆ UDouble

const std::string mslang::Function::UDouble = "([0-9]+\\.?[0-9]*([Ee][+-]?[0-9]+)?)"
staticinherited

Definition at line 33 of file MSLang.h.

Referenced by mslang::Rectangle::parse_detail().

◆ UInt

const std::string mslang::Function::UInt = "([0-9]+)"
staticinherited

Definition at line 35 of file MSLang.h.


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