WXP::IntArray Class Reference
[Utility objects]
This class creates an integer array.
More...
#include "../include/IntArray.h"
List of all members.
Detailed Description
This class creates an integer array.
- Author:
- Dan Vietor
Constructor & Destructor Documentation
Constructor. Initializes the values.
References init().
| IntArray::IntArray |
( |
int |
size |
) |
|
Constructor. Size the arrays.
References init().
| IntArray::IntArray |
( |
const IntArray & |
data |
) |
|
Copy constructor.
- Parameters:
-
References copy().
Member Function Documentation
| int IntArray::add |
( |
int |
rval |
) |
|
Adds a new point.
- Parameters:
-
| int IntArray::copy |
( |
const IntArray & |
data |
) |
|
| int IntArray::get |
( |
int |
ind |
) |
|
Gets a specific point value from array.
- Parameters:
-
| ind | Index of value to get |
- Returns:
- Output value
| int IntArray::get |
( |
int |
ind, |
|
|
int & |
rval | |
|
) |
| | |
Gets a specific point value from array.
- Parameters:
-
| ind | Index of value to get |
- Return values:
-
| int WXP::IntArray::getNum |
( |
|
) |
[inline] |
Return the number of points
| int IntArray::init |
( |
int |
size |
) |
|
| int IntArray::offset |
( |
int |
ind, |
|
|
int |
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().
Prints the values to standard output.
| int IntArray::set |
( |
int |
ind, |
|
|
int |
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: