Scopira
20080306
|
#include <directio.h>
Public Member Functions | |
directio_slice (void) | |
ctor | |
bool | open_file (const std::string &filename, bool readonly) |
scopira::basekit::nindex< DIM > | dimen (void) const |
scopira::basekit::nindex< DIM-1 > | slice_dimen (void) const |
bool | load_slice (size_t r, scopira::basekit::narray< T, DIM-1 > &out) |
bool | save_slice (size_t r, scopira::basekit::narray< T, DIM-1 > &out) |
Public Member Functions inherited from scopira::basekit::base_directio_slice | |
bool | failed (void) const |
size_t | size_rows (void) const |
Additional Inherited Members | |
Protected Member Functions inherited from scopira::basekit::base_directio_slice | |
base_directio_slice (void) | |
default ctor | |
bool | open_file (const std::string &filename, bool readonly, size_t dimlen, size_t elemsize, const char *elemname) |
void | verify_dimen (const char *elemname, size_t subprod) |
size_t | seek_slice (size_t r, size_t elemsize) |
Protected Attributes inherited from scopira::basekit::base_directio_slice | |
scopira::tool::fileflow | dm_file |
scopira::tool::fileflow::offset_t | dm_baseoffset |
scopira::tool::basic_array< size_t > | dm_dimen |
const char * | dm_elemname |
size_t | dm_dimenprod |
A incremental slice loader (loads only slices at a time from a DIO file.
|
inline |
Returns the dimen of the whole thing, as an index.
|
inline |
Load a slice from the file (0.. size_rows()-1)
References scopira::basekit::narray< T, DIM >::c_array(), and scopira::basekit::narray< T, DIM >::dimen().
|
inline |
Open the given DIO file. Returns true on success
References scopira::basekit::base_directio_slice::open_file().
|
inline |
Save a slice from the file (0.. size_rows()-1)
References scopira::basekit::narray< T, DIM >::c_array(), and scopira::basekit::narray< T, DIM >::dimen().
|
inline |
Returns the dimen as an index.