WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
FloatArray.h
1#ifndef _WINC_FLOATARRAY
2#define _WINC_FLOATARRAY
3
4#include <WXP/Const.h>
5
6namespace WXP {
7 class FloatArray { /* Coordinate data structure */
8 int num;
9 int max;
10 int ind;
11 float *vals;
13 public:
14 int init();
15 int init( int size );
16 FloatArray();
17 FloatArray(int size);
18 FloatArray(const char *str);
20 FloatArray( const FloatArray &data );
21 FloatArray operator=( const FloatArray &data );
22 int copy( const FloatArray &data );
24 inline int clear(){ num = 0; return 1; };
25 int expand( int size );
26 inline int setNum(int n){ num = n; return 1; };
27 int add( float rval );
29 inline int add1( float rval ){
30 vals[num] = rval; num++; return 1; };
31 int set( const char *str );
32 int set( int ind, float rval );
33 int get( int ind, float &rval );
34 float get( int ind );
36 inline int getNum() { return num; };
37 int offset( int ind, float rval );
38 int print();
39
40 friend class Grid;
41 friend class NetCdfFile;
42 };
43}
44#endif
This class creates an integer array.
Definition FloatArray.h:7
int add1(float rval)
Definition FloatArray.h:29
FloatArray operator=(const FloatArray &data)
Definition FloatArray.cc:82
int offset(int ind, float rval)
Definition FloatArray.cc:195
int print()
Definition FloatArray.cc:204
int get(int ind, float &rval)
Definition FloatArray.cc:172
~FloatArray()
Definition FloatArray.cc:64
int init()
Definition FloatArray.cc:18
FloatArray()
Definition FloatArray.cc:40
int add(float rval)
Definition FloatArray.cc:127
int getNum()
Definition FloatArray.h:36
int clear()
Definition FloatArray.h:24
int copy(const FloatArray &data)
Definition FloatArray.cc:94
int set(const char *str)
Definition FloatArray.cc:138
This class defines a grid.
Definition Grid.h:20
This class is an access layer to netCDF files.
Definition NetCdfFile.h:11
All WXP classes fall under the WXP namespace.
Definition Angle.h:4