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

plRealType Class Reference

The {plRealType} is used to create real types with a particular interval {[min,max[ }. More...

#include <plRealType.h>

Inheritance diagram for plRealType:

Inheritance graph
[legend]
Collaboration diagram for plRealType:

Collaboration graph
[legend]
List of all members.

Public Member Functions

plData first_value () const
 Returns the start value of the type.
bool next_value (plData &v)
 Returns {true} if {v } has a successor on the type and sets {v} to the successor otherwise it return {false}.
bool next_value (float &v)
 Returns {true} if {v } has a successor on the type and sets {v} to the successor otherwise it return {false}.
bool next_value (double &v)
 Returns {true} if {v } has a successor on the type and sets {v} to the successor otherwise it return {false}.
bool next_value (long double &v)
 Returns {true} if {v } has a successor on the type and sets {v} to the successor otherwise it return {false}.
bool next_value (int &v)
 Returns {true} if {v } has a successor on the type and sets {v} to the successor otherwise it return {false}.
 plRealType (plFloat min, plFloat max, unsigned int n_intervals)
 Creates a discretized real type with interval {[min,max[}.
 plRealType (plFloat min, plFloat max)
 Creates a non-discretized real type with interval {[min,max[}.
virtual ~plRealType ()
 Destructor of the type.

Protected Member Functions

void Output (ostream &out) const
 Writes the type at the output given by {out}.

Friends

class plUniform

Detailed Description

The {plRealType} is used to create real types with a particular interval {[min,max[ }.

Definition at line 39 of file plRealType.h.


Constructor & Destructor Documentation

plRealType::plRealType plFloat  min,
plFloat  max,
unsigned int  n_intervals
 

Creates a discretized real type with interval {[min,max[}.

The interval {[min,max[} is dicretized into {n } intervals. Kernels containing only discretized real or integer variables can use tabulation methods such as {tablulate} and {compile}.

plRealType::plRealType plFloat  min,
plFloat  max
 

Creates a non-discretized real type with interval {[min,max[}.

No tabulation methods (e.g.{tablulate} and {compile}) are allowed for kernels containing non-discretized real variables.


The documentation for this class was generated from the following file:
Generated on Fri Apr 1 10:59:37 2005 for ProBT by  doxygen 1.4.1