| # | Line 97 | Line 97 | class Grid3D { | |
|---|---|---|
| 97 | } | |
| 98 | private: | |
| 99 | ||
| 100 | < | int isValidGrid(unsigned int i, unsigned int j, unsigned int k) { |
| 100 | > | int isValidGrid(unsigned int i, unsigned int j, unsigned int k) const { |
| 101 | int index = i * dim2_*dim3_ + j * dim3_ + k; | |
| 102 | return index < data_.size() ? index : -1; | |
| 103 | }; | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |