molecular
Public Member Functions | List of all members
molecular::util::FileReadStorage Class Reference

A derived ReadStorage for reading regular files. More...

#include <FileStreamStorage.h>

Inheritance diagram for molecular::util::FileReadStorage:
molecular::util::ReadStorage

Public Member Functions

 FileReadStorage (const FileReadStorage &that)=delete
 Deleted copy constructor. More...
 
 FileReadStorage (FileReadStorage &&that) noexcept
 Move constructor. More...
 
 FileReadStorage (const char *filename)
 Construct from file name. More...
 
 FileReadStorage (const std::string &filename)
 Construct from file name (std::string) More...
 
 ~FileReadStorage ()
 Destructor. More...
 
FileReadStorageoperator= (const FileReadStorage &that)=delete
 Deleted copy assignment. More...
 
FileReadStorageoperator= (FileReadStorage &&that)
 Move assignment. More...
 
size_t Read (void *ptr, const size_t size) override
 
void Skip (size_t size)
 
bool EndOfData () override
 
size_t GetSize ()
 
size_t GetCursor ()
 
- Public Member Functions inherited from molecular::util::ReadStorage
virtual ~ReadStorage ()
 

Detailed Description

A derived ReadStorage for reading regular files.

Constructor & Destructor Documentation

molecular::util::FileReadStorage::FileReadStorage ( const FileReadStorage that)
delete

Deleted copy constructor.

molecular::util::FileReadStorage::FileReadStorage ( FileReadStorage &&  that)
noexcept

Move constructor.

molecular::util::FileReadStorage::FileReadStorage ( const char *  filename)
explicit

Construct from file name.

molecular::util::FileReadStorage::FileReadStorage ( const std::string &  filename)
explicit

Construct from file name (std::string)

molecular::util::FileReadStorage::~FileReadStorage ( )

Destructor.

Member Function Documentation

bool molecular::util::FileReadStorage::EndOfData ( )
inlineoverridevirtual
size_t molecular::util::FileReadStorage::GetCursor ( )
inline
size_t molecular::util::FileReadStorage::GetSize ( )
inline
FileReadStorage& molecular::util::FileReadStorage::operator= ( const FileReadStorage that)
delete

Deleted copy assignment.

FileReadStorage & molecular::util::FileReadStorage::operator= ( FileReadStorage &&  that)

Move assignment.

size_t molecular::util::FileReadStorage::Read ( void *  ptr,
const size_t  size 
)
inlineoverridevirtual
void molecular::util::FileReadStorage::Skip ( size_t  size)
inline

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