WXP::IntArray Class Reference
[Utility objects]

This class creates an integer array. More...

#include "../include/IntArray.h"

List of all members.

Public Member Functions

int init ()
int init (int size)
 IntArray ()
 IntArray (int size)
 ~IntArray ()
 IntArray (const IntArray &data)
IntArray operator= (const IntArray &data)
int copy (const IntArray &data)
int clear ()
int expand (int size)
int add (int rval)
int add1 (int rval)
int set (int ind, int rval)
int get (int ind, int &rval)
int get (int ind)
int getNum ()
int offset (int ind, int rval)
int print ()

Detailed Description

This class creates an integer array.

Author:
Dan Vietor

Constructor & Destructor Documentation

IntArray::IntArray (  ) 

Constructor. Initializes the values.

References init().

IntArray::IntArray ( int  size  ) 

Constructor. Size the arrays.

References init().

IntArray::~IntArray (  ) 

Destructor.

IntArray::IntArray ( const IntArray data  ) 

Copy constructor.

Parameters:
data Strings class to copy from

References copy().


Member Function Documentation

int IntArray::add ( int  rval  ) 

Adds a new point.

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

Copy data.

Parameters:
epts Strings class to copy from

References init().

Referenced by IntArray(), and operator=().

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

Return the number of points

int IntArray::init ( int  size  ) 

Initializes the values

int IntArray::init (  ) 

Initializes the values

Referenced by copy(), and IntArray().

int IntArray::offset ( int  ind,
int  rval 
)

Offsets a specific point value in array.

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

Assignment operator. Used to overload copying

Parameters:
data String class to copy from

References copy().

int IntArray::print (  ) 

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:

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