Changeset 180 for trunk


Ignore:
Timestamp:
Feb 16, 2006 8:23:04 PM (18 years ago)
Author:
cxsong
Message:

daily changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mesh/grid1d.h

    r176 r180  
    77
    88#include <vector>
    9 #include "rp_defs.h"
     9#include "util.h"
    1010
    1111class RpGrid1d {
     
    1717        RpGrid1d(const char* buf); // instantiate with byte stream
    1818
    19         //int type() { return _type; }
    20         //void type(int i) { _type = i; }
     19        void addPoint(double val);
    2120
    2221        // return number of points in grid
    23         int size() { return _points.size(); }
     22        int size() { return m_data.size(); }
    2423
    2524        // 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); }
    2726
    2827        // serialize data
    29         char * serialize();
     28        char * serialize(RP_ENCODE_ALG eflag=RP_NO_ENCODING,
     29                         RP_COMPRESSION cflag=RP_NO_COMPRESSION);
    3030        int deserialize(const char* buf);
    3131
     
    3838
    3939private:
    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
    4241};
    4342
Note: See TracChangeset for help on using the changeset viewer.