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

Element.cpp File Reference


Detailed Description

Implements the mcElement, mcElementData, mcElementGUI, mcElementIO, mcElementMath classes.

Author:
Francesco Montorsi
Date:
7-10-2003

Definition in file Element.cpp.

#include "mc/mcprec.h"
#include <wx/dcscreen.h>
#include "mc/EmptyBox.h"
#include "mc/Number.h"
#include "mc/Bracket.h"
#include "mc/Fraction.h"
#include "mc/Function.h"
#include "mc/Radical.h"
#include "mc/Text.h"
#include "mc/Symbol.h"
#include "mc/Operator.h"
#include "mc/AddSubOp.h"
#include "mc/MultDivOp.h"
#include "mc/Monomial.h"
#include "mc/Parenthesis.h"

Include dependency graph for Element.cpp:

Go to the source code of this file.

Defines

#define mcDEFINE_ALLOCATOR(x)
#define mcDEFINE_SPECIAL_ALLOCATOR(x, param1)
#define SCAN_REGISTERED_CLASSES(fnc, params)

Variables

mcElement mcEmptyElement


Define Documentation

#define mcDEFINE_ALLOCATOR  ) 
 

Value:

if (towrap)           \
  return x(towrap);        \
 else            \
  return x();

Definition at line 383 of file Element.cpp.

Referenced by mcElementHelpers::data_NewElem().

#define mcDEFINE_SPECIAL_ALLOCATOR x,
param1   ) 
 

Value:

if (towrap)           \
  return x(towrap);        \
 else            \
  return x(param1);

Definition at line 389 of file Element.cpp.

Referenced by mcElementHelpers::data_NewElem().

#define SCAN_REGISTERED_CLASSES fnc,
params   ) 
 

Value:

/* for each MathCore registered element class */   \
 for (int i=0; i < mcNUM_ELEMENT_TYPES; i++) {  \
  if (sdata_pElem[i]->fnc(params) != FALSE) {    \
                \
   /* found the class we were searching for */   \
   return (mcElementType)i;       \
  }              \
 }               \
                \
 /* there is no class with that char as begin char */  \
 return mcET_INVALID;

Definition at line 441 of file Element.cpp.

Referenced by mcElementHelpers::gui_isKeyBeginKey(), mcElementHelpers::io_isCharBeginChar(), and mcElementHelpers::io_isTagBeginTag().


Variable Documentation

mcElement mcEmptyElement
 

Definition at line 72 of file Element.cpp.

Referenced by mcPolynomialHelpers::data_AddNewWrappedElement(), mcMathMngHelpers::data_DeepCopy(), mcExpElementHelpers::data_DeepCopyExpSub(), mcExpElementHelpers::data_DestroyExpSub(), mcElementArrayHelpers::data_DetachAll(), mcElementArrayHelpers::data_DetachLastElem(), mcTextHelpers::data_GetConstChild(), mcMathMngHelpers::data_GetConstChild(), mcFunctionHelpers::data_GetConstChild(), mcFractionHelpers::data_GetConstChild(), mcExpElementHelpers::data_GetConstChild(), mcExpContainerHelpers::data_GetConstChild(), mcElementHelpers::data_GetConstChild(), mcDecorationHelpers::data_GetConstChild(), mcElementArrayHelpers::data_GetElemAtLeftOf(), mcElementArrayHelpers::data_GetElemAtRightOf(), mcElementHelpers::data_GetElemFromID(), mcPolynomialHelpers::data_GetWrapped(), mcElementArrayHelpers::data_GetWrapped(), mcElementArrayHelpers::data_isEmptyEntry(), mcElementArrayHelpers::data_isValidElem(), mcPolynomialHelpers::data_ReplaceParentheses(), mcElementArrayHelpers::data_SetAsEmptyEntry(), mcSymbolHelpers::data_SetSubscript(), mcPolynomialHelpers::gui_BackInput(), mcPolynomialHelpers::gui_DoSplit(), mcMonomialHelpers::gui_DoSplit(), mcExpElementHelpers::gui_EditExpSub(), mcElementArrayHelpers::gui_ExGetActiveElem(), mcElementHelpers::gui_GetActiveElem(), mcExpElementHelpers::gui_GetBaseSelection(), mcMathOrSystemHelpers::gui_GetFocusLine(), mcElementArrayHelpers::gui_GetSelection(), mcElementArrayHelpers::gui_GetSelElem(), mcElementArrayHelpers::gui_GetSelElemOfType(), mcPolynomialHelpers::gui_Input(), mcExpElementHelpers::gui_RecalcExpSubSize(), mcPolynomialHelpers::gui_ReplaceBracket(), mcElementHelpers::gui_SetAsExpOf(), mcElementHelpers::gui_SetAtSameLevelOf(), mcMonomialHelpers::gui_Split(), mcSymbolHelpers::gui_SubInput(), mcExpElementHelpers::gui_UpdateExpDepth(), mcFractionHelpers::io_CheckBracketNeed(), mcElementHelpers::math_Contains(), mcExpElementHelpers::math_GetConstExp(), mcExpElementHelpers::math_GetConstSub(), mcExpElementHelpers::math_GetExp(), mcDecorationHelpers::math_GetGCD(), mcPolynomialHelpers::math_GetGCDFor(), mcDecorationHelpers::math_GetLCM(), mcMonomialHelpers::math_GetMaxDegreeFor(), mcPolynomialHelpers::math_GetWrapped(), mcElementArrayHelpers::math_GetWrapped(), mcElementArrayHelpers::math_GetWrappedNumber(), mcElementArrayHelpers::math_GetWrappedSymbol(), mcElementArrayHelpers::math_HandleBasicOpRes(), mcExpElementHelpers::math_hasExp(), mcExpElementHelpers::math_hasSub(), mcPolynomialHelpers::math_MultiplyBy(), mcMonomialHelpers::math_MultiplyBy(), mcPolynomialHelpers::math_PackSign(), mcElementHelpers::math_RecursiveFind(), mcElementHelpers::math_RecursiveFindInChildrenOnly(), mcElementArrayHelpers::math_ReorderElements(), mcElementHelpers::math_Replace(), mcPolySolver::math_ResetCoeffArr(), mcRange::math_Set(), mcNumberHelpers::math_SimplifyBase(), mcPolynomialHelpers::math_SimplifySolveOp(), mcElementArrayHelpers::math_SimplifySolveOp(), and mcMonomialHelpers::math_TransformDivOp().



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

[ Top ]