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

mcMathSystem Class Reference

#include <MathSystem.h>

Inheritance diagram for mcMathSystem:

Inheritance graph
[legend]
Collaboration diagram for mcMathSystem:

Collaboration graph
[legend]
List of all members.

Detailed Description

Container of a mcMathSystemHelpers-derived class which uses COW.

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

Definition at line 481 of file MathSystem.h.

Public Member Functions

bool data_isValidContainerFor (mcElementType t) const
 Returns TRUE if this element can safely contain the given element type.
mcWRAPPER mcElementdata_Get (int n)
mcWRAPPER const mcElementdata_Get (int n) const
mcWRAPPER mcElementdata_GetLast ()
mcWRAPPER const mcElementdata_GetLast () const
mcWRAPPER int data_GetCount () const
mcWRAPPER void data_Insert (mcAbstractItem *pointer, int n)
mcWRAPPER void data_SetItem (mcAbstractItem *pointer, int n)
mcWRAPPER void data_RemoveAt (int idx, int count=1)
mcWRAPPER void data_Remove (const mcAbstractItem *p)
mcWRAPPER void data_Clear ()
mcWRAPPER bool data_isEmpty () const
mcWRAPPER int data_Find (const mcAbstractItem *pointer) const
mcWRAPPER mcAbstractItemdata_Detach (int idx)
mcWRAPPER int gui_UpdateBmp (int x, int y, long flags, const wxPoint &p)
mcWRAPPER int gui_ForceBmpUpdate (int x, int y, long flags, const wxPoint &p)
mcWRAPPER int gui_DrawBmp (wxDC &dc, int x, int y) const
mcWRAPPER bool gui_NeedsRefresh () const
mcWRAPPER void gui_SetMask (const wxColour &c)
mcWRAPPER void gui_SetBmpBackgroundBrush (const wxBrush &c)
mcWRAPPER void gui_SetFocusIdx (int n)
mcWRAPPER int gui_GetFocusIdx () const
mcWRAPPER wxPoint gui_GetRelCursorPos (wxDC &dc, int x, int y, int *height) const
mcWRAPPER wxBitmap gui_GetBmp () const
mcWRAPPER wxString gui_GetSelInlinedExpr () const
mcWRAPPER bool io_ImportInlinedExpr (const wxString &str)
mcWRAPPER bool io_ImportInlinedExpr (const wxString &str, int *count, wxString &err)
mcWRAPPER mcMathSystemType math_GetMathSystemType () const

Private Member Functions

 mcDEFINE_ABSTRACT_CLASS (MathSystem, mcElement)


Member Function Documentation

mcWRAPPER void mcMathSystem::data_Clear  )  [inline]
 

Definition at line 513 of file MathSystem.h.

References mcWRAPPER.

mcWRAPPER mcAbstractItem* mcMathSystem::data_Detach int  idx  )  [inline]
 

Definition at line 519 of file MathSystem.h.

References mcAbstractItem, and mcWRAPPER.

mcWRAPPER int mcMathSystem::data_Find const mcAbstractItem pointer  )  const [inline]
 

Definition at line 517 of file MathSystem.h.

References mcWRAPPER.

mcWRAPPER const mcElement& mcMathSystem::data_Get int  n  )  const [inline]
 

Definition at line 496 of file MathSystem.h.

References mcWRAPPER.

mcWRAPPER mcElement& mcMathSystem::data_Get int  n  )  [inline]
 

Definition at line 494 of file MathSystem.h.

References mcWRAPPER.

Referenced by mcSystemStepArray::math_AppendCombinationOf(), and mcMathSystemHelpers::math_Compare().

mcWRAPPER int mcMathSystem::data_GetCount  )  const [inline]
 

Definition at line 503 of file MathSystem.h.

References mcWRAPPER.

Referenced by mcMathOrSystemHelpers::data_GetLineCount(), mcMathSystemHelpers::gui_GetSelInlinedExpr(), mcSystemStepArray::math_AppendCombinationOf(), and mcMathSystemHelpers::math_Compare().

mcWRAPPER const mcElement& mcMathSystem::data_GetLast  )  const [inline]
 

Definition at line 500 of file MathSystem.h.

References mcWRAPPER.

mcWRAPPER mcElement& mcMathSystem::data_GetLast  )  [inline]
 

Definition at line 498 of file MathSystem.h.

