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

mcEmptyBox Class Reference

#include <EmptyBox.h>

Inheritance diagram for mcEmptyBox:

Inheritance graph
[legend]
Collaboration diagram for mcEmptyBox:

Collaboration graph
[legend]
List of all members.

Detailed Description

A simple box which warns the user that he left (or he hasn't still typed) something important in the polynomial he is editing.

Definition at line 161 of file EmptyBox.h.

Public Member Functions

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

Private Member Functions

 mcDEFINE_MAIN_CLASS (EmptyBox, mcDecoration)


Member Function Documentation

bool mcEmptyBox::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 mcDecoration.

Definition at line 170 of file EmptyBox.h.

References mcET_EMPTYBOX.

mcEmptyBox::mcDEFINE_MAIN_CLASS EmptyBox  ,
mcDecoration 
[private]
 


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

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

[ Top ]