#include <Radical.h>
Inheritance diagram for mcRadical:
in addition this class also stores an index modifiable by the user using the KEY_EDITEXP...
Definition at line 219 of file Radical.h.
Public Member Functions | |
mcRadical (const mcPolynomial &contents) | |
bool | data_isValidContainerFor (mcElementType t) const |
Returns TRUE if this element can safely contain the given element type. | |
Private Member Functions | |
mcDEFINE_MAIN_CLASS (Radical, mcExpContainer) |
|
Definition at line 225 of file Radical.h. References mcExpContainer::data_SetContent(), and mcObject::data_SetRefData(). |
|
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 mcExpContainer. Definition at line 228 of file Radical.h. References mcET_RADICAL. |
|
|
[ Top ] |