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

MathHelpers.h File Reference


Detailed Description

Defines some helper CLASSes used by MathCore.

Author:
Luciano Cattani, Francesco Montorsi
Date:
3-2-2004
Defines following classes:

Definition in file MathHelpers.h.

#include <wx/dynarray.h>
#include <wx/event.h>
#include <wx/font.h>
#include <wx/colour.h>
#include <wx/dc.h>
#include "mc/MathUtils.h"
#include "mc/MathTypes.h"
#include "mc/Value.h"

Include dependency graph for MathHelpers.h:

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

Go to the source code of this file.

mcKeyEntry flags

Some values which can be combined with the OR operator in the #m_nFlags variable.

#define SHIFT_KEY   1
#define CTRL_KEY   2
#define META_KEY   4
#define ALT_KEY   8
 WARNING: this flag interferes with menu handling.

Defines

#define mcKEY_MAX_COMBINATIONS   2
 Defines the number of possible combinations the user can use to activate a command.
#define mcSYM_PARAMETER   0
 The mcSymbol::arrParameters array ID.
#define mcSYM_CONSTANT   1
 The mcSymbol::arrConstants array ID.
#define mcSYM_UNKNOWN   2
 The mcSymbol::arrUnknowns array ID.
#define mcSYM_UNREGISTERED   3
 The mcSymbol::arrUnregistered array ID.
#define mcSYM_NOTSET   -1
 Used to mark as uninitialized mcSymbolProperties::m_nSymbolType.
#define mcSYM_NOTFOUND   -1
 Used by some mcSymbolProperties functions.
#define mcMAX_SYMBOL_ARRAY_NUM   5
 The maximum number of mcSymbolArray instances which can be created at the same time.
#define mcSYMFIND_MATCH_NAME   1
#define mcSYMFIND_MATCH_ENCODING   2
#define mcSYMFIND_MATCH_INLINED   4
#define mcSYMFIND_MATCH_SUBSCRIPT   8
#define mcSYMFIND_MATCH_VALUE   16
#define mcSYMFIND_MATCH_ALL
#define mcCP_MAX_DEPTH   64
#define mcCP_UNDEFINED   -256
#define mcCP_BEGIN   -257
#define mcCP_END   -258
#define mcCP_BEGINEND   -259

Variables

typedef void mcAbstractItem
 An abstract item can be anything; it is thus another way to call "void".


Define Documentation

#define ALT_KEY   8
 

WARNING: this flag interferes with menu handling.

Definition at line 235 of file MathHelpers.h.

Referenced by mcKeyEntry::Encode(), mcKeyEntry::GetEvent(), mcKeyEntry::InitFlags(), mcKeyEntry::MatchKey(), and mcKeyEntry::mcKeyEntry().

#define CTRL_KEY   2
 

Definition at line 233 of file MathHelpers.h.

Referenced by mcKeyEntry::Encode(), mcKeyEntry::GetEvent(), mcKeyEntry::InitFlags(), mcKeyEntry::MatchKey(), and mcKeyEntry::mcKeyEntry().

#define mcCP_BEGIN   -257
 

Definition at line 1011 of file MathHelpers.h.

Referenced by mcPolynomialHelpers::gui_BackInput(), mcMonomialHelpers::gui_BackInput(), mcFunctionHelpers::gui_BaseMoveCursor(), mcExpContainerHelpers::gui_BaseMoveCursor(), mcMathMngHelpers::gui_DeleteSelection(), mcExpElementHelpers::gui_ExpSubMoveCursor(), mcSymbolHelpers::gui_GetBaseCursorPos(), mcNumberHelpers::gui_GetBaseCursorPos(), mcFunctionHelpers::gui_GetBaseCursorPos(), mcExpContainerHelpers::gui_GetBaseCursorPos(), mcTextHelpers::gui_GetCursorPos(), mcMathSystemHelpers::gui_GetCursorPos(), mcMathMngHelpers::gui_GetCursorPos(), mcFractionHelpers::gui_GetCursorPos(), mcExpElementHelpers::gui_GetCursorPos(), mcElementArrayHelpers::gui_GetCursorPos(), mcDecorationHelpers::gui_GetCursorPos(), mcExpElementHelpers::gui_GetExpSubCursorPos(), mcMathMngHelpers::gui_Input(), mcElementArrayHelpers::gui_Input(), mcMathMngHelpers::gui_MoveCursor(), mcFractionHelpers::gui_MoveCursor(), mcElementArrayHelpers::gui_MoveCursorRight(), mcMathMngHelpers::gui_MoveCursorUsingPoint(), mcPolynomialHelpers::gui_ReplaceBracket(), mcExpContainerHelpers::gui_SetBaseCursorPos(), mcElementArrayHelpers::gui_SetCursorOnElemBegin(), mcMathMngHelpers::gui_SetCursorPos(), mcFunctionHelpers::gui_SetCursorPos(), mcElementArrayHelpers::gui_SetCursorPos(), mcMonomialHelpers::gui_Split(), and mcCursorPos::isBegin().

#define mcCP_BEGINEND   -259
 

Definition at line 1013 of file MathHelpers.h.

Referenced by mcOperatorHelpers::gui_GetCursorPos(), mcEmptyBoxHelpers::gui_GetCursorPos(), mcElementArrayHelpers::gui_GetCursorPos(), mcCursorPos::isBeginEnd(), and mcCursorPos::isSpecial().

#define mcCP_END   -258
 

Definition at line 1012 of file MathHelpers.h.

Referenced by mcPolynomialHelpers::data_ReplaceParentheses(), mcTextHelpers::data_SetText(), mcPolynomialHelpers::gui_BackInput(), mcMonomialHelpers::gui_BackInput(), mcFunctionHelpers::gui_BaseMoveCursor(), mcExpContainerHelpers::gui_BaseMoveCursor(), mcExpElementHelpers::gui_DeleteExpSub(), mcExpElementHelpers::gui_EditExpSub(), mcElementArrayHelpers::gui_ExMoveCursorUsingPoint(), mcExpElementHelpers::gui_ExpSubMoveCursor(), mcSymbolHelpers::gui_GetBaseCursorPos(), mcNumberHelpers::gui_GetBaseCursorPos(), mcFunctionHelpers::gui_GetBaseCursorPos(), mcExpContainerHelpers::gui_GetBaseCursorPos(), mcTextHelpers::gui_GetCursorPos(), mcMathSystemHelpers::gui_GetCursorPos(), mcMathMngHelpers::gui_GetCursorPos(), mcFractionHelpers::gui_GetCursorPos(), mcExpElementHelpers::gui_GetCursorPos(), mcElementArrayHelpers::gui_GetCursorPos(), mcDecorationHelpers::gui_GetCursorPos(), mcExpElementHelpers::gui_GetExpSubCursorPos(), mcTextHelpers::gui_Input(), mcMathMngHelpers::gui_Input(), mcMathMngHelpers::gui_MoveCursor(), mcElementArrayHelpers::gui_MoveCursorLeft(), mcMathMngHelpers::gui_MoveCursorUsingPoint(), mcPolynomialHelpers::gui_ReplaceBracket(), mcExpContainerHelpers::gui_SetBaseCursorPos(), mcElementArrayHelpers::gui_SetCursorOnElemEnd(), mcMathMngHelpers::gui_SetCursorPos(), mcFunctionHelpers::gui_SetCursorPos(), mcElementArrayHelpers::gui_SetCursorPos(), mcMonomialHelpers::gui_Split(), and mcCursorPos::isEnd().

#define mcCP_MAX_DEPTH   64
 

Definition at line 1008 of file MathHelpers.h.

#define mcCP_UNDEFINED   -256
 

Definition at line 1010 of file MathHelpers.h.

Referenced by mcExpElementHelpers::gui_GetExpSubCursorPos(), and mcCursorPos::isUndefined().

#define mcKEY_MAX_COMBINATIONS   2
 

Defines the number of possible combinations the user can use to activate a command.

Definition at line 221 of file MathHelpers.h.

Referenced by mcKey::Cleanup(), mcKey::DeepCopy(), mcKey::MatchKey(), mcKey::mcKey(), and mcKey::Reset().

#define mcMAX_SYMBOL_ARRAY_NUM   5
 

The maximum number of mcSymbolArray instances which can be created at the same time.

By now, they are 4:

