WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
IntArray.h
1#ifndef _WINC_INTARRAY
2#define _WINC_INTARRAY
3
4#include <WXP/Const.h>
5
6namespace WXP {
7 class IntArray { /* Coordinate data structure */
8 int num;
9 int max;
10 int ind;
11 int *vals;
13 public:
14 int init();
15 int init( int size );
16 IntArray();
17 IntArray(int size);
18 ~IntArray();
19 IntArray( const IntArray &data );
20 IntArray operator=( const IntArray &data );
21 int copy( const IntArray &data );
23 inline int clear(){ num = 0; return 1; };
24 int expand( int size );
25 int add( int rval );
27 inline int add1( int rval ){
28 vals[num] = rval; num++; return 1; };
29 int set( int ind, int rval );
30 int get( int ind, int &rval );
31 int get( int ind );
33 inline int getNum() { return num; };
34 int offset( int ind, int rval );
35 int sum();
36 int product();
37 int print();
38 };
39}
40#endif
This class creates an integer array.
Definition IntArray.h:7
IntArray()
Definition IntArray.cc:39
int print()
Definition IntArray.cc:197
int add(int rval)
Definition IntArray.cc:120
int init()
Definition IntArray.cc:17
int expand(int size)
Definition IntArray.cc:98
int product()
Definition IntArray.cc:187
int get(int ind, int &rval)
Definition IntArray.cc:145
int sum()
Definition IntArray.cc:177
IntArray operator=(const IntArray &data)
Definition IntArray.cc:73
int copy(const IntArray &data)
Definition IntArray.cc:85
~IntArray()
Definition IntArray.cc:55
int offset(int ind, int rval)
Definition IntArray.cc:168
int add1(int rval)
Definition IntArray.h:27
int set(int ind, int rval)
Definition IntArray.cc:132
int getNum()
Definition IntArray.h:33
int clear()
Definition IntArray.h:23
All WXP classes fall under the WXP namespace.
Definition Angle.h:4