Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

MathUtils.h File Reference


Detailed Description

Defines MACROs & FUNCTIONs used by MathCore.

Author:
Luciano Cattani, Francesco Montorsi, Vinay Doma
Date:
20-9-2002
Defines some macros and global functions used in MathCore classes.

Definition in file MathUtils.h.

#include "mc/Setup.h"
#include <wx/bitmap.h>
#include <wx/log.h>
#include "wx/xml2.h"

Include dependency graph for MathUtils.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define mcLOG
#define mcMATHLOG
#define mcGUILOG
#define mcIOLOG
#define mcSOLVERLOG
#define mcTXT(x)   ((x).io_GetInlinedExpr().c_str())
 Gets the C inlined string for the given mcElement-derived object.
#define mcTXTP(x)   ((x)->io_GetInlinedExpr().c_str())
 Same as mcTXT but this macro works with a pointer.
#define mcTXTV(x)   ((x).GetSmartStr().c_str())
 Returns the inlined expression of a mcValue-derived class.
#define mcTXTTHIS   (this->io_GetInlinedExpr().c_str())
 Same as mcTXTP but fixed on *this.
#define wxStrcpy   strcpy
#define mcIMPORT
#define mcNewAddOp()   mcElementHelpers::data_NewElem(mcET_ADDOP)
#define mcNewSubOp()   mcElementHelpers::data_NewElem(mcET_SUBOP)
#define mcNewMultOp()   mcElementHelpers::data_NewElem(mcET_MULTOP)
#define mcNewDivOp()   mcElementHelpers::data_NewElem(mcET_DIVOP)
#define mcNewSymbol()   mcElementHelpers::data_NewElem(mcET_SYMBOL)
#define mcNewEmptyBox()   mcElementHelpers::data_NewElem(mcET_EMPTYBOX)
#define mcNewNumber()   mcElementHelpers::data_NewElem(mcET_NUMBER)
#define mcNewFunction()   mcElementHelpers::data_NewElem(mcET_FUNCTION)
#define mcNewFraction()   mcElementHelpers::data_NewElem(mcET_FRACTION)
#define mcNewBracket()   mcElementHelpers::data_NewElem(mcET_BRACKET)
#define mcNewMonomial()   mcElementHelpers::data_NewElem(mcET_MONOMIAL)
#define mcNewPolynomial()   mcElementHelpers::data_NewElem(mcET_POLYNOMIAL)
#define wxDEFINE_CLASS(x)
 math_Adds the given classname to the wxWidgets RTTI system.
#define wxIMPLEMENT_CLASS(x, y)
 Implements the wxWidgets RTTI support for the class x (which must derive from the class y).
#define mcDEFINE_CUSTOM_CLONE_FNC(x)   mc##x x##Clone() const;
#define mcDEFINE_HELPER_GETMEMORYINFO_FNC(x)
#define mcDEFINE_DEBUGNAME_FNC(x)
#define mcDEFINE_HELPER_CLONE_FNC(x)
#define mcDEFINE_HELPER_GETTYPE_FNC(x)   mcElementType data_GetType() const { return x; }
#define mcDEFINE_ASSIGNMENT_OPERATOR(x)
#define mcDEFINE_COMPARISON_OPERATORS(x)
#define mcDEFINE_ABSTRACT_CONSTRUCTORS(x, baseclass)
#define mcDEFINE_MAIN_CONSTRUCTORS(x, baseclass)
#define mcDEFINE_REFERENCE_DATA(x, type)
#define mcGETTER   inline
#define mcWRAPPER   inline
#define mcDEFINE_HLP_GETTER(x)
#define mcDEFINE_HLP_CP_GETTER(x)
#define mcDEFINE_CLASS(x)
#define mcDEFINE_HELPER_CLASSES(x)
#define mcDEFINE_ABSTRACT_CLASS(x, baseclass)
#define mcDEFINE_MAIN_CLASS(x, baseclass)
#define mcIMPLEMENT_HLP_GETTER(x)
#define mcIMPLEMENT_HLP_CP_GETTER(x)
#define mcIMPLEMENT_MAIN_CLASS(x, baseclass)
#define mcIMPLEMENT_ABSTRACT_CLASS(x, baseclass)
#define mcCREATE_HELPER_CLASSES(x)   data_SetRefData(new x##Helpers());
#define mcSAFE_DELETE(x)   { if (x) delete x; x = NULL; }
#define mcSAFE_DELETE_ARRAY(x)   { if (x) delete [] x; x = NULL; }
#define mcRETURN_ELEMENT_CHILD(n, baseclass)
#define mcSET_ELEMENT_CHILD(n, baseclass, p)
#define mcSIGN(x)   (((x) < 0) ? -1 : 1)
#define mcMAX(x, y)   (((x) < (y)) ? (y) : (x))
#define mcMIN(x, y)   (((x) < (y)) ? (x) : (y))
#define mcSWAP(type, x, y)   { type tmp = x; x = y; y = tmp; }
#define mcDBL_MAX   1.7976931348623157e+308
#define mcINT_MAX   2147483647
#define mcGETRED(c)   (((wxInt32)(c)) & 255)
#define mcGETGREEN(c)   ((((wxInt32)(c)) >> 8) & 255)
#define mcGETBLUE(c)   ((((wxInt32)(c)) >> 16) & 255)
#define mcINITWX(x)   (wxColour(mcGETRED(x), mcGETGREEN(x), mcGETBLUE(x)))
#define mcRGB_ENCODE(r, g, b)
#define mcUNUSED(x)   { x == x; }
#define mcEXTEND_ARRAY(type, parray, oldsize, newsize)
#define mcASSERT(x, desc)   wxASSERT_MSG(x, wxT("\n\n") desc wxT("\n\n"));


Define Documentation

#define mcASSERT x,
desc   )     wxASSERT_MSG(x, wxT("\n\n") desc wxT("\n\n"));
 

