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

mcRadical Class Reference

#include <Radical.h>

Inheritance diagram for mcRadical:

Inheritance graph
[legend]
Collaboration diagram for mcRadical:

Collaboration graph
[legend]
List of all members.

Detailed Description

mcRadical implements the radicals using mcPolynomial to hold as content any polynomial the user can input...

in addition this class also stores an index modifiable by the user using the KEY_EDITEXP...

Definition at line 219 of file Radical.h.

Public Member Functions

 mcRadical (const mcPolynomial &contents)
bool data_isValidContainerFor (mcElementType t) const
 Returns TRUE if this element can safely contain the given element type.

Private Member Functions

 mcDEFINE_MAIN_CLASS (Radical, mcExpContainer)


Constructor & Destructor Documentation

mcRadical::mcRadical const mcPolynomial contents  )  [inline]
 

Definition at line 225 of file Radical.h.

References mcExpContainer::data_SetContent(), and mcObject::data_SetRefData().


Member Function Documentation

bool mcRadical::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 mcExpContainer.

Definition at line 228 of file Radical.h.

References mcET_RADICAL.

mcRadical::mcDEFINE_MAIN_CLASS Radical  ,
mcExpContainer 
[private]
 


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

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

[ Top ]