24 # include <vcl_msvc_warnings.h> 28 # define RANGECHECK(i,j,k) ((void)0) 31 # define RANGECHECK(i,j,k) assert(((size_type)(i) < row1_count_) && \ 32 ((size_type)(j) < row2_count_) && ((size_type)(k) < row3_count_)) 99 const_iterator j = that.
begin();
100 while (i != this->
end())
145 void set(T
const* array);
146 void get(T* array)
const;
147 void fill(T
const& value);
159 template <
class T> std::ostream&
operator<<(std::ostream&,
162 template <
class T> std::istream&
operator>>(std::istream&,
165 #define VBL_ARRAY_3D_INSTANTIATE \ 166 extern "please include vbl/vbl_array_3d.hxx instead" 167 #define VBL_ARRAY_3D_IO_INSTANTIATE \ 168 extern "please include vbl/vbl_array_3d.hxx instead" 170 #endif // vbl_array_3dh T *const * operator[](size_type i1)
size_type capacity() const
void resize(size_type n1, size_type n2, size_type n3)
std::istream & operator>>(std::istream &, vbl_array_3d< T > &)
element_type *** element_
vbl_array_3d< T > & operator=(vbl_array_3d< T > const &that)
T const & const_reference
std::ostream & operator<<(std::ostream &, vbl_array_3d< T >const &)
size_type get_row3_count() const
vbl_array_3d(size_type n1, size_type n2, size_type n3, T const *init_values)
vbl_array_3d(size_type n1, size_type n2, size_type n3)
const_iterator end() const
void set(T const *array)
Fill from static array of Ts.
vbl_array_3d(size_type n1, size_type n2, size_type n3, T const &fill_value)
T const * data_block() const
Templated 3-dimensional array.
#define RANGECHECK(i, j, k)
vbl_array_3d(vbl_array_3d< T > const &that)
size_type get_row2_count() const
void fill(T const &value)
Fill with constant.
void construct(size_type, size_type, size_type)
Constructor utility.
const_iterator begin() const
bool operator==(vbl_array_3d< T > const &that) const
Comparison.
T const *const * operator[](size_type i1) const
size_type get_row1_count() const
void get(T *array) const
Get into array.
reference operator()(size_type i1, size_type i2, size_type i3)