Referenced by mcElementArrayHelpers::data_AddElements(), mcPolynomialHelpers::data_AddNewMonomialContaining(), mcPolynomialHelpers::data_AddNewWrappedElement(), mcSymbolArray::data_AddSymbol(), mcSolver::data_Check(), mcSymbolProperties::data_Check(), mcElementArrayHelpers::data_CheckIndex(), mcFunctionHelpers::data_CheckName(), mcExpElementHelpers::data_CreateExpSub(), mcElementHelpers::data_DeepCopy(), mcPolynomialHelpers::data_DetachAndShiftMonomial(), mcSymbolHelpers::data_GetInlinedSymbol(), mcOperatorHelpers::data_GetOpIndex(), mcOperatorHelpers::data_GetOpSymbol(), mcElementArrayHelpers::data_GetOpTypeBetween(), mcElementArrayHelpers::data_GetOpTypePreceding(), mcPolynomialHelpers::data_GetRefFromEntry(), mcSymbolProperties::data_GetSafeLinkedSym(), mcSymbolHelpers::data_GetSubscript(), mcSymbolHelpers::data_GetSymbol(), mcSymbolHelpers::data_isConstant(), mcSymbolHelpers::data_isGreekSymbol(), mcSymbolHelpers::data_isParameter(), mcSymbolHelpers::data_isRegistered(), mcSymbolHelpers::data_isUnknown(), mcElementArrayHelpers::data_Move(), mcElementHelpers::data_NewElem(), mcTextHelpers::data_SetChild(), mcFunctionHelpers::data_SetChild(), mcFractionHelpers::data_SetChild(), mcExpContainerHelpers::data_SetChild(), mcTextHelpers::data_SetText(), mcSymbolHelpers::data_Update(), mcRealValue::DeleteDigit(), mcMathCore::Get(), mcPolynomialHelpers::gui_AddNewElement(), mcPolynomialHelpers::gui_BackInput(), mcMonomialHelpers::gui_BackInput(), mcFunctionHelpers::gui_BaseInput(), mcExpContainerHelpers::gui_BaseInsert(), mcFunctionHelpers::gui_BaseMoveCursor(), mcExpContainerHelpers::gui_BaseMoveCursor(), mcNumberHelpers::gui_BaseMoveCursorUsingPoint(), mcPolynomialHelpers::gui_CheckCursorPos(), mcMonomialHelpers::gui_CheckCursorPos(), mcElementArrayHelpers::gui_DeleteSelection(), mcElementHelpers::gui_DeleteSelection(), mcBracketHelpers::gui_DoRecalcBaseSize(), mcPolynomialHelpers::gui_DoSplit(), mcMonomialHelpers::gui_DoSplit(), mcMathMngHelpers::gui_Draw(), mcExpElementHelpers::gui_Draw(), mcMathLineHelpers::gui_ExpandBmp(), mcFunctionHelpers::gui_ExpMoveCursor(), mcExpElementHelpers::gui_ExpSubInput(), mcExpElementHelpers::gui_ExpSubMoveCursor(), mcFunctionHelpers::gui_GetBaseRelCursorPos(), mcExpContainerHelpers::gui_GetBaseRelCursorPos(), mcElementHelpers::gui_GetHeightOfChar(), mcMathMngHelpers::gui_GetPossibleOperations(), mcMathMngHelpers::gui_GetPossibleOpOnSel(), mcOperatorHelpers::gui_GetRelCursorPos(), mcFractionHelpers::gui_GetSelection(), mcElementArrayHelpers::gui_GetSelection(), mcElementHelpers::gui_GetSizeOf(), mcElementHelpers::gui_GetWidthOfChar(), mcExpContainerHelpers::gui_HandleContentInput(), mcElementHelpers::gui_Init(), mcElementHelpers::gui_InitDefaultStyles(), mcTextHelpers::gui_Input(), mcParenthesisHelpers::gui_Input(), mcOperatorHelpers::gui_Input(), mcMathMngHelpers::gui_Input(), mcFractionHelpers::gui_Input(), mcElementArrayHelpers::gui_Input(), mcFractionHelpers::gui_Insert(), mcExpContainerHelpers::gui_isBaseEndKey(), mcFractionHelpers::gui_isEndKey(), mcOperatorHelpers::gui_MoveCursor(), mcFunctionHelpers::gui_MoveCursor(), mcOperatorHelpers::gui_MoveCursorUsingPoint(), mcMathMngHelpers::gui_MultiplyBySel(), mcMonomialHelpers::gui_Replace(), mcPolynomialHelpers::gui_ReplaceBracket(), mcElementHelpers::gui_SelectStyle(), mcTextHelpers::gui_SetCursorPos(), mcMathMngHelpers::gui_SetCursorPos(), mcFractionHelpers::gui_SetCursorPos(), mcExpElementHelpers::gui_SetCursorPos(), mcElementArrayHelpers::gui_SetCursorPos(), mcFunctionHelpers::gui_Setup(), mcFunctionHelpers::gui_SubMoveCursor(), mcTextHelpers::io_GetMathML(), mcExpElementHelpers::io_GetMathML(), mcSymbolHelpers::io_ImportBaseInlinedExpr(), mcRadicalHelpers::io_ImportBaseInlinedExpr(), mcNumberHelpers::io_ImportBaseInlinedExpr(), mcBracketHelpers::io_ImportBaseInlinedExpr(), mcPolynomialHelpers::io_ImportInlinedExpr(), mcParenthesisHelpers::io_ImportInlinedExpr(), mcOperatorHelpers::io_ImportInlinedExpr(), mcMathMngHelpers::io_ImportInlinedExpr(), mcFunctionHelpers::io_ImportInlinedExpr(), mcFractionHelpers::io_ImportInlinedExpr(), mcSymbolHelpers::io_ImportPresentationMathML(), mcOperatorHelpers::io_ImportPresentationMathML(), mcNumberHelpers::io_ImportPresentationMathML(), mcMultDivOpHelpers::io_ImportPresentationMathML(), mcMonomialHelpers::io_ImportPresentationMathML(), mcFunctionHelpers::io_ImportPresentationMathML(), mcFractionHelpers::io_ImportPresentationMathML(), mcExpContainerHelpers::io_ImportPresentationMathML(), mcEmptyBoxHelpers::io_ImportPresentationMathML(), mcDecorationHelpers::io_ImportPresentationMathML(), mcRationalValue::MakeInteger(), mcNumberHelpers::math_Add(), mcMonomialHelpers::math_Add(), mcFractionHelpers::math_Add(), mcSystemStepArray::math_AppendCombinationOf(), mcBisectSolver::math_Bisect(), mcElementHelpers::math_ContainsSymbol(), mcPolynomialHelpers::math_DistributeBracket(), mcNumberHelpers::math_DivideBaseOnlyBy(), mcPolynomialHelpers::math_DivideBy(), mcMonomialHelpers::math_DivideBy(), mcFractionHelpers::math_DivideBy(), mcExpElementHelpers::math_DivideBy(), mcPolynomialHelpers::math_EmbedInBracket(), mcElementArrayHelpers::math_EmbedInBracket(), mcElementArrayHelpers::math_EmbedInFraction(), mcElementArrayHelpers::math_EmbedInRadical(), mcElementHelpers::math_Find(), mcElementHelpers::math_FindInChildrenOnly(), mcExpElementHelpers::math_GetBaseGCD(), mcSymbolHelpers::math_GetBaseMathType(), mcMonomialHelpers::math_GetCoeff(), mcExpElementHelpers::math_GetConstExp(), mcExpElementHelpers::math_GetConstSub(), mcElementHelpers::math_GetCountOf(), mcPolynomialHelpers::math_GetGCDFor(), mcMonomialHelpers::math_GetLCM(), mcPolynomialHelpers::math_GetMaxDegreeFor(), mcMonomialHelpers::math_GetMaxDegreeFor(), mcElementArrayHelpers::math_GetOpBetween(), mcElementArrayHelpers::math_GetOpPreceding(), mcPolynomialHelpers::math_GetSign(), mcElementArrayHelpers::math_HandleBasicOpRes(), mcPolynomialHelpers::math_HandleExpSimFlag(), mcElementArrayHelpers::math_HandleExpSimFlag(), mcMathMngHelpers::math_Move(), mcNumberHelpers::math_MultiplyBaseBy(), mcNumberHelpers::math_MultiplyBaseOnlyBy(), mcPolynomialHelpers::math_MultiplyBy(), mcMonomialHelpers::math_MultiplyBy(), mcFractionHelpers::math_MultiplyBy(), mcExpElementHelpers::math_MultiplyBy(), mcExpElementHelpers::math_MultOrDiv(), mcElementHelpers::math_NonRecursiveFindInChildren(), mcPolynomialHelpers::math_PackSign(), mcMonomialHelpers::math_RaiseTo(), mcElementHelpers::math_RecursiveFind(), mcElementHelpers::math_RecursiveFindInChildrenOnly(), mcElementArrayHelpers::math_Remove(), mcMonomialHelpers::math_Reorder(), mcElementArrayHelpers::math_ReorderElements(), mcElementArrayHelpers::math_ResetToOne(), mcElementArrayHelpers::math_ResetToZero(), mcFractionHelpers::math_SetExp(), mcPolynomialHelpers::math_SetSign(), mcElementHelpers::math_SimpleAdd(), mcElementHelpers::math_SimpleDivideBy(), mcElementHelpers::math_SimpleMultiplyBy(), mcElementHelpers::math_SimpleRaiseTo(), mcExpElementHelpers::math_Simplify(), mcNumberHelpers::math_SimplifyBase(), mcRadicalHelpers::math_SimplifyContents(), mcFractionHelpers::math_SimplifyFactors(), mcSolver::math_Solve(), mcPolySolver::math_SolveLine(), mcBisectSolver::math_SolveLine(), mcPolySolver::math_SolveLineSecondDegree(), mcMonomialHelpers::math_WrapMonomial(), mcMonomialHelpers::math_WrapSimple(), mcElementArrayHelpers::math_WrapSymbol(), mcAddSubOp::mcAddSubOp(), mcMultDivOp::mcMultDivOp(), mcMathCore::SetupGUI(), and mcSymbolProperties::~mcSymbolProperties().

