#include <Number.h>
Inheritance diagram for mcNumber:
This class allows the user to insert coefficients in the monomials.
Definition at line 381 of file Number.h.
Public Member Functions | |
mcNumber (const mcRealValue &n) | |
An handy constructor. | |
bool | data_isValidContainerFor (mcElementType t) const |
Returns TRUE if this element can safely contain the given element type. | |
mcWRAPPER void | data_Set (const mcRealValue &d) |
mcWRAPPER mcRealValue | data_Get () const |
mcWRAPPER void | math_Abs () |
mcWRAPPER bool | math_isValid () const |
mcWRAPPER bool | math_GetNumDen (mcIntegerValue &num, mcIntegerValue &den) |
mcFraction | math_TransformInFraction () |
Private Member Functions | |
mcDEFINE_MAIN_CLASS (Number, mcExpElement) |
|
An handy constructor.
Definition at line 388 of file Number.h. References mcObject::data_SetRefData(). |
|
Definition at line 395 of file Number.h. References mcWRAPPER. Referenced by mcNumberHelpers::gui_MergeWith(), mcNumberHelpers::gui_Split(), mcNumberHelpers::math_Add(), mcNumberHelpers::math_CanBeDivBy(), mcNumberHelpers::math_DivideBaseOnlyBy(), mcElementArrayHelpers::math_GetWrappedNumber(), and mcNumberHelpers::math_MultiplyBaseOnlyBy(). |
|
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 mcExpElement. Definition at line 391 of file Number.h. References mcET_NUMBER. |
|
Definition at line 394 of file Number.h. References mcWRAPPER. Referenced by mcNumberHelpers::gui_Split(), and mcNumberHelpers::math_SimplifyBaseExp(). |
|
Definition at line 397 of file Number.h. References mcWRAPPER. Referenced by mcMonomialHelpers::math_Abs(). |
|
Definition at line 403 of file Number.h. References mcWRAPPER. |
|
Definition at line 400 of file Number.h. References mcWRAPPER. Referenced by mcNumberHelpers::math_CanBeDivBy(). |
|
Definition at line 79 of file Number.cpp. |
|
|
[ Top ] |