#include <ExpContainer.h>
Inheritance diagram for mcExpContainer:
ExpContainer derives from mcExpElement because it can have an exponent. Because of its nature (a mcExpElement and a container for a mcPolynomial class), this class is very simple because it recalls methods of the underlying class. The only problem for this class is the ExpContainer's height: ExpContainers must be adaptable to the height of the contained expression.
Definition at line 350 of file ExpContainer.h.
Public Member Functions | |
bool | data_isValidContainerFor (mcElementType t) const |
Returns TRUE if this element can safely contain the given element type. | |
mcWRAPPER void | data_SetContent (const mcPolynomial &p) |
mcWRAPPER void | data_AddElements (mcElement *p, int num, int pos=-1, bool bOverwrite=FALSE) |
mcWRAPPER mcElement | data_AddNewElement (mcElementType t, bool bOverwrite=FALSE, int pos=-1) |
mcWRAPPER mcPolynomial & | data_GetContent () |
mcWRAPPER const mcPolynomial & | data_GetConstContent () const |
Private Member Functions | |
mcDEFINE_ABSTRACT_CLASS (ExpContainer, mcExpElement) |
|
Definition at line 361 of file ExpContainer.h. References mcWRAPPER. Referenced by mcPolynomialHelpers::data_AddNewMonomial(). |
|
Definition at line 363 of file ExpContainer.h. References mcWRAPPER. |
|
Definition at line 367 of file ExpContainer.h. References mcWRAPPER. Referenced by mcExpContainerHelpers::math_CanBeDivBy(). |
|
|
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. Reimplemented in mcBracket, and mcRadical. Definition at line 356 of file ExpContainer.h. References mcET_BRACKET, and mcET_RADICAL. |
|
Definition at line 359 of file ExpContainer.h. References mcWRAPPER. Referenced by mcPolynomialHelpers::data_ReplaceParentheses(), mcPolynomialHelpers::math_EmbedInBracket(), mcElementArrayHelpers::math_EmbedInBracket(), mcElementArrayHelpers::math_EmbedInRadical(), mcFractionHelpers::math_Simplify(), mcBracket::mcBracket(), and mcRadical::mcRadical(). |
|
|
[ Top ] |