#include <Parenthesis.h>
Inheritance diagram for mcParenthesis:
mcParenthesis allows the user to type both the wxT("(") and the ")" placing them in the place he wants.
Definition at line 198 of file Parenthesis.h.
Public Member Functions | |
bool | data_isValidContainerFor (mcElementType t) const |
Returns TRUE if this element can safely contain the given element type. | |
mcWRAPPER bool | data_isLeftBracket () const |
mcWRAPPER wxString | data_GetSymbol () const |
mcWRAPPER void | data_SetAsLeftBracket () |
mcWRAPPER void | data_SetAsRightBracket () |
Private Member Functions | |
mcDEFINE_MAIN_CLASS (Parenthesis, mcDecoration) |
|
Definition at line 209 of file Parenthesis.h. References mcWRAPPER. |
|
Definition at line 207 of file Parenthesis.h. References mcWRAPPER. Referenced by mcPolynomialHelpers::data_ReplaceParentheses(). |
|
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 mcDecoration. Definition at line 204 of file Parenthesis.h. References mcET_PARENTHESIS. |
|
Definition at line 212 of file Parenthesis.h. References mcWRAPPER. Referenced by mcPolynomialHelpers::gui_ReplaceBracket(). |
|
Definition at line 214 of file Parenthesis.h. References mcWRAPPER. Referenced by mcPolynomialHelpers::gui_ReplaceBracket(). |
|
|
[ Top ] |