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

mcMathAndSystem Class Reference

#include <MathAndSystem.h>

Inheritance diagram for mcMathAndSystem:

Inheritance graph
[legend]
Collaboration diagram for mcMathAndSystem:

Collaboration graph
[legend]
List of all members.

Detailed Description

Container of a mcMathAndSystemHelpers-derived class which uses COW.

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

Definition at line 253 of file MathAndSystem.h.

Public Member Functions

 mcMathAndSystem (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_AddLine (mcMathLine *ptoadd)
mcWRAPPER mcMathLine & data_GetLine (int n)
mcWRAPPER const mcMathLine & data_GetLine (int n) const
mcWRAPPER void data_SetFilter (const mcFilter *p, int n=-1)
mcWRAPPER int gui_GetActiveElemID () const
mcWRAPPER bool gui_isIDChanged () const
mcWRAPPER mcMathLine & gui_GetFocusLine ()
mcWRAPPER const mcMathLine & gui_GetFocusLine () const
mcWRAPPER void math_Merge (const mcMathAndSystem &arr1, const mcMathAndSystem &arr2)

Private Member Functions

 mcDEFINE_MAIN_CLASS (MathAndSystem, mcMathSystem)


Constructor & Destructor Documentation

mcMathAndSystem::mcMathAndSystem (  const mcMathLine &  l1,
const mcMathLine &  l2
)  [inline]
 

Definition at line 259 of file MathAndSystem.h.

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


Member Function Documentation

mcWRAPPER void mcMathAndSystem::data_AddLine (  mcMathLine *  ptoadd  )  [inline]
 

Definition at line 270 of file MathAndSystem.h.

References mcWRAPPER.

Referenced by mcMathOrSystemHelpers::data_AddLineToLastAndSystem(), mcMathOrSystemHelpers::data_AddLineToNewAndSystem(), and mcMathAndSystem().

mcWRAPPER const mcMathLine& mcMathAndSystem::data_GetLine (  int  n  )  const [inline]
 

Definition at line 274 of file MathAndSystem.h.

References mcWRAPPER.

mcWRAPPER mcMathLine& mcMathAndSystem::data_GetLine (  int  n  )  [inline]
 

Definition at line 272 of file MathAndSystem.h.

References mcWRAPPER.

Referenced by mcSolver::math_PreSolve().

bool mcMathAndSystem::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 263 of file MathAndSystem.h.

References mcET_MATHANDSYSTEM.

mcWRAPPER void mcMathAndSystem::data_SetFilter (  const mcFilter *  p,
int  n = -1
)  [inline]
 

Definition at line 276 of file MathAndSystem.h.

References mcMathMng::data_SetFilter(), and mcWRAPPER.

Referenced by mcMathOrSystem::data_SetFilter(), and mcMathOrSystemHelpers::data_SetFilter().

mcWRAPPER int mcMathAndSystem::gui_GetActiveElemID (   )  const [inline]
 

Definition at line 285 of file MathAndSystem.h.

References mcMathLine::gui_GetActiveElemID(), and mcWRAPPER.

Referenced by mcMathOrSystem::gui_GetActiveElemID(), and mcMathOrSystemHelpers::gui_GetActiveElemID().

mcWRAPPER const mcMathLine& mcMathAndSystem::gui_GetFocusLine (   )  const [inline]
 

Definition at line 292 of file MathAndSystem.h.

References mcWRAPPER.

mcWRAPPER mcMathLine& mcMathAndSystem::gui_GetFocusLine (   )  [inline]
 

Definition at line 290 of file MathAndSystem.h.

References mcWRAPPER.

Referenced by mcMathOrSystemHelpers::gui_GetFocusLine().

mcWRAPPER bool mcMathAndSystem::gui_isIDChanged (   )  const [inline]
 

Definition at line 287 of file MathAndSystem.h.

References mcMathLine::gui_isIDChanged(), and mcWRAPPER.

Referenced by mcMathOrSystem::gui_isIDChanged(), and mcMathOrSystemHelpers::gui_isIDChanged().

mcWRAPPER void mcMathAndSystem::math_Merge (  const mcMathAndSystem &  arr1,
const mcMathAndSystem &  arr2
)  [inline]
 

Definition at line 301 of file MathAndSystem.h.

References mcWRAPPER.

Referenced by mcMathOrSystemHelpers::math_AndMerge().

mcMathAndSystem::mcDEFINE_MAIN_CLASS (  MathAndSystem  ,
mcMathSystem 
)  [private]
 


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

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

[ Top ]