Developer documentation
Version 3.0.3-105-gd3941f44
MR::Image< ValueType >::Buffer Class Reference

#include "image.h"

Inheritance diagram for MR::Image< ValueType >::Buffer:
MR::Header

Public Member Functions

void * operator new (std::size_t size)
 
void * operator new[] (std::size_t size)
 
void operator delete (void *ptr)
 
void operator delete[] (void *ptr)
 
 Buffer ()
 
 Buffer (Header &H, bool read_write_if_existing=false)
 construct a Buffer object to access the data in the image specified More...
 
 Buffer (Buffer &&)=default
 
Bufferoperator= (const Buffer &)=delete
 
Bufferoperator= (Buffer &&)=default
 
 Buffer (const Buffer &b)
 
ValueType get_value (size_t offset) const
 
void set_value (size_t offset, ValueType val) const
 
void * get_data_pointer ()
 
ImageIO::Baseget_io () const
 

Public Attributes

std::unique_ptr< uint8_t[]> data_buffer
 

Protected Member Functions

void set_fetch_store_functions ()
 
- Protected Member Functions inherited from MR::Header
void acquire_io (Header &H)
 
void check (const Header &H) const
 
void realign_transform ()
 realign transform to match RAS coordinate system as closely as possible More...
 
void sanitise_voxel_sizes ()
 
void sanitise_transform ()
 
void sanitise_strides ()
 

Protected Attributes

std::function< ValueType(const void *, size_t, default_type, default_type)> fetch_func
 
std::function< void(ValueType, void *, size_t, default_type, default_type)> store_func
 
- Protected Attributes inherited from MR::Header
vector< Axis > axes_
 
transform_type transform_
 
std::string name_
 
KeyValues keyval_
 
const char * format_
 
std::unique_ptr< ImageIO::Baseio
 additional information relevant for images stored on file More...
 
DataType datatype_
 the type of the data as stored on file More...
 
default_type offset_
 the values by which to scale the intensities More...
 
default_type scale_
 
std::array< size_t, 3 > realign_perm_
 
std::array< bool, 3 > realign_flip_
 

Detailed Description

template<typename ValueType>
class MR::Image< ValueType >::Buffer

Definition at line 220 of file image.h.

Constructor & Destructor Documentation

◆ Buffer() [1/4]

template<typename ValueType >
MR::Image< ValueType >::Buffer::Buffer ( )
inline

Definition at line 222 of file image.h.

◆ Buffer() [2/4]

template<typename ValueType >
MR::Image< ValueType >::Buffer::Buffer ( Header H,
bool  read_write_if_existing = false 
)

construct a Buffer object to access the data in the image specified

◆ Buffer() [3/4]

template<typename ValueType >
MR::Image< ValueType >::Buffer::Buffer ( Buffer &&  )
default

◆ Buffer() [4/4]

template<typename ValueType >
MR::Image< ValueType >::Buffer::Buffer ( const Buffer b)
inline

Definition at line 228 of file image.h.

Member Function Documentation

◆ get_data_pointer()

template<typename ValueType >
void * MR::Image< ValueType >::Buffer::get_data_pointer ( )

◆ get_io()

template<typename ValueType >
ImageIO::Base * MR::Image< ValueType >::Buffer::get_io ( ) const
inline

Definition at line 245 of file image.h.

◆ get_value()

template<typename ValueType >
ValueType MR::Image< ValueType >::Buffer::get_value ( size_t  offset) const
inline

Definition at line 232 of file image.h.

◆ operator delete()

template<typename ValueType >
void MR::Image< ValueType >::Buffer::operator delete ( void *  ptr)
inline

Definition at line 220 of file image.h.

◆ operator delete[]()

template<typename ValueType >
void MR::Image< ValueType >::Buffer::operator delete[] ( void *  ptr)
inline

Definition at line 220 of file image.h.

◆ operator new()

template<typename ValueType >
void * MR::Image< ValueType >::Buffer::operator new ( std::size_t  size)
inline

Definition at line 220 of file image.h.

◆ operator new[]()

template<typename ValueType >
void * MR::Image< ValueType >::Buffer::operator new[] ( std::size_t  size)
inline

Definition at line 220 of file image.h.

◆ operator=() [1/2]

template<typename ValueType >
Buffer & MR::Image< ValueType >::Buffer::operator= ( Buffer &&  )
default

◆ operator=() [2/2]

template<typename ValueType >
Buffer & MR::Image< ValueType >::Buffer::operator= ( const Buffer )
delete

◆ set_fetch_store_functions()

template<typename ValueType >
void MR::Image< ValueType >::Buffer::set_fetch_store_functions ( )
inlineprotected

Definition at line 251 of file image.h.

◆ set_value()

template<typename ValueType >
void MR::Image< ValueType >::Buffer::set_value ( size_t  offset,
ValueType  val 
) const
inline

Definition at line 237 of file image.h.

Member Data Documentation

◆ data_buffer

template<typename ValueType >
std::unique_ptr<uint8_t[]> MR::Image< ValueType >::Buffer::data_buffer

Definition at line 242 of file image.h.

◆ fetch_func

template<typename ValueType >
std::function<ValueType(const void*,size_t,default_type,default_type)> MR::Image< ValueType >::Buffer::fetch_func
protected

Definition at line 248 of file image.h.

◆ store_func

template<typename ValueType >
std::function<void(ValueType,void*,size_t,default_type,default_type)> MR::Image< ValueType >::Buffer::store_func
protected

Definition at line 249 of file image.h.


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