Scopira 20080306

scopira::basekit::directio_slice< T, DIM > Class Template Reference

#include <directio.h>

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

List of all members.

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)

Detailed Description

template<class T, int DIM>
class scopira::basekit::directio_slice< T, DIM >

A incremental slice loader (loads only slices at a time from a DIO file.

Author:
Aleksander Demko

Member Function Documentation

template<class T , int DIM>
scopira::basekit::nindex<DIM> scopira::basekit::directio_slice< T, DIM >::dimen ( void  ) const [inline]

Returns the dimen of the whole thing, as an index.

Author:
Aleksander Demko

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

template<class T , int DIM>
bool scopira::basekit::directio_slice< T, DIM >::load_slice ( size_t  r,
scopira::basekit::narray< T, DIM-1 > &  out 
) [inline]
template<class T , int DIM>
bool scopira::basekit::directio_slice< T, DIM >::open_file ( const std::string &  filename,
bool  readonly 
) [inline]

Open the given DIO file. Returns true on success

Author:
Aleksander Demko
template<class T , int DIM>
bool scopira::basekit::directio_slice< T, DIM >::save_slice ( size_t  r,
scopira::basekit::narray< T, DIM-1 > &  out 
) [inline]
template<class T , int DIM>
scopira::basekit::nindex<DIM-1> scopira::basekit::directio_slice< T, DIM >::slice_dimen ( void  ) const [inline]

Returns the dimen as an index.

Author:
Aleksander Demko

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


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