#include "image_io/scratch.h"
Public Member Functions | |
Scratch (const Header &header) | |
virtual bool | is_file_backed () const |
Public Member Functions inherited from MR::ImageIO::Base | |
Base (const Header &header) | |
Base (Base &&) noexcept=default | |
Base (const Base &)=delete | |
Base & | operator= (const Base &)=delete |
virtual | ~Base () |
virtual bool | is_file_backed () const |
void | open (const Header &header, size_t buffer_size=0) |
void | close (const Header &header) |
bool | is_image_new () const |
bool | is_image_readwrite () const |
void | set_readwrite (bool readwrite) |
void | set_image_is_new (bool image_is_new) |
void | set_readwrite_if_existing (bool readwrite) |
uint8_t * | segment (size_t n) const |
size_t | nsegments () const |
size_t | segment_size () const |
void | merge (const Base &B) |
Protected Member Functions | |
virtual void | load (const Header &, size_t) |
virtual void | unload (const Header &) |
Protected Member Functions inherited from MR::ImageIO::Base | |
void | check () const |
virtual void | load (const Header &header, size_t buffer_size)=0 |
virtual void | unload (const Header &header)=0 |
Additional Inherited Members | |
Public Attributes inherited from MR::ImageIO::Base | |
vector< File::Entry > | files |
Protected Attributes inherited from MR::ImageIO::Base | |
size_t | segsize |
vector< std::unique_ptr< uint8_t[]> > | addresses |
bool | is_new |
bool | writable |
|
inline |
|
virtual |
Reimplemented from MR::ImageIO::Base.
|
protectedvirtual |
Implements MR::ImageIO::Base.
|
protectedvirtual |
Implements MR::ImageIO::Base.