WXP::FloatArray Class Reference
[Utility objects]
This class creates an integer array.
More...
#include "../include/FloatArray.h"
List of all members.
Detailed Description
This class creates an integer array.
- Author:
- Dan Vietor
Constructor & Destructor Documentation
| FloatArray::FloatArray |
( |
|
) |
|
Constructor. Initializes the values.
References init().
| FloatArray::FloatArray |
( |
int |
size |
) |
|
Constructor. Size the arrays.
References init().
| FloatArray::~FloatArray |
( |
|
) |
|
| FloatArray::FloatArray |
( |
const FloatArray & |
data |
) |
|
Copy constructor.
- Parameters:
-
References copy().
Member Function Documentation
| int FloatArray::add |
( |
float |
rval |
) |
|
Adds a new point.
- Parameters:
-
| float FloatArray::get |
( |
int |
ind |
) |
|
Gets a specific point value from array.
- Parameters:
-
| ind | Index of value to get |
- Returns:
- Output value
| int FloatArray::get |
( |
int |
ind, |
|
|
float & |
rval | |
|
) |
| | |
Gets a specific point value from array.
- Parameters:
-
| ind | Index of value to get |
- Return values:
-
| int WXP::FloatArray::getNum |
( |
|
) |
[inline] |
Return the number of points
| int FloatArray::init |
( |
int |
size |
) |
|
| int FloatArray::offset |
( |
int |
ind, |
|
|
float |
rval | |
|
) |
| | |
Offsets a specific point value in array.
- Parameters:
-
| ind | Index of value to set |
| rval | Offset value |
Assignment operator. Used to overload copying
- Parameters:
-
| data | String class to copy from |
References copy().
| int FloatArray::print |
( |
|
) |
|
Prints the values to standard output.
| int FloatArray::set |
( |
int |
ind, |
|
|
float |
rval | |
|
) |
| | |
Sets a specific value in array.
- Parameters:
-
| ind | Index of value to set |
| rval | New value |
The documentation for this class was generated from the following files: