[Classes] [Prev] [Next] [Methods]

CFloat

Methods Index

Heritage
Description
Usage
Protected Data Members
Public Methods
Constructor, Destructor, and Initializer Methods
Helper operators
State Methods

CFloat


Heritage

Superclass: None

Subclasses: CFloatRWC


Description

The CFloat class serves as an abstraction for floating point numbers. It is based on the approach taken by Rogue Wave's RWInteger. A minimal lightweight class, CFloat is most useful when used by its collectable subclass CFloatRWC.


Usage

This class may be extended to provide operator overloads for a more functional float class. However, the present implementation is most useful when it is converted to a natural float type.


Protected Data Members

float itsVal; The contained float value


Public Methods

Constructor, Destructor, and Initializer Methods

CFloat(float theVal = 0.0);
CFloat(const CFloat &theFloat);
CFloat & operator= (const CFloat &theFloat);
~CFloat();

Helper operators

RWBoolean operator== (const CFloat &theFloat) const;
operator float() const;

State Methods

float Get(void) const;
float Set(float theVal);


[Classes] [Prev] [Next] [Methods]

support@xvt.com


Visit our online help desk for tech support

Copyright © 2009, Providence Software Solutions Inc. All rights reserved.