Definition at line 869 of file MathHelpers.h.

Referenced by mcSymbolArray::data_AddSymbol(), and mcSymbolArray::data_ResetLinkedArr().

#define mcSYM_CONSTANT   1
 

The mcSymbol::arrConstants array ID.

Definition at line 685 of file MathHelpers.h.

Referenced by mcSymbolProperties::data_isConstant(), and mcSymbol::math_FindSymbol().

#define mcSYM_NOTFOUND   -1
 

Used by some mcSymbolProperties functions.

Definition at line 690 of file MathHelpers.h.

Referenced by mcSymbolArray::data_AddSymbol(), mcSymbolArray::data_FindSymbol(), and mcSymbolProperties::math_FindDuplicate().

#define mcSYM_NOTSET   -1
 

Used to mark as uninitialized mcSymbolProperties::m_nSymbolType.

Definition at line 689 of file MathHelpers.h.

Referenced by mcSymbolProperties::data_Check(), and mcSymbolArray::data_FindSymbol().

#define mcSYM_PARAMETER   0
 

The mcSymbol::arrParameters array ID.

Definition at line 684 of file MathHelpers.h.

Referenced by mcSymbolProperties::data_isParameter(), and mcSymbol::math_FindSymbol().

#define mcSYM_UNKNOWN   2
 

The mcSymbol::arrUnknowns array ID.

Definition at line 686 of file MathHelpers.h.

Referenced by mcSymbolProperties::data_isUnknown(), and mcSymbol::math_FindSymbol().

#define mcSYM_UNREGISTERED   3
 

The mcSymbol::arrUnregistered array ID.

Definition at line 687 of file MathHelpers.h.

Referenced by mcSymbolProperties::data_isRegistered(), and mcSymbol::math_FindSymbol().

#define mcSYMFIND_MATCH_ALL
 

Value:

Definition at line 878 of file MathHelpers.h.

Referenced by mcSymbolHelpers::data_Update().

#define mcSYMFIND_MATCH_ENCODING   2
 

Definition at line 873 of file MathHelpers.h.

Referenced by mcSymbolArray::data_FindSymbol().

#define mcSYMFIND_MATCH_INLINED   4
 

Definition at line 874 of file MathHelpers.h.

Referenced by mcSymbolArray::data_FindSymbol(), and mcSymbolHelpers::io_ImportBaseInlinedExpr().

#define mcSYMFIND_MATCH_NAME   1
 

Definition at line 872 of file MathHelpers.h.

Referenced by mcSymbolArray::data_FindSymbol(), mcSymbolHelpers::data_SetSymbol(), and mcSymbolProperties::math_FindDuplicate().

#define mcSYMFIND_MATCH_SUBSCRIPT   8
 

Definition at line 875 of file MathHelpers.h.

Referenced by mcSymbolArray::data_FindSymbol().

#define mcSYMFIND_MATCH_VALUE   16
 

Definition at line 876 of file MathHelpers.h.

Referenced by mcSymbolArray::data_FindSymbol().

#define META_KEY   4
 

Definition at line 234 of file MathHelpers.h.

Referenced by mcKeyEntry::Encode(), mcKeyEntry::GetEvent(), mcKeyEntry::InitFlags(), mcKeyEntry::MatchKey(), and mcKeyEntry::mcKeyEntry().

#define SHIFT_KEY   1
 

Definition at line 232 of file MathHelpers.h.

Referenced by mcKeyEntry::Encode(), mcKeyEntry::GetEvent(), mcMultDivOpHelpers::gui_isBeginKey(), mcKeyEntry::InitFlags(), mcKeyEntry::MatchKey(), and mcKeyEntry::mcKeyEntry().


Variable Documentation

class typedef void mcAbstractItem
 

An abstract item can be anything; it is thus another way to call "void".

Definition at line 66 of file MathHelpers.h.

Referenced by mcMathSystem::data_Detach(), mcAbstractArray::data_Detach(), mcMathOrSystemHelpers::data_GetCopyOf(), mcSymbolArray::data_GetCopyOf(), mcAbstractArray::data_GetCopyOf(), mcMathAndSystemHelpers::data_GetCopyOf(), and mcAbstractArray::data_GetItem().



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

[ Top ]