WXP::FloatArray Class Reference
[Utility objects]

This class creates an integer array. More...

#include "../include/FloatArray.h"

List of all members.

Public Member Functions

int init ()
int init (int size)
 FloatArray ()
 FloatArray (int size)
 ~FloatArray ()
 FloatArray (const FloatArray &data)
FloatArray operator= (const FloatArray &data)
int copy (const FloatArray &data)
int clear ()
int expand (int size)
int add (float rval)
int add1 (float rval)
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 ()

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 (  ) 

Destructor.

FloatArray::FloatArray ( const FloatArray data  ) 

Copy constructor.

Parameters:
data Strings class to copy from

References copy().


Member Function Documentation

int FloatArray::add ( float  rval  ) 

Adds a new point.

Parameters:
rval Value to add
int FloatArray::copy ( const FloatArray data  ) 

Copy data.

Parameters:
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.

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:
rval Output value
int WXP::FloatArray::getNum (  )  [inline]

Return the number of points

int FloatArray::init ( int  size  ) 

Initializes the values

int FloatArray::init (  ) 

Initializes the values

Referenced by copy(), and FloatArray().

int FloatArray::offset ( int  ind,
float  rval 
)

Offsets a specific point value in array.

Parameters:
ind Index of value to set
rval Offset value
FloatArray FloatArray::operator= ( const FloatArray data  ) 

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:

Generated on 8 Jan 2010 for WXP C++ Library by  doxygen 1.6.1