#define mcCREATE_HELPER_CLASSES  )     data_SetRefData(new x##Helpers());
 

Referenced by mcAddSubOp::mcAddSubOp(), and mcMultDivOp::mcMultDivOp().

#define mcDBL_MAX   1.7976931348623157e+308
 

#define mcDEFINE_ABSTRACT_CLASS x,
baseclass   ) 
 

Value:

public:             \
 mcDEFINE_CLASS(x)         \
 mcDEFINE_ABSTRACT_CONSTRUCTORS(mc##x, baseclass)

#define mcDEFINE_ABSTRACT_CONSTRUCTORS x,
baseclass   ) 
 

Value:

x(const mcElementHelpers *p) : baseclass(p) { data_CheckContainer(); } \
 x(const mcElement &v) : baseclass(v.hlp()) { data_CheckContainer(); } \
 x(const x &toref) { data_Ref(toref); }         \
 x() { /* cannot create our helpers since we're abstract... */ }   \
 virtual ~x() {}

#define mcDEFINE_ASSIGNMENT_OPERATOR  ) 
 

Value:

x &operator=(const x &e)           \
  { if (this != &e) { data_UnRef(); data_Ref(e); } return *this; }

#define mcDEFINE_CLASS  ) 
 

Value:

Referenced by mcMathLine::phlp().

#define mcDEFINE_COMPARISON_OPERATORS  ) 
 

Value:

bool operator==(const x &e) const               \
        { const mcElementHelpers *data = (const mcElementHelpers *)e.data_GetRefData();  \
        return data_GetRefData() ? (data && chlp()->data_isSameAs(data)) : !data; }  \
    bool operator!=(const x &e) const  { return !(*this == e); }

#define mcDEFINE_CUSTOM_CLONE_FNC  )     mc##x x##Clone() const;
 

#define mcDEFINE_DEBUGNAME_FNC  ) 
 

Value:

wxString data_GetDebugName() const        \
  { return wxT(#x); }

#define mcDEFINE_HELPER_CLASSES  ) 
 

Value:

class x;       \
 class x##Helpers;

#define mcDEFINE_HELPER_CLONE_FNC  ) 
 

Value:

virtual mcElementHelpers *data_Clone() const {     \
   x##Helpers *clone = new x##Helpers();      \
   clone->data_DeepCopy(this);         \
   return clone;            \
  }

#define mcDEFINE_HELPER_GETMEMORYINFO_FNC  ) 
 

Value:

int data_GetMemoryInfo() const         \
  { return sizeof(x##Helpers); }

#define mcDEFINE_HELPER_GETTYPE_FNC  )     mcElementType data_GetType() const { return x; }
 

#define mcDEFINE_HLP_CP_GETTER  ) 
 

Value:

mcGETTER x##Helpers *phlp()  { return (x##Helpers *)mcElement::phlp(); }  \
  mcGETTER const x##Helpers *chlp() const  { return (const x##Helpers *)mcElement::chlp(); }

#define mcDEFINE_HLP_GETTER  ) 
 

Value:

  \
 mcGETTER x##Helpers *hlp()   { return (x##Helpers *)mcElement::phlp(); }           \ \
  mcGETTER const x##Helpers *hlp() const { return (const x##Helpers *)mcElement::chlp(); }

#define mcDEFINE_MAIN_CLASS x,
baseclass   ) 
 

Value:

public:            \
 mcDEFINE_CLASS(x)        \
 mcDEFINE_MAIN_CONSTRUCTORS(mc##x, baseclass)

#define mcDEFINE_MAIN_CONSTRUCTORS x,
baseclass   ) 
 

Value:

x(const mcElementHelpers *p) : baseclass(p) { data_CheckContainer(); } \
 x(const mcElement &v) : baseclass(v.hlp()) { data_CheckContainer(); } \
 x(const x &toref) { data_Ref(toref); }         \
 x() { data_SetRefData(new x##Helpers); }        \
 virtual ~x() {}

#define mcDEFINE_REFERENCE_DATA x,
type   ) 
 

Value:

#define mcEXTEND_ARRAY type,
parray,
oldsize,
newsize   ) 
 

Value:

{               \
  type *pnew = new type[newsize];       \
  for (int e=0; e < oldsize; e++)       \
   pnew[e] = parray[e];         \
  delete [] parray;          \
  parray = pnew;           \
 }

Referenced by mcElementArrayHelpers::data_CheckArrayLimit().

#define mcGETBLUE  )     ((((wxInt32)(c)) >> 16) & 255)
 

#define mcGETGREEN  )     ((((wxInt32)(c)) >> 8) & 255)
 

#define mcGETRED  )     (((wxInt32)(c)) & 255)
 

#define mcGETTER   inline
 

#define mcGUILOG
 

Definition at line 144 of file MathUtils.h.

Referenced by mcElementHelpers::gui_DeepRecalcSize(), mcOperatorHelpers::gui_DoRecalcSize(), mcOperatorHelpers::gui_Draw(), mcMonomialHelpers::gui_Draw(), mcMathMngHelpers::gui_Draw(), mcExpElementHelpers::gui_Draw(), mcSymbolHelpers::gui_DrawBase(), mcNumberHelpers::gui_DrawBase(), mcElementArrayHelpers::gui_DrawSelection(), mcPolynomialHelpers::gui_ExDraw(), mcElementArrayHelpers::gui_ExDraw(), mcElementHelpers::gui_GetHeightOfChar(), mcElementHelpers::gui_GetSizeOf(), mcElementHelpers::gui_GetThickness(), mcElementHelpers::gui_GetWidthOfChar(), mcElementHelpers::gui_InitDefaultStyles(), mcMathMngHelpers::gui_Input(), mcElementArrayHelpers::gui_Input(), mcMathSystemHelpers::gui_MoveCursorUsingPoint(), mcMathMngHelpers::gui_MoveCursorUsingPoint(), and mcPolynomialHelpers::gui_ReplaceBracket().

#define mcIMPLEMENT_ABSTRACT_CLASS x,
baseclass   ) 
 

#define mcIMPLEMENT_HLP_CP_GETTER  ) 
 

Value:

mcGETTER x##Helpers *x::phlp()    { return (x##Helpers *)mcElement::phlp(); }   \
 mcGETTER const x##Helpers *x::chlp() const { return (const x##Helpers *)mcElement::chlp(); }

#define mcIMPLEMENT_HLP_GETTER  ) 
 

Value:

mcGETTER x##Helpers *x::hlp()    { return (x##Helpers *)mcElement::phlp(); }   \
 mcGETTER const x##Helpers *x::hlp() const { return (const x##Helpers *)mcElement::chlp(); } \

#define mcIMPLEMENT_MAIN_CLASS x,
baseclass   ) 
 

#define mcIMPORT
 

Definition at line 223 of file MathUtils.h.

#define mcINITWX  )     (wxColour(mcGETRED(x), mcGETGREEN(x), mcGETBLUE(x)))
 

Referenced by mcElementHelpers::gui_InitDefaultStyles().

#define mcINT_MAX   2147483647
 

#define mcIOLOG
 

Definition at line 145 of file MathUtils.h.

Referenced by mcMathSystemHelpers::io_FilterInlinedExpr(), mcPolynomialHelpers::io_ImportInlinedExpr(), mcMonomialHelpers::io_ImportInlinedExpr(), mcMathSystemHelpers::io_ImportInlinedExpr(), mcFunctionHelpers::io_ImportInlinedExpr(), and mcExpElementHelpers::io_ImportInlinedExpr().

#define mcLOG
 

Definition at line 142 of file MathUtils.h.

Referenced by mcExpElementHelpers::data_CreateExpSub(), mcElement::data_MakePrivateCopy(), mcPolynomialHelpers::data_ReplaceParentheses(), mcMonomialHelpers::data_TransformDivOp(), mcObject::data_UnRef(), mcNumberHelpers::math_Add(), mcElementArrayHelpers::math_ApplyOp(), mcElementArrayHelpers::math_ApplyOpSimple(), mcPolynomialHelpers::math_Simplify(), mcMathMngHelpers::math_Simplify(), mcElementArrayHelpers::math_SimplifyRemoveNeutrals(), and mcPolySolver::math_SolveLine().

#define mcMATHLOG
 

Definition at line 143 of file MathUtils.h.

Referenced by mcElementArrayHelpers::data_AddElements(), mcPolynomialHelpers::math_Add(), mcMonomialHelpers::math_Add(), mcMathOrSystemHelpers::math_AndMerge(), mcSystemStepArray::math_AppendCombinationOf(), mcNumberHelpers::math_CanBeDivBy(), mcElementArrayHelpers::math_Compare(), mcPolynomialHelpers::math_DistributeBracket(), mcNumberHelpers::math_DivideBaseOnlyBy(), mcPolynomialHelpers::math_DivideBy(), mcElementArrayHelpers::math_EmbedInFraction(), mcElementArrayHelpers::math_Evaluate(), mcElementHelpers::math_EvaluateAt(), mcPolynomialHelpers::math_FactoreOut(), mcMathMngHelpers::math_FactoreOut(), mcPolynomialHelpers::math_GetCoeffOf(), mcElementArrayHelpers::math_GetFactors(), mcNumberHelpers::math_GetGCD(), mcMonomialHelpers::math_GetGCD(), mcMonomialHelpers::math_GetLCM(), mcExpElementHelpers::math_GetLCM(), mcMonomialHelpers::math_GetMaxDegreeFor(), mcMonomialHelpers::math_GetOrderPos(), mcPolySolver::math_GetPolyCoeff(), mcElementArrayHelpers::math_HandleBasicOpRes(), mcMonomialHelpers::math_isSimilarTo(), mcPolynomialHelpers::math_MathToDataIdx(), mcMonomialHelpers::math_MathToDataIdx(), mcMathAndSystemHelpers::math_Merge(), mcExpElementHelpers::math_MultOrDiv(), mcMathOrSystemHelpers::math_OrMerge(), mcSolver::math_PostSolve(), mcSolver::math_PreSolve(), mcPolynomialHelpers::math_RaiseTo(), mcNumberHelpers::math_RaiseTo(), mcMonomialHelpers::math_RaiseTo(), mcExpElementHelpers::math_RaiseTo(), mcBracketHelpers::math_RemoveExp(), mcPolynomialHelpers::math_Reorder(), mcElementHelpers::math_Replace(), mcElementHelpers::math_SimpleAdd(), mcElementHelpers::math_SimpleDivideBy(), mcElementHelpers::math_SimpleMultiplyBy(), mcElementHelpers::math_SimpleRaiseTo(), mcExpElementHelpers::math_Simplify(), mcElementArrayHelpers::math_Simplify(), mcExpContainerHelpers::math_SimplifyBaseExp(), mcMonomialHelpers::math_SimplifyCoeff(), mcBracketHelpers::math_SimplifyContents(), mcFractionHelpers::math_SimplifyFactors(), mcElementArrayHelpers::math_SimplifyRemoveNeutrals(), mcPolynomialHelpers::math_SimplifySolveOp(), mcElementArrayHelpers::math_SimplifySolveOp(), mcSolver::math_Solve(), mcPolySolver::math_SolveLine(), mcPolySolver::math_SolveLineSecondDegree(), mcPolynomialHelpers::math_SyncCoeffWithSigns(), and mcIMPLEMENT_EXPSIM_FUNCTION().

#define mcMAX x,
 )     (((x) < (y)) ? (y) : (x))
 

