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

mcMathOrSystem Class Reference

#include <MathOrSystem.h>

Inheritance diagram for mcMathOrSystem:

Inheritance graph
[legend]
Collaboration diagram for mcMathOrSystem:

Collaboration graph
[legend]
List of all members.

Detailed Description

Container of a mcMathOrSystemHelpers-derived class which uses COW.

Never use mcMathOrSystemHelpers directly: it must be accessed through this class. For more info see mcElement class details.

Definition at line 201 of file MathOrSystem.h.

Public Member Functions

 mcMathOrSystem (const mcMathAndSystem &towrap)
 mcMathOrSystem (const mcMathLine &l1, const mcMathLine &l2)
bool data_isValidContainerFor (mcElementType t) const
 Returns TRUE if this element can safely contain the given element type.
mcWRAPPER void data_AddSys (mcMathAndSystem *p)
mcWRAPPER void data_AddLineToNewAndSystem (mcMathLine *p)
mcWRAPPER void data_AddLineToLastAndSystem (mcMathLine *p)
mcWRAPPER mcMathAndSystemdata_GetSys (int n)
mcWRAPPER const mcMathAndSystemdata_GetSys (int n) const
mcWRAPPER void data_SetFilter (const mcFilter *p, int n=-1)
mcWRAPPER wxString data_GetDescString () const
mcWRAPPER int gui_GetActiveElemID () const
mcWRAPPER bool gui_isIDChanged () const
mcWRAPPER mcMathLinegui_GetFocusLine ()
mcWRAPPER const mcMathLinegui_GetFocusLine () const
mcWRAPPER void gui_AddEmptyLineToLastAndSystem ()
mcWRAPPER void gui_AddEmptyLineToNewAndSystem ()
mcWRAPPER void math_AndMerge (const mcMathOrSystem &arr1, const mcMathOrSystem &arr2)
mcWRAPPER void math_OrMerge (const mcMathOrSystem &arr1, const mcMathOrSystem &arr2)

Private Member Functions

 mcDEFINE_MAIN_CLASS (MathOrSystem, mcMathSystem)


Constructor & Destructor Documentation

mcMathOrSystem::mcMathOrSystem const mcMathAndSystem towrap  )  [inline]
 

Definition at line 207 of file MathOrSystem.h.

References data_AddSys(), and mcObject::data_SetRefData().

mcMathOrSystem::mcMathOrSystem const mcMathLine l1,
const mcMathLine l2
[inline]
 

Definition at line 210 of file MathOrSystem.h.

References data_AddLineToNewAndSystem(), and mcObject::data_SetRefData().


Member Function Documentation

mcWRAPPER void mcMathOrSystem::data_AddLineToLastAndSystem mcMathLine p  )  [inline]
 

Definition at line 226 of file MathOrSystem.h.

References mcWRAPPER.

Referenced by mcSystemStepArray::data_AddKeyLine(), mcSystemStepArray::data_AddLine(), mcSystemStepArray::data_AddLineOnlyIfComplexEnough(), and mcSolver::math_SplitInTwoEquations().

mcWRAPPER void mcMathOrSystem::data_AddLineToNewAndSystem mcMathLine p  )  [inline]
 

Definition at line 224 of file MathOrSystem.h.

References mcWRAPPER.

Referenced by mcPolySolver::math_SolveLineSecondDegree(), mcSolver::math_SplitInTwoEquations(), and mcMathOrSystem().

mcWRAPPER void mcMathOrSystem::data_AddSys mcMathAndSystem p  )  [inline]
 

Definition at line 222 of file MathOrSystem.h.

References mcWRAPPER.

Referenced by mcSolver::math_PreSolve(), mcPolySolver::math_SolveLineSecondDegree(), and mcMathOrSystem().

mcWRAPPER wxString mcMathOrSystem::data_GetDescString  )  const [inline]
 

Definition at line 234 of file MathOrSystem.h.

References mcWRAPPER.

mcWRAPPER const mcMathAndSystem& mcMathOrSystem::data_GetSys int  n  )  const [inline]
 

Definition at line 230 of file MathOrSystem.h.

References mcWRAPPER.

mcWRAPPER mcMathAndSystem& mcMathOrSystem::data_GetSys int  n  )  [inline]
 

Definition at line 228 of file MathOrSystem.h.

References mcWRAPPER.

Referenced by mcSolver::math_PreSolve().

bool mcMathOrSystem::data_isValidContainerFor mcElementType  t  )  const [inline, virtual]
 

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 mcMathSystem.

Definition at line 215 of file MathOrSystem.h.

References mcET_MATHORSYSTEM.

mcWRAPPER void mcMathOrSystem::data_SetFilter const mcFilter p,
int  n = -1
[inline]
 

Definition at line 232 of file MathOrSystem.h.

References mcMathAndSystem::data_SetFilter(), and mcWRAPPER.

mcWRAPPER void mcMathOrSystem::gui_AddEmptyLineToLastAndSystem  )  [inline]
 

Definition at line 260 of file MathOrSystem.h.

References mcWRAPPER.

mcWRAPPER void mcMathOrSystem::gui_AddEmptyLineToNewAndSystem  )  [inline]
 

Definition at line 262 of file MathOrSystem.h.

References mcWRAPPER.

mcWRAPPER int mcMathOrSystem::gui_GetActiveElemID  )  const [inline]
 

Definition at line 237 of file MathOrSystem.h.

References mcMathAndSystem::gui_GetActiveElemID(), and mcWRAPPER.

mcWRAPPER const mcMathLine& mcMathOrSystem::gui_GetFocusLine  )  const [inline]
 

Definition at line 257 of file MathOrSystem.h.

References mcWRAPPER.

mcWRAPPER mcMathLine& mcMathOrSystem::gui_GetFocusLine  )  [inline]
 

Definition at line 255 of file MathOrSystem.h.

References mcWRAPPER.

mcWRAPPER bool mcMathOrSystem::gui_isIDChanged  )  const [inline]
 

Definition at line 252 of file MathOrSystem.h.

References mcMathAndSystem::gui_isIDChanged(), and mcWRAPPER.

mcWRAPPER void mcMathOrSystem::math_AndMerge const mcMathOrSystem arr1,
const mcMathOrSystem arr2
[inline]
 

Definition at line 271 of file MathOrSystem.h.

References mcWRAPPER.

Referenced by mcSystemStepArray::math_AppendCombinationOf().

mcWRAPPER void mcMathOrSystem::math_OrMerge const mcMathOrSystem arr1,
const mcMathOrSystem arr2
[inline]
 

Definition at line 273 of file MathOrSystem.h.

References mcWRAPPER.

Referenced by mcSystemStepArray::math_AppendCombinationOf().

mcMathOrSystem::mcDEFINE_MAIN_CLASS MathOrSystem  ,
mcMathSystem 
[private]
 


The documentation for this class was generated from the following file:

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

[ Top ]