#include <AddSubOp.h>
Inheritance diagram for mcAddSubOpHelpers:
This is entirely defined & implemented through macros.
Definition at line 53 of file AddSubOp.h.
Public Member Functions | |
mcAddSubOpHelpers () | |
virtual | ~mcAddSubOpHelpers () |
bool | data_isAddOp () const |
bool | data_isSubOp () const |
bool | math_CanBeApplied (const mcElement &, const mcElement &) const |
Returns TRUE if this operator can be applied on the two given elements. | |
mcRealValue | math_Evaluate (mcRealValue v1, mcRealValue v2) const |
Applies the operator on the two given values and then returns it. | |
mcBasicOpRes | math_ApplySimple (mcElement &m1, const mcElement &m2) const |
Works like #Apply but uses the mcElement::math_SimpleAdd/Mult/Div functions and thus does not take the pointer-to-pointer argument. | |
mcBasicOpRes | math_Apply (mcElement &, const mcElement &, mcElement *) const |
Applies this operator on the left and right monomials. | |
Private Member Functions | |
mcDEFINE_REFERENCE_DATA (mcAddSubOp, mdata_nType) |
|
Definition at line 58 of file AddSubOp.h. |
|
Definition at line 59 of file AddSubOp.h. |
|
Definition at line 64 of file AddSubOp.h. References mcET_ADDOP. Referenced by math_Apply(), math_ApplySimple(), and math_Evaluate(). |
|
Definition at line 65 of file AddSubOp.h. References mcET_SUBOP. |
|
Applies this operator on the left and right monomials.
Implements mcOperatorHelpers. Definition at line 96 of file AddSubOp.cpp. References data_isAddOp(), math_CanBeApplied(), and mcBOR_INVALID. |
|
Works like #Apply but uses the mcElement::math_SimpleAdd/Mult/Div functions and thus does not take the pointer-to-pointer argument.
Implements mcOperatorHelpers. Definition at line 83 of file AddSubOp.cpp. References data_isAddOp(), math_CanBeApplied(), mcBOR_INVALID, and mcBOR_REMOVE_OPERAND. |
|
Returns TRUE if this operator can be applied on the two given elements. For non-commutative operators, the order is important: the first given pointer is the left operand while the second is the right one. Implements mcOperatorHelpers. Definition at line 80 of file AddSubOp.cpp. Referenced by math_Apply(), and math_ApplySimple(). |
|
Applies the operator on the two given values and then returns it.
Implements mcOperatorHelpers. Definition at line 104 of file AddSubOp.cpp. References data_isAddOp(). |
|
|
[ Top ] |