Referenced by mcElementArrayHelpers::gui_CalcSizeOfRange(), mcRadicalHelpers::gui_DoRecalcBaseSize(), mcFunctionHelpers::gui_DoRecalcBaseSize(), mcOperatorHelpers::gui_DoRecalcSize(), mcMathSystemHelpers::gui_DoRecalcSize(), mcMathMngHelpers::gui_DoRecalcSize(), mcFractionHelpers::gui_DoRecalcSize(), mcExpElementHelpers::gui_DoRecalcSize(), mcRadicalHelpers::gui_DrawContainer(), mcElementArrayHelpers::gui_ExOnSelect(), mcFunctionHelpers::gui_GetArgOffsetx(), mcExpElementHelpers::gui_GetBaseAndSubSize(), mcElementArrayHelpers::gui_GetCenterLine(), mcRadicalHelpers::gui_GetContentOffsetX(), mcRadicalHelpers::gui_GetVWidth(), mcMathMngHelpers::gui_GetYAnchor(), mcParenthesisHelpers::gui_RebuildFont(), mcParenthesisHelpers::gui_SearchInMonomial(), mcSystemStepArray::math_AppendCombinationOf(), mcMathMngHelpers::math_GetMaxDegreeFor(), and mcElement::~mcElement().

#define mcMIN x,
 )     (((x) < (y)) ? (x) : (y))
 

Referenced by mcMultDivOpHelpers::gui_Draw(), mcElementArrayHelpers::gui_ExOnSelect(), mcElementArrayHelpers::gui_GetSelectionRect(), mcMathType::math_Add(), and mcGMPRealloc().

 
#define mcNewAddOp  )     mcElementHelpers::data_NewElem(mcET_ADDOP)
 

Definition at line 235 of file MathUtils.h.

 
#define mcNewBracket  )     mcElementHelpers::data_NewElem(mcET_BRACKET)
 

Definition at line 244 of file MathUtils.h.

 
#define mcNewDivOp  )     mcElementHelpers::data_NewElem(mcET_DIVOP)
 

Definition at line 238 of file MathUtils.h.

 
#define mcNewEmptyBox  )     mcElementHelpers::data_NewElem(mcET_EMPTYBOX)
 

Definition at line 240 of file MathUtils.h.

 
#define mcNewFraction  )     mcElementHelpers::data_NewElem(mcET_FRACTION)
 

Definition at line 243 of file MathUtils.h.

 
#define mcNewFunction  )     mcElementHelpers::data_NewElem(mcET_FUNCTION)
 

Definition at line 242 of file MathUtils.h.

 
#define mcNewMonomial  )     mcElementHelpers::data_NewElem(mcET_MONOMIAL)
 

Definition at line 245 of file MathUtils.h.

Referenced by mcMonomialHelpers::math_GetCoeff().

 
#define mcNewMultOp  )     mcElementHelpers::data_NewElem(mcET_MULTOP)
 

