- Timestamp:
- Feb 16, 2006 8:23:04 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mesh/grid1d.h
r176 r180 7 7 8 8 #include <vector> 9 #include " rp_defs.h"9 #include "util.h" 10 10 11 11 class RpGrid1d { … … 17 17 RpGrid1d(const char* buf); // instantiate with byte stream 18 18 19 //int type() { return _type; } 20 //void type(int i) { _type = i; } 19 void addPoint(double val); 21 20 22 21 // return number of points in grid 23 int size() { return _points.size(); }22 int size() { return m_data.size(); } 24 23 25 24 // change the size of the grid after grid is constructed 26 void resize(int size) { _points.resize(size); }25 void resize(int size) { m_data.resize(size); } 27 26 28 27 // serialize data 29 char * serialize(); 28 char * serialize(RP_ENCODE_ALG eflag=RP_NO_ENCODING, 29 RP_COMPRESSION cflag=RP_NO_COMPRESSION); 30 30 int deserialize(const char* buf); 31 31 … … 38 38 39 39 private: 40 int _type; // type of array elements: int, float, double, etc. 41 vector<double> _points; // array of doubles 40 vector<double> m_data; // array of doubles 42 41 }; 43 42
Note: See TracChangeset
for help on using the changeset viewer.