43 std::vector<BVector>&
data) :
44 grida_(ga), gridb_(gb), gridc_(gc) {
46 stride1_ = gridb_.nodes() * gridc_.nodes();
47 stride2_ = gridc_.nodes();
55 int index(
int i,
int j,
int k)
const {
return i*stride1_ + j*stride2_ +
k;}
60 return ValueType(data_[i][0],data_[i][1],data_[i][2]);
64 return (*
this)(
index(i,j,k));
const Grid1D & grida() const
int index(int i, int j, int k) const
Basic3DVector< Scalar > ValueType
ValueType operator()(int i) const
std::vector< BVector > Container
const Grid1D & gridc() const
ValueType
Type of the value held by a Value object.
const Container & data() const
ValueType operator()(int i, int j, int k) const
float const & operator[](int i) const
Grid3D(const Grid1D &ga, const Grid1D &gb, const Grid1D &gc, std::vector< BVector > &data)
BStorageArray(float x, float y, float z)
const Grid1D & gridb() const