delpi
0.0.1
DElta-complete LP solver
Toggle main menu visibility
Loading...
Searching...
No Matches
MappedFileSource.h
Go to the documentation of this file.
1
8
#pragma once
9
10
#include <boost/interprocess/file_mapping.hpp>
11
#include <boost/interprocess/mapped_region.hpp>
12
13
#include "
delpi/parser/BufferLineSource.h
"
14
15
namespace
delpi
{
16
23
class
MappedFileSource
:
public
BufferLineSource {
24
public
:
30
explicit
MappedFileSource
(
const
char
*
const
filename);
31
32
private
:
33
const
boost::interprocess::file_mapping
34
file_mapping_
;
35
boost::interprocess::mapped_region
36
region_
;
37
};
38
39
}
// namespace delpi
BufferLineSource.h
delpi::MappedFileSource::MappedFileSource
MappedFileSource(const char *const filename)
Construct a MappedFileSource for the given file.
Definition
MappedFileSource.cpp:11
delpi::MappedFileSource::file_mapping_
const boost::interprocess::file_mapping file_mapping_
The file mapping object that manages the mapping of the file into memory.
Definition
MappedFileSource.h:34
delpi::MappedFileSource::region_
boost::interprocess::mapped_region region_
The mapped region object that provides access to the mapped file content.
Definition
MappedFileSource.h:36
delpi
Global namespace for the delpi library.
delpi
parser
MappedFileSource.h
Generated by
1.17.0