CNumber Class Reference
[Mathematical computations]

This class represents a constant floating point number. More...

#include <compute.h>

Inheritance diagram for CNumber:

CValue

List of all members.

Public Member Functions

 CNumber (float Number)
virtual CValueGetCopy () const
virtual float Compute (const CVector3f &Point) const
virtual CValueDerive (TYPE_VARIABLE Type) const
virtual void Print (std::ostream &o) const
virtual void Compile (std::vector< char > &v, int &i) const
virtual bool IsConstant (float *pNumber=NULL) const

Protected Member Functions

virtual bool IsMultAbsorbElem () const
virtual bool IsMultNeutralElem () const
virtual bool IsAddNeutralElem () const

Private Attributes

float m_Number


Detailed Description

This class represents a constant floating point number.

Definition at line 380 of file compute.h.


Member Function Documentation

virtual bool CNumber::IsConstant ( float *  pNumber = NULL  )  const [inline, virtual]

This function is used to know if the object can be evaluated to a constant.

Reimplemented from CValue.

Definition at line 394 of file compute.h.

References m_Number.

virtual bool CNumber::IsMultAbsorbElem (  )  const [inline, protected, virtual]

This function is used to know if the objet is the absorbing element of the multiplication, which is 0. It is overloaded only in the CNumber class.

Reimplemented from CValue.

Definition at line 408 of file compute.h.

References m_Number.

virtual bool CNumber::IsMultNeutralElem (  )  const [inline, protected, virtual]

This function is used to know if the objet is the neutral element of the multiplication, which is 1. It is overloaded only in the CNumber class.

Reimplemented from CValue.

Definition at line 415 of file compute.h.

References m_Number.

virtual bool CNumber::IsAddNeutralElem (  )  const [inline, protected, virtual]

This function is used to know if the objet is the neutral element of the addition, which is 0. It is overloaded only in the CNumber class.

Reimplemented from CValue.

Definition at line 422 of file compute.h.

References m_Number.


Member Data Documentation

float CNumber::m_Number [private]

A numerical constant.

Definition at line 425 of file compute.h.

Referenced by CNumber(), Compile(), Compute(), GetCopy(), IsAddNeutralElem(), IsConstant(), IsMultAbsorbElem(), IsMultNeutralElem(), and Print().


The documentation for this class was generated from the following files:
Generated on Fri Dec 5 03:20:33 2008 for Mathematical Ray-tracer by  doxygen 1.5.4