|
|
delpi
0.0.1
DElta-complete LP solver
|
A memory-mapped file source for efficiently reading files line by line. More...
#include <MappedFileSource.h>
Public Member Functions | |
| MappedFileSource (const char *const filename) | |
| Construct a MappedFileSource for the given file. | |
| Public Member Functions inherited from delpi::BufferLineSource | |
| bool | nextLine (std::string_view &out) |
| Retrieve the next line from the buffer. | |
Additional Inherited Members | |
| Protected Member Functions inherited from delpi::BufferLineSource | |
| void | initialize (const char *data, std::size_t length) |
| Force a reinitialization of the object, setting cur_ and end_ to the new values. | |
A memory-mapped file source for efficiently reading files line by line.
MappedFileSource uses memory-mapped file techniques to handle files, allowing for high-performance sequential file reading.
Definition at line 23 of file MappedFileSource.h.
|
explicit |
Construct a MappedFileSource for the given file.
| filename | The path to the file to be memory-mapped and read. |
| boost::interprocess::interprocess_exception | if the file cannot be mapped. |
Definition at line 11 of file MappedFileSource.cpp.