#include <vil_memory_chunk.h>
Image data block used by vil_image_view<T>.
Definition at line 14 of file vil_memory_chunk.h.
Public Member Functions | |
| vil_memory_chunk () | |
| Dflt ctor. | |
| vil_memory_chunk (unsigned long n, vil_pixel_format pixel_format) | |
| Allocate n bytes of memory. | |
| vil_memory_chunk (const vil_memory_chunk &) | |
| Copy ctor. | |
| vil_memory_chunk & | operator= (const vil_memory_chunk &) |
| Copy operator. | |
| virtual | ~vil_memory_chunk () |
| Destructor. | |
| void | ref () |
| Increment reference count. | |
| void | unref () |
| Decrement reference count. | |
| int | ref_count () const |
| Number of objects referring to this data. | |
| void * | data () |
| Pointer to first element of data. | |
| void * | const_data () const |
| Pointer to first element of data. | |
| vil_pixel_format | pixel_format () const |
| Indicate what format data is to be saved as in binary IO. | |
| unsigned long | size () const |
| Number of bytes allocated. | |
| void | set_size (unsigned long n, vil_pixel_format pixel_format) |
| Create space for n bytes. | |
Private Attributes | |
| void * | data_ |
| Data. | |
| unsigned long | size_ |
| Number of elements (bytes). | |
| vil_pixel_format | pixel_format_ |
| Indicate what format data is (used for binary IO). | |
| int | ref_count_ |
| Reference count. | |
|
|
Dflt ctor.
Definition at line 11 of file vil_memory_chunk.cxx. |
|
||||||||||||
|
Allocate n bytes of memory.
Definition at line 17 of file vil_memory_chunk.cxx. |
|
|
Copy ctor.
Definition at line 30 of file vil_memory_chunk.cxx. |
|
|
Destructor.
Definition at line 24 of file vil_memory_chunk.cxx. |
|
|
Pointer to first element of data.
Definition at line 60 of file vil_memory_chunk.h. |
|
|
Pointer to first element of data.
Definition at line 57 of file vil_memory_chunk.h. |
|
|
Copy operator.
Definition at line 37 of file vil_memory_chunk.cxx. |
|
|
Indicate what format data is to be saved as in binary IO.
Definition at line 63 of file vil_memory_chunk.h. |
|
|
Increment reference count.
Definition at line 48 of file vil_memory_chunk.h. |
|
|
Number of objects referring to this data.
Definition at line 54 of file vil_memory_chunk.h. |
|
||||||||||||
|
Create space for n bytes. pixel_format indicates what format to be used for binary IO Definition at line 60 of file vil_memory_chunk.cxx. |
|
|
Number of bytes allocated.
Definition at line 66 of file vil_memory_chunk.h. |
|
|
Decrement reference count.
Definition at line 47 of file vil_memory_chunk.cxx. |
|
|
Data.
Definition at line 17 of file vil_memory_chunk.h. |
|
|
Indicate what format data is (used for binary IO). Should always be a scalar type. Definition at line 24 of file vil_memory_chunk.h. |
|
|
Reference count.
Definition at line 27 of file vil_memory_chunk.h. |
|
|
Number of elements (bytes).
Definition at line 20 of file vil_memory_chunk.h. |
1.4.4