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

plSparseType Class Reference

Defines a type consisting in a set of dispersed values without constant distance between values. More...

#include <plSparseType.h>

Inheritance diagram for plSparseType:

Inheritance graph
[legend]
Collaboration diagram for plSparseType:

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 and sets {v} to the successor otherwise it return {false}.
bool next_value (float &v)
 Returns {true} if {v } has a successor and sets {v} to the successor otherwise it return {false}.
bool next_value (double &v)
 Returns {true} if {v } has a successor and sets {v} to the successor otherwise it return {false}.
bool next_value (long double &v)
 Returns {true} if {v } has a successor and sets {v} to the successor otherwise it return {false}.
bool next_value (int &v)
 Returns {true} if {v } has a successor and sets {v} to the successor otherwise it return {false}.
 plSparseType (int nvalues, plFloat *values)
 Defines a sparse type from {plFloat} array.
 plSparseType (const vector< plFloat > &values)
 Defines a sparse type from STL vector.

Protected Member Functions

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

Detailed Description

Defines a type consisting in a set of dispersed values without constant distance between values.

Definition at line 33 of file plSparseType.h.


Constructor & Destructor Documentation

plSparseType::plSparseType int  nvalues,
plFloat *  values
 

Defines a sparse type from {plFloat} array.

The number of values into the type is given by the first parametter {nvalues}. While the constructor does not ask for a sorted vector it is strongly recomended to use a sorted array, this because it can be particularly avantageus when using optimization techniques.

plSparseType::plSparseType const vector< plFloat > &  values  ) 
 

Defines a sparse type from STL vector.

The number of values in the type is given by the vector size. While the constructor does not ask for a sorted vector it is strongly recomended to use a sorted vector, this because it can be particularly avantageus when using optimization techniques.


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