Scopira 20080306

scopira::basekit::base_directio_slice Class Reference

#include <directio.h>

Inheritance diagram for scopira::basekit::base_directio_slice:
scopira::basekit::directio_slice< T, DIM >

List of all members.

Public Member Functions

bool failed (void) const
size_t size_rows (void) const

Protected Member Functions

 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

scopira::tool::fileflow dm_file
scopira::tool::fileflow::offset_t dm_baseoffset
< size_t > 
const char * dm_elemname
size_t dm_dimenprod

Detailed Description

private concrete base class for directio_slice

Aleksander Demko

Member Function Documentation

bool scopira::basekit::base_directio_slice::failed ( void  ) const [inline]

Is the loader's file in a failed state?

Aleksander Demko

References scopira::tool::fileflow::failed().

bool scopira::basekit::base_directio_slice::open_file ( const std::string &  filename,
bool  readonly,
size_t  dimlen,
size_t  elemsize,
const char *  elemname 
) [protected]

Open the given DIO file. Returns true on success

Aleksander Demko
size_t scopira::basekit::base_directio_slice::size_rows ( void  ) const [inline]

Return the number of "rows" int he file, that is, varying the last dimension.

Aleksander Demko

References scopira::tool::basic_array< T >::size().

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