References mcWRAPPER.

mcWRAPPER void mcMathSystem::data_Insert mcAbstractItem pointer,
int  n
[inline]
 

Definition at line 505 of file MathSystem.h.

References mcWRAPPER.

mcWRAPPER bool mcMathSystem::data_isEmpty  )  const [inline]
 

Definition at line 515 of file MathSystem.h.

References mcWRAPPER.

bool mcMathSystem::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 mcElement.

Reimplemented in mcMathAndSystem, and mcMathOrSystem.

Definition at line 487 of file MathSystem.h.

References mcET_MATHANDSYSTEM, and mcET_MATHORSYSTEM.

mcWRAPPER void mcMathSystem::data_Remove const mcAbstractItem p  )  [inline]
 

Definition at line 511 of file MathSystem.h.

References mcWRAPPER.

mcWRAPPER void mcMathSystem::data_RemoveAt int  idx,
int  count = 1
[inline]
 

Definition at line 509 of file MathSystem.h.

References mcWRAPPER.

mcWRAPPER void mcMathSystem::data_SetItem mcAbstractItem pointer,
int  n
[inline]
 

Definition at line 507 of file MathSystem.h.

References mcWRAPPER.

mcWRAPPER int mcMathSystem::gui_DrawBmp wxDC &  dc,
int  x,
int  y
const [inline]
 

Definition at line 532 of file MathSystem.h.

References mcWRAPPER.

mcWRAPPER int mcMathSystem::gui_ForceBmpUpdate int  x,
int  y,
long  flags,
const wxPoint &  p
[inline]
 

Definition at line 530 of file MathSystem.h.

References mcWRAPPER.

mcWRAPPER wxBitmap mcMathSystem::gui_GetBmp  )  const [inline]
 

Definition at line 550 of file MathSystem.h.

References mcWRAPPER.

mcWRAPPER int mcMathSystem::gui_GetFocusIdx  )  const [inline]
 

Definition at line 544 of file MathSystem.h.

References mcWRAPPER.

mcWRAPPER wxPoint mcMathSystem::gui_GetRelCursorPos wxDC &  dc,
int  x,
int  y,
int *  height
const [inline]
 

Definition at line 547 of file MathSystem.h.

References mcElement::gui_GetRelCursorPos(), and mcWRAPPER.

mcWRAPPER wxString mcMathSystem::gui_GetSelInlinedExpr  )  const [inline]
 

Definition at line 553 of file MathSystem.h.

References mcWRAPPER.

mcWRAPPER bool mcMathSystem::gui_NeedsRefresh  )  const [inline]
 

Definition at line 535 of file MathSystem.h.

References mcWRAPPER.

mcWRAPPER void mcMathSystem::gui_SetBmpBackgroundBrush const wxBrush &  c  )  [inline]
 

Definition at line 539 of file MathSystem.h.

References mcWRAPPER.

mcWRAPPER void mcMathSystem::gui_SetFocusIdx int  n  )  [inline]
 

Definition at line 542 of file MathSystem.h.

References mcWRAPPER.

mcWRAPPER void mcMathSystem::gui_SetMask const wxColour &  c  )  [inline]
 

Definition at line 537 of file MathSystem.h.

References mcWRAPPER.

mcWRAPPER int mcMathSystem::gui_UpdateBmp int  x,
int  y,
long  flags,
const wxPoint &  p
[inline]
 

Definition at line 528 of file MathSystem.h.

References mcWRAPPER.

mcWRAPPER bool mcMathSystem::io_ImportInlinedExpr const wxString &  str,
int *  count,
wxString &  err
[inline]
 

Reimplemented from mcElement.

Definition at line 564 of file MathSystem.h.

References mcElement::io_ImportInlinedExpr(), and mcWRAPPER.

mcWRAPPER bool mcMathSystem::io_ImportInlinedExpr const wxString &  str  )  [inline]
 

Definition at line 562 of file MathSystem.h.

References mcElement::io_ImportInlinedExpr(), and mcWRAPPER.

mcWRAPPER mcMathSystemType mcMathSystem::math_GetMathSystemType  )  const [inline]
 

Definition at line 573 of file MathSystem.h.

References mcWRAPPER.

mcMathSystem::mcDEFINE_ABSTRACT_CLASS MathSystem  ,
mcElement 
[private]
 


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

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

[ Top ]