#include <plRealType.h>
Inheritance diagram for plRealType:


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 |
Definition at line 39 of file plRealType.h.
|
||||||||||||||||
|
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}. |
|
||||||||||||
|
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. |
1.4.1