Changeset 182 for trunk


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

updates

File:
1 edited

Legend:

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

    r176 r182  
    77//
    88//
    9 
    109#include <vector>
    11 #include "rp_defs.h"
     10#include "util.h"
    1211
    1312class RpGrid1d_reg {
     
    1514        // constructors
    1615        RpGrid1d_reg() :
    17                 _npoints(0),
    18                 _start(0.0),
    19                 _delta(0.0)
     16                m_npoints(0),
     17                m_start(0.0),
     18                m_delta(0.0)
    2019        { };
    2120
    2221        // does not expand to array
    2322        RpGrid1d_reg(int npts, double delta, double st) :
    24                 _npoints(npts),
    25                 _start(st),
    26                 _delta(delta)
     23                m_npoints(npts),
     24                m_start(st),
     25                m_delta(delta)
    2726        { };
    2827
    2928        RpGrid1d_reg(int npts, double delta):
    30                 _npoints(npts),
    31                 _start(0.0),
    32                 _delta(delta)
     29                m_npoints(npts),
     30                m_start(0.0),
     31                m_delta(delta)
    3332        { };
    3433
     
    3635        //RpGrid1d_reg(const RpGrid1d_reg& c);
    3736
    38         double delta() { return _delta; };
    39         void delta(double d) { _delta = d; };
    40         double start() { return _start; };
    41         void start(double s) { _start = s; };
    42         int points() { return _npoints; };
    43         void points(int n) { _npoints = n; };
     37        double delta() { return m_delta; };
     38        void delta(double d) { m_delta = d; };
     39        double start() { return m_start; };
     40        void start(double s) { m_start = s; };
     41        int points() { return m_npoints; };
     42        void points(int n) { m_npoints = n; };
    4443
    4544        // construct the object with byte stream containing number of points and delta value
     
    4746
    4847        // return number of points in grid
    49         int npoints() { return _npoints; }
     48        int npoints() { return m_npoints; }
    5049
    5150        // serialize object
     
    6463
    6564private:
    66         int _npoints;
    67         double _start;
    68         double _delta;
    69         vector<double> _data;
     65        int m_npoints;
     66        double m_start;
     67        double m_delta;
     68        vector<double> m_data;
    7069};
    7170
Note: See TracChangeset for help on using the changeset viewer.