WXP C++ Library Version 6.74.9
|
This class creates an integer array. More...
#include "../include/FloatArray.h"
Public Member Functions | |
int | init () |
int | init (int size) |
FloatArray () | |
FloatArray (int size) | |
FloatArray (const char *str) | |
~FloatArray () | |
FloatArray (const FloatArray &data) | |
FloatArray | operator= (const FloatArray &data) |
int | copy (const FloatArray &data) |
int | clear () |
int | expand (int size) |
int | setNum (int n) |
int | add (float rval) |
int | add1 (float rval) |
int | set (const char *str) |
int | set (int ind, float rval) |
int | get (int ind, float &rval) |
float | get (int ind) |
int | getNum () |
int | offset (int ind, float rval) |
int | print () |
Friends | |
class | Grid |
class | NetCdfFile |
This class creates an integer array.
FloatArray::FloatArray | ( | ) |
Constructor. Initializes the values.
References init().
FloatArray::FloatArray | ( | int | size | ) |
Constructor. Size the arrays.
References init().
FloatArray::FloatArray | ( | const char * | str | ) |
FloatArray::~FloatArray | ( | ) |
Destructor.
FloatArray::FloatArray | ( | const FloatArray & | data | ) |
int FloatArray::add | ( | float | rval | ) |
Adds a new point.
rval | Value to add |
Referenced by WXP::ImagePlot::draw(), WXP::RadPlot::draw(), and set().
|
inline |
Adds a value (no bounds check)
|
inline |
Clear the array
int FloatArray::copy | ( | const FloatArray & | data | ) |
Copy data.
epts | Strings class to copy from |
References init().
Referenced by FloatArray(), and operator=().
float FloatArray::get | ( | int | ind | ) |
Gets a specific point value from array.
ind | Index of value to get |
References WXP::Const::MISS.
int FloatArray::get | ( | int | ind, |
float & | rval | ||
) |
Gets a specific point value from array.
ind | Index of value to get |
rval | Output value |
Referenced by WXP::NidsImage::setThres().
|
inline |
Return the number of points
Referenced by WXP::NidsImage::setThres().
int FloatArray::init | ( | ) |
Initializes the values
Referenced by copy(), FloatArray(), FloatArray(), and FloatArray().
int FloatArray::init | ( | int | size | ) |
Initializes the values
int FloatArray::offset | ( | int | ind, |
float | rval | ||
) |
Offsets a specific point value in array.
ind | Index of value to set |
rval | Offset value |
FloatArray FloatArray::operator= | ( | const FloatArray & | data | ) |
int FloatArray::print | ( | ) |
Prints the values to standard output.
int FloatArray::set | ( | const char * | str | ) |
Sets the array values from a string
str | String of values, can be min-max/increment |
References add(), WXP::Strings::getFloat(), WXP::Strings::getNum(), and WXP::Strings::getString().
Referenced by FloatArray(), and WXP::NidsImage::setThres().
int FloatArray::set | ( | int | ind, |
float | rval | ||
) |
Sets a specific value in array.
ind | Index of value to set |
rval | New value |