Definition at line 237 of file MathUtils.h.

 
#define mcNewNumber  )     mcElementHelpers::data_NewElem(mcET_NUMBER)
 

Definition at line 241 of file MathUtils.h.

 
#define mcNewPolynomial  )     mcElementHelpers::data_NewElem(mcET_POLYNOMIAL)
 

Definition at line 246 of file MathUtils.h.

 
#define mcNewSubOp  )     mcElementHelpers::data_NewElem(mcET_SUBOP)
 

Definition at line 236 of file MathUtils.h.

 
#define mcNewSymbol  )     mcElementHelpers::data_NewElem(mcET_SYMBOL)
 

Definition at line 239 of file MathUtils.h.

#define mcRETURN_ELEMENT_CHILD n,
baseclass   ) 
 

Value:

if (n < baseclass::data_GetChildrenCount())  \
  return baseclass::data_GetConstChild(n); \
 n -= baseclass::data_GetChildrenCount();

Referenced by mcTextHelpers::data_GetConstChild(), mcMathMngHelpers::data_GetConstChild(), mcFunctionHelpers::data_GetConstChild(), mcFractionHelpers::data_GetConstChild(), mcExpElementHelpers::data_GetConstChild(), mcExpContainerHelpers::data_GetConstChild(), and mcElementArrayHelpers::data_GetConstChild().

#define mcRGB_ENCODE r,
g,
 ) 
 

Value:

(wxUint32) ((wxUint8)(r) |  \
    ((wxUint16)(g) << 8)) | (((wxUint32)((b) << 16))

#define mcSAFE_DELETE  )     { if (x) delete x; x = NULL; }
 

Referenced by mcKey::Cleanup(), mcMathCore::Cleanup(), mcElementHelpers::Cleanup(), mcMathCore::CleanupGUI(), mcMathCore::CleanupMath(), mcElementArrayHelpers::data_ChangeFilter(), mcTextHelpers::data_DeepCopy(), mcSymbolArray::data_MoveSymbols(), mcTextHelpers::data_SetChild(), mcElementHelpers::data_UpdateElemArray(), mcElementHelpers::gui_DeleteDefaultStyles(), mcMathMngHelpers::gui_DeleteStyles(), mcFunction::LoadScriptFile(), mcElementArrayHelpers::~mcElementArrayHelpers(), mcMathCore::~mcMathCore(), and mcTextHelpers::~mcTextHelpers().

#define mcSAFE_DELETE_ARRAY  )     { if (x) delete [] x; x = NULL; }
 

Referenced by mcElementArrayHelpers::~mcElementArrayHelpers().

#define mcSET_ELEMENT_CHILD n,
baseclass,
 ) 
 

Value:

if (n < baseclass::data_GetChildrenCount()) { \
  baseclass::data_SetChild(n, p);    \
  return;          \
 }             \
  n -= baseclass::data_GetChildrenCount();

Referenced by mcTextHelpers::data_SetChild(), mcFunctionHelpers::data_SetChild(), mcFractionHelpers::data_SetChild(), mcExpElementHelpers::data_SetChild(), mcExpContainerHelpers::data_SetChild(), and mcElementArrayHelpers::data_SetChild().

#define mcSIGN  )     (((x) < 0) ? -1 : 1)
 

#define mcSOLVERLOG
 

Definition at line 146 of file MathUtils.h.

Referenced by mcBisectSolver::math_Bisect(), mcExpandSolver::math_SolveLine(), mcSimplifySolver::math_SolveLine(), and mcBisectSolver::math_SolveLine().

#define mcSWAP type,
x,
 )     { type tmp = x; x = y; y = tmp; }
 

Referenced by mcElementArrayHelpers::data_GetOpTypeBetween(), and mcElementArrayHelpers::math_Compare().

#define mcTXT  )     ((x).io_GetInlinedExpr().c_str())
 

Gets the C inlined string for the given mcElement-derived object.

Definition at line 152 of file MathUtils.h.

Referenced by mcElementArrayHelpers::data_AddElements(), mcPolynomialHelpers::data_ReplaceParentheses(), mcElementArrayHelpers::gui_ExDraw(), mcPolynomialHelpers::gui_ReplaceBracket(), mcPolynomialHelpers::math_Add(), mcMonomialHelpers::math_Add(), mcMathOrSystemHelpers::math_AndMerge(), mcSystemStepArray::math_AppendCombinationOf(), mcElementArrayHelpers::math_ApplyOp(), mcElementArrayHelpers::math_ApplyOpSimple(), mcElementArrayHelpers::math_Compare(), mcPolynomialHelpers::math_DistributeBracket(), mcNumberHelpers::math_DivideBaseOnlyBy(), mcPolynomialHelpers::math_DivideBy(), mcElementArrayHelpers::math_EmbedInFraction(), mcPolynomialHelpers::math_FactoreOut(), mcPolynomialHelpers::math_GetCoeffOf(), mcElementArrayHelpers::math_GetFactors(), mcNumberHelpers::math_GetGCD(), mcMonomialHelpers::math_GetGCD(), mcMonomialHelpers::math_GetLCM(), mcExpElementHelpers::math_GetLCM(), mcMonomialHelpers::math_GetMaxDegreeFor(), mcMonomialHelpers::math_isSimilarTo(), mcMathAndSystemHelpers::math_Merge(), mcExpElementHelpers::math_MultOrDiv(), mcMathOrSystemHelpers::math_OrMerge(), mcSolver::math_PostSolve(), mcSolver::math_PreSolve(), mcMonomialHelpers::math_RaiseTo(), mcExpElementHelpers::math_RaiseTo(), mcBracketHelpers::math_RemoveExp(), mcElementHelpers::math_Replace(), mcElementHelpers::math_SimpleAdd(), mcElementHelpers::math_SimpleDivideBy(), mcElementHelpers::math_SimpleMultiplyBy(), mcElementHelpers::math_SimpleRaiseTo(), mcMathMngHelpers::math_Simplify(), mcFractionHelpers::math_SimplifyFactors(), mcPolynomialHelpers::math_SimplifySolveOp(), mcElementArrayHelpers::math_SimplifySolveOp(), mcSolver::math_Solve(), mcPolySolver::math_SolveLine(), mcPolySolver::math_SolveLineFirstDegree(), mcPolySolver::math_SolveLineSecondDegree(), and mcPolynomialHelpers::math_SyncCoeffWithSigns().

#define mcTXTP  )     ((x)->io_GetInlinedExpr().c_str())
 

Same as mcTXT but this macro works with a pointer.

Definition at line 155 of file MathUtils.h.

Referenced by mcElementHelpers::math_EvaluateAt(), mcPolynomialHelpers::math_GetCoeffOf(), mcSolver::math_PreSolve(), mcPolySolver::math_SolveLine(), mcExpandSolver::math_SolveLine(), mcSimplifySolver::math_SolveLine(), and mcBisectSolver::math_SolveLine().

#define mcTXTTHIS   (this->io_GetInlinedExpr().c_str())
 

Same as mcTXTP but fixed on *this.

Note:
Using wxT("hlp()") instead of "this" this macro works in mcElementIO-derived classes but it does not work on the mcElement-derived classes.

Definition at line 163 of file MathUtils.h.

Referenced by mcExpElementHelpers::data_CreateExpSub(), mcPolynomialHelpers::data_ReplaceParentheses(), mcMonomialHelpers::data_TransformDivOp(), mcElementHelpers::gui_DeepRecalcSize(), mcOperatorHelpers::gui_Draw(), mcMathMngHelpers::gui_Draw(), mcExpElementHelpers::gui_Draw(), mcSymbolHelpers::gui_DrawBase(), mcElementArrayHelpers::gui_DrawSelection(), mcPolynomialHelpers::gui_ExDraw(), mcElementArrayHelpers::gui_ExDraw(), mcElementArrayHelpers::gui_Input(), mcPolynomialHelpers::gui_ReplaceBracket(), mcPolynomialHelpers::io_ImportInlinedExpr(), mcMonomialHelpers::io_ImportInlinedExpr(), mcFunctionHelpers::io_ImportInlinedExpr(), mcPolynomialHelpers::math_Add(), mcElementArrayHelpers::math_Compare(), mcPolynomialHelpers::math_DistributeBracket(), mcNumberHelpers::math_DivideBaseOnlyBy(), mcPolynomialHelpers::math_DivideBy(), mcElementArrayHelpers::math_Evaluate(), mcElementHelpers::math_EvaluateAt(), mcPolynomialHelpers::math_GetCoeffOf(), mcNumberHelpers::math_GetGCD(), mcMonomialHelpers::math_GetGCD(), mcMonomialHelpers::math_GetLCM(), mcExpElementHelpers::math_GetLCM(), mcMonomialHelpers::math_GetMaxDegreeFor(), mcMonomialHelpers::math_GetOrderPos(), mcElementArrayHelpers::math_HandleBasicOpRes(), mcPolynomialHelpers::math_MathToDataIdx(), mcMonomialHelpers::math_MathToDataIdx(), mcMathAndSystemHelpers::math_Merge(), mcExpElementHelpers::math_MultOrDiv(), mcPolynomialHelpers::math_RaiseTo(), mcMonomialHelpers::math_RaiseTo(), mcExpElementHelpers::math_RaiseTo(), mcBracketHelpers::math_RemoveExp(), mcPolynomialHelpers::math_Reorder(), mcElementHelpers::math_Replace(), mcElementHelpers::math_SimpleAdd(), mcElementHelpers::math_SimpleDivideBy(), mcElementHelpers::math_SimpleMultiplyBy(), mcElementHelpers::math_SimpleRaiseTo(), mcExpElementHelpers::math_Simplify(), mcElementArrayHelpers::math_Simplify(), mcExpContainerHelpers::math_SimplifyBaseExp(), mcMonomialHelpers::math_SimplifyCoeff(), mcBracketHelpers::math_SimplifyContents(), mcElementArrayHelpers::math_SimplifySolveOp(), and mcIMPLEMENT_EXPSIM_FUNCTION().

#define mcTXTV  )     ((x).GetSmartStr().c_str())
 

Returns the inlined expression of a mcValue-derived class.

Definition at line 158 of file MathUtils.h.

Referenced by mcNumberHelpers::math_Add(), mcMonomialHelpers::math_Add(), mcBisectSolver::math_Bisect(), mcElementHelpers::math_EvaluateAt(), mcPolynomialHelpers::math_RaiseTo(), mcBisectSolver::math_SolveLine(), and mcPolynomialHelpers::math_SyncCoeffWithSigns().

#define mcUNUSED  )     { x == x; }
 

Referenced by mcPolynomialHelpers::gui_BackInput(), mcPolynomialHelpers::gui_DoSplit(), mcBracketHelpers::gui_DrawContainer(), mcElementArrayHelpers::gui_GetBB(), mcMathMngHelpers::gui_GetXOfSeparator(), mcEmptyBoxHelpers::io_GetMathML(), mcDecorationHelpers::io_GetMathML(), mcFractionHelpers::io_ImportInlinedExpr(), mcSolver::math_PostSolve(), mcElementHelpers::math_SimpleAdd(), mcElementHelpers::math_SimpleDivideBy(), mcElementHelpers::math_SimpleMultiplyBy(), mcElementHelpers::math_SimpleRaiseTo(), and mcFractionHelpers::math_SimplifyFactors().

#define mcWRAPPER   inline
 

