Developer documentation
Version 3.0.3-105-gd3941f44
MR::ImageIO::SparseLegacy Class Reference

#include "image_io/sparse.h"

Inheritance diagram for MR::ImageIO::SparseLegacy:
MR::ImageIO::Default MR::ImageIO::Base

Protected Member Functions

virtual void load (const Header &, size_t)
 
virtual void unload (const Header &)
 
uint64_t size () const
 
uint8_t * off2mem (const uint64_t offset) const
 
- Protected Member Functions inherited from MR::ImageIO::Default
virtual void load (const Header &, size_t)
 
virtual void unload (const Header &)
 
void map_files (const Header &)
 
void copy_to_mem (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
 

Protected Attributes

const std::string class_name
 
const size_t class_size
 
const File::Entry file
 
uint64_t data_end
 
std::unique_ptr< File::MMapmmap
 
- Protected Attributes inherited from MR::ImageIO::Default
vector< std::shared_ptr< File::MMap > > mmaps
 
int64_t bytes_per_segment
 
- Protected Attributes inherited from MR::ImageIO::Base
size_t segsize
 
vector< std::unique_ptr< uint8_t[]> > addresses
 
bool is_new
 
bool writable
 

Additional Inherited Members

- Public Member Functions inherited from MR::ImageIO::Default
 Default (const Header &header)
 
 Default (Default &&) noexcept=default
 
Defaultoperator= (Default &&)=delete
 
- Public Member Functions inherited from MR::ImageIO::Base
 Base (const Header &header)
 
 Base (Base &&) noexcept=default
 
 Base (const Base &)=delete
 
Baseoperator= (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)
 
- Public Attributes inherited from MR::ImageIO::Base
vector< File::Entryfiles
 

Detailed Description

Definition at line 67 of file sparse.h.

Member Function Documentation

◆ load()

virtual void MR::ImageIO::SparseLegacy::load ( const Header ,
size_t   
)
protectedvirtual

Reimplemented from MR::ImageIO::Default.

◆ off2mem()

uint8_t * MR::ImageIO::SparseLegacy::off2mem ( const uint64_t  offset) const
inlineprotected

Definition at line 120 of file sparse.h.

◆ size()

uint64_t MR::ImageIO::SparseLegacy::size ( ) const
inlineprotected

Definition at line 117 of file sparse.h.

◆ unload()

virtual void MR::ImageIO::SparseLegacy::unload ( const Header )
protectedvirtual

Reimplemented from MR::ImageIO::Default.

Member Data Documentation

◆ class_name

const std::string MR::ImageIO::SparseLegacy::class_name
protected

Definition at line 110 of file sparse.h.

◆ class_size

const size_t MR::ImageIO::SparseLegacy::class_size
protected

Definition at line 111 of file sparse.h.

◆ data_end

uint64_t MR::ImageIO::SparseLegacy::data_end
protected

Definition at line 113 of file sparse.h.

◆ file

const File::Entry MR::ImageIO::SparseLegacy::file
protected

Definition at line 112 of file sparse.h.

◆ mmap

std::unique_ptr<File::MMap> MR::ImageIO::SparseLegacy::mmap
protected

Definition at line 114 of file sparse.h.


The documentation for this class was generated from the following file: