#include <image_array.hh>
Inheritance diagram for oln::impl::image_array< T, Exact >:
Public Types | |
enum | { dim = impl_traits<Exact>::dim } |
typedef impl_traits< Exact >::point_type | point_type |
typedef impl_traits< Exact >::value_type | value_type |
typedef impl_traits< Exact >::size_type | size_type |
typedef Exact | exact_type |
typedef image_impl< Exact > | super_type |
typedef image_array< T, Exact > | self_type |
Public Member Functions | |
image_array (const size_type &s) | |
Constructor that allocates buffer_ to be an array of s value_type. | |
image_array () | |
image_array (const self_type &) | |
void | operator= (const self_type &) |
const T * | buffer () const |
Return a constant pointer to the data array. | |
T * | buffer () |
Return a point to the data array. | |
size_t | len () const |
Return the length of the data array. | |
size_t | len (const size_type &s) const |
Return the length of the data array. | |
Protected Member Functions | |
~image_array () | |
void | clone_to_ (exact_type *output_data) const |
Perform a deep copy of the current data array. This copy is pointed to by output_data. | |
Protected Attributes | |
T * | buffer_ |
Friends | |
class | image_impl< Exact > |
Definition at line 95 of file image_array.hh.
oln::impl::image_array< T, Exact >::image_array | ( | const size_type & | s | ) | [inline] |
Constructor that allocates buffer_ to be an array of s value_type.
Definition at line 119 of file image_array.hh.
00119 : super_type(s), buffer_(0) 00120 { 00121 allocate_data_(buffer_, len(s)); 00122 }
const T* oln::impl::image_array< T, Exact >::buffer | ( | ) | const [inline] |
Return a constant pointer to the data array.
Definition at line 138 of file image_array.hh.
Referenced by oln::impl::image_array3d< T >::border_reallocate_and_copy_(), oln::impl::image_array2d< T >::border_reallocate_and_copy_(), oln::impl::image_array1d< T >::border_reallocate_and_copy_(), and oln::impl::image_array< T, oln::impl::image_array2d< T > >::clone_to_().
T* oln::impl::image_array< T, Exact >::buffer | ( | ) | [inline] |
Return a point to the data array.
Definition at line 150 of file image_array.hh.
void oln::impl::image_array< T, Exact >::clone_to_ | ( | exact_type * | output_data | ) | const [inline, protected] |
Perform a deep copy of the current data array. This copy is pointed to by output_data.
Definition at line 188 of file image_array.hh.
00189 { 00190 precondition(output_data != 0); 00191 precondition(output_data->len() == len()); 00192 memcpy(output_data->buffer(), 00193 buffer_, 00194 len() * sizeof(T)); 00195 }