27 #ifndef VALUE_HOLDER_H
28 #define VALUE_HOLDER_H
38 namespace value_holder_test {
45 #define USE_ROW_ORDER 1
49 namespace ost {
namespace img {
namespace image_state {
99 std::size_t MemSize()
const;
112 return data_[i.
u*height_depth_ + i.
v*depth_ +i.
w];
115 return data_[i.
w*width_height_ + i.
v*height_ +i.
u];
128 return data_[i.
u*height_depth_ + i.
v*depth_ +i.
w];
131 return data_[i.
w*width_height_ + i.
v*height_ +i.
u];
147 std::size_t height_depth_;
150 std::size_t width_height_;
154 std::vector<V> data_;
VPtr GetData()
return pointer to raw data
const V & Value(const Index &i) const
return direct ro access to the value without boundary check
V & Value(const Index &i)
return direct r/w access to the value without boundary check
class encapsulating 1D to 3D size
void ReleaseAndReconstruct()
ConstVPtr GetData() const
const version of GetData()