Referenced by mcElement::data_AddChildrenTo(), mcFraction::data_AddElements(), mcExpContainer::data_AddElements(), mcElementArray::data_AddElements(), mcMathAndSystem::data_AddLine(), mcMathOrSystem::data_AddLineToLastAndSystem(), mcMathOrSystem::data_AddLineToNewAndSystem(), mcExpContainer::data_AddNewElement(), mcElementArray::data_AddNewElement(), mcElementArray::data_AddNewEmptyBox(), mcPolynomial::data_AddNewEmptyMonomial(), mcPolynomial::data_AddNewMonomial(), mcPolynomial::data_AddNewMonomialContaining(), mcElementArray::data_AddNewOp(), mcElementArray::data_AddNewWrappedElement(), mcElement::data_AddProperty(), mcElement::data_AddRecursiveProperty(), mcMathOrSystem::data_AddSys(), mcElementArray::data_ChangeFilter(), mcElementArray::data_CheckArrayLimit(), mcElementArray::data_CheckIndex(), mcMathSystem::data_Clear(), mcExpElement::data_CreateExpSub(), mcPolynomial::data_CreateFirstOp(), mcElementArray::data_Delete(), mcElementArray::data_DeleteAll(), mcElementArray::data_DeleteAllElemType(), mcElementArray::data_DeleteFirst(), mcPolynomial::data_DeleteFirstOp(), mcElementArray::data_DeleteLast(), mcExpElement::data_DestroyExpSub(), mcMathSystem::data_Detach(), mcElementArray::data_Detach(), mcElementArray::data_DetachAll(), mcElementArray::data_DetachLastElem(), mcMathSystem::data_Find(), mcNumber::data_Get(), mcMathSystem::data_Get(), mcElementArray::data_Get(), mcFunction::data_GetArgObj(), mcElementArray::data_GetArray(), mcElementArray::data_GetAvailableEntryCount(), mcElement::data_GetChild(), mcElement::data_GetChildIdx(), mcElement::data_GetChildrenCount(), mcElement::data_GetConstChild(), mcExpContainer::data_GetConstContent(), mcSymbol::data_GetConstProperties(), mcExpContainer::data_GetContent(), mcMathSystem::data_GetCount(), mcElementArray::data_GetCount(), mcFraction::data_GetDen(), mcMathOrSystem::data_GetDescString(), mcElementArray::data_GetElemAtLeftOf(), mcElementArray::data_GetElemAtRightOf(), mcElement::data_GetElemFromID(), mcElementArray::data_GetElemIndexOfType(), mcElementArray::data_GetElemOfType(), mcExpElement::data_GetExp(), mcText::data_GetFilter(), mcElementArray::data_GetFilter(), mcFunction::data_GetFncType(), mcElement::data_GetID(), mcElementArray::data_GetIndex(), mcElementArray::data_GetIndexOf(), mcMathSystem::data_GetLast(), mcElementArray::data_GetLast(), mcMathMng::data_GetLeftMem(), mcMathAndSystem::data_GetLine(), mcText::data_GetLongestStr(), mcElement::data_GetMemoryInfo(), mcFunction::data_GetName(), mcFunction::data_GetNameObj(), mcElementArray::data_GetNonOpElem(), mcElementArray::data_GetNonOpElemIndex(), mcFraction::data_GetNum(), mcElementArray::data_GetNumOfElemType(), mcElementArray::data_GetOp(), mcElementArray::data_GetOpCount(), mcElementArray::data_GetOpIndex(), mcElementArray::data_GetOpTypeBetween(), mcElementArray::data_GetOpTypePreceding(), mcSymbol::data_GetProperties(), mcMathMng::data_GetRightMem(), mcText::data_GetRowCount(), mcFunction::data_GetScript(), mcExpElement::data_GetSub(), mcSymbol::data_GetSubscript(), mcSymbol::data_GetSymbol(), mcParenthesis::data_GetSymbol(), mcMathOrSystem::data_GetSys(), mcText::data_GetText(), mcElement::data_GetType(), mcElementArray::data_GetWrapped(), mcElement::data_hasProperty(), mcElement::data_hasRecursiveProperty(), mcMathSystem::data_Insert(), mcElementArray::data_isAddSubOp(), mcElement::data_isAllowedAfter(), mcElement::data_isAllowedBefore(), mcText::data_isArrayEmpty(), mcElementArray::data_isArrayEmpty(), mcElementArray::data_isElementAllowed(), mcMathSystem::data_isEmpty(), mcElementArray::data_isEmptyBox(), mcElementArray::data_isEmptyEntry(), mcParenthesis::data_isLeftBracket(), mcSymbol::data_isLinked(), mcSymbol::data_isLinkedWith(), mcElementArray::data_isMultDivOp(), mcElementArray::data_isOp(), mcFunction::data_isRegistered(), mcElement::data_isSameAs(), mcText::data_isToReject(), mcElementArray::data_isUsingFilter(), mcText::data_isValidContainerFor(), mcElementArray::data_isValidElem(), mcElementArray::data_isWrappingOnly(), mcSymbol::data_LinkWith(), mcElementArray::data_Merge(), mcElementArray::data_Move(), mcElementArray::data_MoveAllElemType(), mcElementArray::data_MoveElemLeft(), mcElementArray::data_MoveElemRight(), mcElementArray::data_QueueElemType(), mcMathSystem::data_Remove(), mcMathSystem::data_RemoveAt(), mcElement::data_RemoveProperty(), mcElement::data_RemoveRecursiveProperty(), mcElementArray::data_Repair(), mcNumber::data_Set(), mcElementArray::data_Set(), mcFunction::data_SetArgObj(), mcElementArray::data_SetAsEmptyEntry(), mcParenthesis::data_SetAsLeftBracket(), mcText::data_SetAsMultiline(), mcParenthesis::data_SetAsRightBracket(), mcText::data_SetAsSingleline(), mcElement::data_SetChild(), mcExpContainer::data_SetContent(), mcFraction::data_SetDen(), mcExpElement::data_SetExpSub(), mcText::data_SetFilter(), mcMathOrSystem::data_SetFilter(), mcMathMng::data_SetFilter(), mcMathAndSystem::data_SetFilter(), mcElementArray::data_SetFilter(), mcFunction::data_SetFncType(), mcMathSystem::data_SetItem(), mcFunction::data_SetName(), mcFunction::data_SetNameObj(), mcFraction::data_SetNum(), mcText::data_SetText(), mcElementArray::data_Swap(), mcSymbol::data_Unlink(), mcElement::data_Update(), mcElementArray::data_UpdateFilterFor(), mcMathOrSystem::gui_AddEmptyLineToLastAndSystem(), mcMathOrSystem::gui_AddEmptyLineToNewAndSystem(), mcElementArray::gui_AddNewElement(), mcElementArray::gui_AddNewEmptyBox(), mcPolynomial::gui_AddNewEmptyMonomial(), mcElementArray::gui_AddNewOp(), mcElement::gui_DeepRecalcSize(), mcElementArray::gui_DeleteNextOp(), mcElementArray::gui_DeletePreviousOp(), mcElementArray::gui_DeleteSelection(), mcElement::gui_DeleteSelection(), mcElement::gui_DeSelect(), mcElement::gui_DoRecalcSize(), mcText::gui_Draw(), mcElement::gui_Draw(), mcMathSystem::gui_DrawBmp(), mcMathLine::gui_DrawBmp(), mcPolynomial::gui_ExDraw(), mcElementArray::gui_ExDraw(), mcMathMng::gui_ExecCmdOnSel(), mcElementArray::gui_ExGetActiveElem(), mcElementArray::gui_ExGetRelCursorPos(), mcMathSystem::gui_ForceBmpUpdate(), mcMathLine::gui_ForceBmpUpdate(), mcElement::gui_GetActiveElem(), mcMathOrSystem::gui_GetActiveElemID(), mcMathLine::gui_GetActiveElemID(), mcMathAndSystem::gui_GetActiveElemID(), mcElement::gui_GetBaseOffsety(), mcMathSystem::gui_GetBmp(), mcElementArray::gui_GetCenterLine(), mcElement::gui_GetCursorPos(), mcFraction::gui_GetDenPos(), mcElement::gui_GetExpDepth(), mcMathSystem::gui_GetFocusIdx(), mcMathOrSystem::gui_GetFocusLine(), mcMathAndSystem::gui_GetFocusLine(), mcMathMng::gui_GetFocusMem(), mcElement::gui_GetHeight(), mcElement::gui_GetHeightOfChar(), mcFraction::gui_GetNumPos(), mcMathMng::gui_GetPossibleOperations(), mcMathMng::gui_GetPossibleOpOnSel(), mcMathSystem::gui_GetRelCursorPos(), mcElement::gui_GetRelCursorPos(), mcText::gui_GetRowHeight(), mcText::gui_GetRowWidth(), mcElement::gui_GetSelection(), mcElementArray::gui_GetSelElem(), mcElementArray::gui_GetSelElemCount(), mcElementArray::gui_GetSelElemCountOfType(), mcElementArray::gui_GetSelElemIndex(), mcElementArray::gui_GetSelElemIndexOfType(), mcElementArray::gui_GetSelElemOfType(), mcElementArray::gui_GetSelEnd(), mcMathSystem::gui_GetSelInlinedExpr(), mcElementArray::gui_GetSelStart(), mcElement::gui_GetSize(), mcElement::gui_GetSizeOfChar(), mcElement::gui_GetStyle(), mcElement::gui_GetStyleForThis(), mcElement::gui_GetSubscriptOffsety(), mcElement::gui_GetThickness(), mcElement::gui_GetWidth(), mcElement::gui_GetWidthOfChar(), mcElement::gui_GetYAnchor(), mcElement::gui_Input(), mcElement::gui_Insert(), mcElement::gui_isAllSelected(), mcElement::gui_isBeginKey(), mcElementArray::gui_isCursorOn(), mcElement::gui_isEndKey(), mcMathOrSystem::gui_isIDChanged(), mcMathLine::gui_isIDChanged(), mcMathAndSystem::gui_isIDChanged(), mcElement::gui_isSelected(), mcElement::gui_isSplittable(), mcElement::gui_LetInCursor(), mcElement::gui_MergeWith(), mcElement::gui_MoveCursor(), mcElementArray::gui_MoveCursorLeft(), mcElementArray::gui_MoveCursorRight(), mcElement::gui_MoveCursorUsingPoint(), mcMathMng::gui_MoveSel(), mcMathMng::gui_MultiplyBySel(), mcMathSystem::gui_NeedsRefresh(), mcElement::gui_OnRecalcSize(), mcElement::gui_OnSelect(), mcElement::gui_RecalcSize(), mcElement::gui_Select(), mcElement::gui_SelectAll(), mcElement::gui_SelectStyle(), mcElement::gui_SetAsExpOf(), mcElement::gui_SetAtSameLevelOf(), mcMathSystem::gui_SetBmpBackgroundBrush(), mcFraction::gui_SetCursorOnDen(), mcElementArray::gui_SetCursorOnElemBegin(), mcElementArray::gui_SetCursorOnElemEnd(), mcFraction::gui_SetCursorOnNum(), mcElement::gui_SetCursorPos(), mcElement::gui_SetExpDepth(), mcMathSystem::gui_SetFocusIdx(), mcMathSystem::gui_SetMask(), mcElement::gui_SetStyleArray(), mcFunction::gui_Setup(), mcElement::gui_Split(), mcMathSystem::gui_UpdateBmp(), mcMathLine::gui_UpdateBmp(), mcElement::gui_UpdateExpDepth(), mcElement::io_GetInlinedExpr(), mcElement::io_GetMathML(), mcMathSystem::io_ImportInlinedExpr(), mcElement::io_ImportInlinedExpr(), mcElement::io_ImportPresentationMathML(), mcElement::io_isBeginChar(), mcElement::io_isBeginTag(), mcNumber::math_Abs(), mcMonomial::math_Abs(), mcElement::math_Add(), mcMathOrSystem::math_AndMerge(), mcOperator::math_Apply(), mcElementArray::math_ApplyOp(), mcElementArray::math_ApplyOpSimple(), mcOperator::math_ApplySimple(), mcElement::math_CanBeAddedWith(), mcOperator::math_CanBeApplied(), mcElement::math_CanBeDivBy(), mcElement::math_CanBeMultWith(), mcPolynomial::math_CanBeRaisedTo(), mcPolynomial::math_ChangeAllSigns(), mcMonomial::math_ChangeCoeffSign(), mcPolynomial::math_ChangeSign(), mcElement::math_Compare(), mcElement::math_CompareThisOnly(), mcElement::math_Contains(), mcElement::math_ContainsConstants(), mcElement::math_ContainsInvalidSymbols(), mcElement::math_ContainsNumber(), mcElement::math_ContainsOneOf(), mcElement::math_ContainsParameters(), mcElement::math_ContainsSymbol(), mcElement::math_ContainsSymbols(), mcElement::math_ContainsUnknowns(), mcElementArray::math_DataToMathIdx(), mcElementArray::math_Delete(), mcPolynomial::math_DeleteFirstOp(), mcElement::math_DivideBy(), mcElementArray::math_EmbedInBracket(), mcElementArray::math_EmbedInBracketAndRaiseTo(), mcElementArray::math_EmbedInFraction(), mcElementArray::math_EmbedInRadical(), mcOperator::math_Evaluate(), mcElement::math_Evaluate(), mcElement::math_EvaluateAt(), mcElement::math_EvaluatesTo(), mcMathMng::math_Expand(), mcElementArray::math_Expand(), mcElement::math_Expand(), mcPolynomial::math_FactoreOut(), mcMathMng::math_FactoreOut(), mcPolynomial::math_FactoreOutAll(), mcMathMng::math_FactoreOutAll(), mcPolynomial::math_FactoreOutConstants(), mcPolynomial::math_FactoreOutFreeOf(), mcMathMng::math_FactoreOutFreeOf(), mcPolynomial::math_FactoreOutParameters(), mcPolynomial::math_FactoreOutUnknowns(), mcPolynomial::math_Factorize(), mcMathMng::math_Find(), mcElement::math_Find(), mcElement::math_FindInChildrenOnly(), mcPolynomial::math_FindMonomialContaining(), mcFraction::math_Flip(), mcPolynomial::math_Get(), mcElementArray::math_Get(), mcMonomial::math_GetCoeff(), mcPolynomial::math_GetCoeffOf(), mcExpElement::math_GetConstExp(), mcElementArray::math_GetCount(), mcElement::math_GetCountOf(), mcElement::math_GetCountOfChildrenOnly(), mcElement::math_GetCountOfSymbolsType(), mcExpElement::math_GetExp(), mcPolynomial::math_GetFactors(), mcPolynomial::math_GetIdxFromEntry(), mcPolynomial::math_GetIndexOf(), mcElementArray::math_GetIndexOf(), mcElement::math_GetLenght(), mcMathMng::math_GetMathMngType(), mcMathSystem::math_GetMathSystemType(), mcElement::math_GetMathType(), mcPolynomial::math_GetMaxDegreeFor(), mcMonomial::math_GetMaxDegreeFor(), mcMathMng::math_GetMaxDegreeFor(), mcMonomial::math_GetMaxDegreeForSymbolArray(), mcPolynomial::math_GetMonomialContaining(), mcPolynomial::math_GetMonomialIdxFromEntry(), mcNumber::math_GetNumDen(), mcPolynomial::math_GetNumSign(), mcElementArray::math_GetOpBetween(), mcElementArray::math_GetOpPreceding(), mcElementArray::math_GetOpTypeBetween(), mcElementArray::math_GetOpTypePreceding(), mcElement::math_GetOrderPos(), mcPolynomial::math_GetSign(), mcExpElement::math_GetSub(), mcElement::math_GetSymbolList(), mcElement::math_GetTotalLenght(), mcElementArray::math_GetWrapped(), mcElementArray::math_GetWrappedNumber(), mcElementArray::math_GetWrappedSymbol(), mcExpElement::math_hasExp(), mcExpElement::math_hasSub(), mcElement::math_isConstant(), mcPolynomial::math_isFactorized(), mcMathMng::math_isFactorized(), mcElement::math_isFinite(), mcPolynomial::math_isFirstMonomialNegative(), mcElement::math_isListedBeforeOf(), mcElement::math_isMaxSimplified(), mcNumber::math_isValid(), mcElement::math_isValidMath(), mcElementArray::math_isWrappingNumOnly(), mcElementArray::math_isWrappingOnly(), mcElementArray::math_isWrappingSymOnly(), mcElement::math_MakeReciprocal(), mcElementArray::math_MathToDataIdx(), mcElement::math_MaxSimplify(), mcMathAndSystem::math_Merge(), mcMathMng::math_MoveAll(), mcMathMng::math_MoveConstants(), mcMathMng::math_MoveFreeFrom(), mcMathMng::math_MoveNonSymbol(), mcMathMng::math_MoveParameters(), mcMathMng::math_MoveSymbol(), mcMathMng::math_MoveUnknowns(), mcElement::math_MultiplyBy(), mcElement::math_NonRecursiveFindInChildren(), mcMathOrSystem::math_OrMerge(), mcPolynomial::math_PackSign(), mcElement::math_RaiseTo(), mcElementArray::math_Remove(), mcMonomial::math_RemoveAllOp(), mcMonomial::math_RemoveCoeff(), mcElement::math_Replace(), mcElementArray::math_ResetToOne(), mcElementArray::math_ResetToZero(), mcMonomial::math_SetCoeff(), mcElement::math_SetExp(), mcMathMng::math_SetMathType(), mcPolynomial::math_SetSign(), mcElement::math_SimpleAdd(), mcElement::math_SimpleDivideBy(), mcElement::math_SimpleMultiplyBy(), mcElement::math_SimpleRaiseTo(), mcElement::math_SimpleSubtract(), mcMathMng::math_Simplify(), mcElementArray::math_Simplify(), mcElement::math_Simplify(), mcMonomial::math_SimplifyCoeff(), mcElement::math_Subtract(), mcElementArray::math_WrapMonomial(), mcElementArray::math_WrapNumber(), mcElementArray::math_WrapSimple(), and mcElementArray::math_WrapSymbol().

#define wxDEFINE_CLASS  ) 
 

math_Adds the given classname to the wxWidgets RTTI system.

Definition at line 252 of file MathUtils.h.

#define wxIMPLEMENT_CLASS x,
 ) 
 

Implements the wxWidgets RTTI support for the class x (which must derive from the class y).

Definition at line 256 of file MathUtils.h.

#define wxStrcpy   strcpy
 

Definition at line 172 of file MathUtils.h.



Documentation generated with Doxygen on Sun Feb 6 17:11:41 2005
Visit MathStudio home page for more info

[ Top ]