#include <ExpElement.h>
Inheritance diagram for mcExpElement:
Defines an extension to mcElement base class; mcExpElement provides functions to help derived classes to manage an exponent; thanks to this class a lot of code isn't repeated among all the elements with exponents...
Definition at line 893 of file ExpElement.h.
Public Member Functions | |
bool | data_isValidContainerFor (mcElementType t) const |
Returns TRUE if this element can safely contain the given element type. | |
mcWRAPPER mcElement & | data_GetExp () |
mcWRAPPER const mcElement & | data_GetExp () const |
mcWRAPPER mcElement & | data_GetSub () |
mcWRAPPER const mcElement & | data_GetSub () const |
mcWRAPPER void | data_SetExpSub (bool exp, const mcElement &p) |
mcWRAPPER void | data_DestroyExpSub (bool exp) |
mcWRAPPER void | data_CreateExpSub (bool exp) |
mcWRAPPER bool | math_hasExp () const |
mcWRAPPER bool | math_hasSub () const |
mcWRAPPER mcPolynomial & | math_GetExp () |
mcWRAPPER const mcPolynomial & | math_GetConstExp () const |
mcWRAPPER mcText & | math_GetSub () |
mcWRAPPER const mcText & | math_GetSub () const |
Private Member Functions | |
mcDEFINE_ABSTRACT_CLASS (ExpElement, mcElement) |
|
Definition at line 917 of file ExpElement.h. References mcWRAPPER. Referenced by mcExpElementHelpers::math_GetGCD(). |
|
Definition at line 915 of file ExpElement.h. References mcWRAPPER. Referenced by mcNumberHelpers::math_SimplifyBaseExp(), and mcExpElementHelpers::math_SimplifyExp(). |
|
Definition at line 908 of file ExpElement.h. References mcWRAPPER. |
|
Definition at line 907 of file ExpElement.h. References mcWRAPPER. Referenced by mcExpElementHelpers::math_GetLCM(), mcNumberHelpers::math_SimplifyBaseExp(), and mcRadicalHelpers::math_SimplifyContents(). |
|
Definition at line 911 of file ExpElement.h. References mcWRAPPER. |
|
Definition at line 910 of file ExpElement.h. References mcWRAPPER. |
|
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 mcElement. Reimplemented in mcBracket, mcExpContainer, mcFunction, mcNumber, mcRadical, and mcSymbol. Definition at line 899 of file ExpElement.h. References mcET_BRACKET, mcET_FUNCTION, mcET_NUMBER, mcET_RADICAL, and mcET_SYMBOL. |
|
Definition at line 913 of file ExpElement.h. References mcWRAPPER. Referenced by mcPolynomialHelpers::data_ReplaceParentheses(), mcElementHelpers::math_ContainsNumber(), mcElementHelpers::math_ContainsSymbol(), and mcExpElementHelpers::math_GetLCM(). |
|
Definition at line 933 of file ExpElement.h. References mcWRAPPER. Referenced by mcMonomialHelpers::math_GetMaxDegreeFor(), and mcExpElementHelpers::math_MultOrDiv(). |
|
Definition at line 931 of file ExpElement.h. References mcWRAPPER. Referenced by mcExpElementHelpers::math_GetGCD(). |
|
Definition at line 938 of file ExpElement.h. References mcWRAPPER. |
|
Definition at line 936 of file ExpElement.h. References mcWRAPPER. |
|
Definition at line 926 of file ExpElement.h. References mcWRAPPER. Referenced by mcExpElementHelpers::math_GetGCD(), mcExpElementHelpers::math_GetLCM(), and mcExpElementHelpers::math_MultOrDiv(). |
|
Definition at line 928 of file ExpElement.h. References mcWRAPPER. |
|
|
[ Top ] |