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

mcSolverArray Class Reference

#include <Solver.h>

Inheritance diagram for mcSolverArray:

Inheritance graph
[legend]
Collaboration diagram for mcSolverArray:

Collaboration graph
[legend]
List of all members.

Detailed Description

A specialized array containing pointers to mcSolver classes.

The contained objects are pointers so that mcSolver-derived classes can be used; however, this technical detail is completely hidden to the user which uses mcSolverArray...

Definition at line 242 of file Solver.h.

Public Member Functions

 mcSolverArray ()
virtual ~mcSolverArray ()
bool math_Add (mcSolver *solver)
 Adds a new mcSolver-derived class to the array.
bool math_Contains (const mcSolver *) const
 Returns TRUE if the given mcSolver-derived class is already contained in the array.
wxArrayString io_GetDescArray () const
 Returns an array of wxString containing the descriptions for all entries of this array.
void data_Check () const
 Checks all the solver registered in this array.
mcSolverdata_Get (int i)
const mcSolverdata_Get (int i) const

Protected Member Functions

void data_Delete (int n)
 Deletes the n-th entry of the array.


Constructor & Destructor Documentation

mcSolverArray::mcSolverArray  )  [inline]
 

Definition at line 249 of file Solver.h.

virtual mcSolverArray::~mcSolverArray  )  [inline, virtual]
 

Definition at line 250 of file Solver.h.

References mcAbstractArray::data_Clear().


Member Function Documentation

void mcSolverArray::data_Check  )  const
 

Checks all the solver registered in this array.

Reimplemented from mcAbstractArray.

Definition at line 342 of file Solver.cpp.

References mcSolver::data_Check(), mcAbstractArray::data_Check(), data_Get(), and mcAbstractArray::data_GetCount().

void mcSolverArray::data_Delete int  n  )  [inline, protected, virtual]
 

Deletes the n-th entry of the array.

Implements mcAbstractArray.

Definition at line 245 of file Solver.h.

References data_Get().

const mcSolver* mcSolverArray::data_Get int  i  )  const [inline]
 

Definition at line 271 of file Solver.h.

References mcAbstractArray::data_GetItem().

mcSolver* mcSolverArray::data_Get int  i  )  [inline]
 

Definition at line 270 of file Solver.h.

References mcAbstractArray::data_GetItem().

Referenced by data_Check(), data_Delete(), io_GetDescArray(), and math_Contains().

wxArrayString mcSolverArray::io_GetDescArray  )  const
 

Returns an array of wxString containing the descriptions for all entries of this array.

Definition at line 334 of file Solver.cpp.

References data_Get(), and mcAbstractArray::data_GetCount().

bool mcSolverArray::math_Add mcSolver solver  ) 
 

Adds a new mcSolver-derived class to the array.

Returns TRUE if the operation is performed without problems; FALSE if another solver with the same name is already present (and thus the given one could not be added...).

Definition at line 324 of file Solver.cpp.

References mcAbstractArray::data_Add(), and math_Contains().

bool mcSolverArray::math_Contains const mcSolver  )  const
 

Returns TRUE if the given mcSolver-derived class is already contained in the array.

Definition at line 349 of file Solver.cpp.

References data_Get(), mcAbstractArray::data_GetCount(), and mcSolver::math_GetName().

Referenced by math_Add().


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

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

[ Top ]