#include <MultDivOp.h>
Inheritance diagram for mcMultDivOp:
Definition at line 121 of file MultDivOp.h.
Public Member Functions | |
mcMultDivOp (mcElementType t) | |
With this constructor, you can build a mcMultDivOp working as * or a mcMultDivOp working as /. | |
bool | isMultOp () const |
bool | isDivOp () const |
bool | data_isValidContainerFor (mcElementType t) const |
Returns TRUE if this element can safely contain the given element type. | |
Private Member Functions | |
mcDEFINE_MAIN_CLASS (MultDivOp, mcOperator) |
|
With this constructor, you can build a mcMultDivOp working as * or a mcMultDivOp working as /.
Definition at line 65 of file MultDivOp.cpp. References mcElement::data_AddProperty(), mcElement::data_GetType(), mcASSERT, mcCREATE_HELPER_CLASSES, mcEP_INITIALIZED, mcET_DIVOP, and mcET_MULTOP. |
|
Returns TRUE if this element can safely contain the given element type. Without this function a lot of errors could be undetectable:
mcPolynomial pol; // creates a new polynomial mcElement e(pol); // references it [...] // the programmers forgots what "e" references mcFraction f(e); // mcFraction wraps a mcPolynomialHelpers class ! f.data_GetNum(); // CRASH This function must be overridden by mcElement-derived classes in order to provide a list of the mcElementType it can safely contain. Reimplemented from mcOperator. Definition at line 135 of file MultDivOp.h. References mcET_DIVOP, and mcET_MULTOP. |
|
Definition at line 133 of file MultDivOp.h. |
|
Definition at line 132 of file MultDivOp.h. |
|
|
[ Top ] |