2 #ifndef vil_memory_chunk_h_ 3 #define vil_memory_chunk_h_ 10 #include <vcl_atomic_count.h> 12 # include <vcl_msvc_warnings.h> 81 #endif // vil_memory_chunk_h_ virtual void * data()
Pointer to first element of data.
std::size_t size() const
Number of bytes allocated.
virtual void * const_data() const
Pointer to first element of data.
long ref_count() const
Number of objects referring to this data.
vil_smart_ptr< vil_memory_chunk > vil_memory_chunk_sptr
virtual void set_size(unsigned long n, vil_pixel_format pixel_format)
Create space for n bytes.
std::size_t size_
Number of elements (bytes).
vil_memory_chunk & operator=(const vil_memory_chunk &)
Copy operator.
void ref()
Increment reference count.
Ref. counted block of data on the heap.
vcl_atomic_count ref_count_
Reference count.
Contains a templated smart pointer class.
vil_pixel_format pixel_format_
Indicate what format data is (used for binary IO).
vil_pixel_format pixel_format() const
Indicate what format data is to be saved as in binary IO.
virtual ~vil_memory_chunk()
Destructor.
void unref()
Decrement reference count.
vil_memory_chunk()
Dflt ctor.