RDKit: MemoryMappedFileReader.h Source File

| RDKit Open-source cheminformatics and machine learning.

Loading...
Searching...
No Matches
MemoryMappedFileReader.h
Go to the documentation of this file.
1//
2// Copyright (C) David Cosgrove 2025.
3//
4// @@ All Rights Reserved @@
5// This file is part of the RDKit.
6// The contents are covered by the terms of the BSD license
7// which is included in the file license.txt, found at the root
8// of the RDKit source tree.
9//
10
11#ifndef MEMORYMAPPEDFILEREADER_H
12#define MEMORYMAPPEDFILEREADER_H
13
14#include <string>
15
16#include <RDGeneral/export.h>
17
18 namespace RDKit::SynthonSpaceSearch::details
19{
20 struct RDKIT_SYNTHONSPACESEARCH_EXPORT MemoryMappedFileReader
21 {
22 MemoryMappedFileReader() = delete;
23 MemoryMappedFileReader(const std::string& filePath);
24 MemoryMappedFileReader(const MemoryMappedFileReader&) = delete;
25 MemoryMappedFileReader(MemoryMappedFileReader&& other);
26
27 ~MemoryMappedFileReader();
28
29 MemoryMappedFileReader& operator=(const MemoryMappedFileReader&) = delete;
30 MemoryMappedFileReader& operator=(MemoryMappedFileReader&& other);
31
32 char* d_mappedMemory{nullptr};
33 size_t d_size{0};
34 };
35} // namespace RDKit::SynthonSpaceSearch::details
36
37#endif // MEMORYMAPPEDFILEREADER_H
export.h
RDKIT_SYNTHONSPACESEARCH_EXPORT
#define RDKIT_SYNTHONSPACESEARCH_EXPORT
Definition export.h:577
RDKit::SynthonSpaceSearch::details
Definition MemoryMappedFileReader.h:19
RDKit::SynthonSpaceSearch::details::MemoryMappedFileReader::~MemoryMappedFileReader
~MemoryMappedFileReader()
RDKit::SynthonSpaceSearch::details::MemoryMappedFileReader::MemoryMappedFileReader
MemoryMappedFileReader()=delete
RDKit::SynthonSpaceSearch::details::MemoryMappedFileReader::operator=
MemoryMappedFileReader & operator=(MemoryMappedFileReader &&other)
RDKit::SynthonSpaceSearch::details::MemoryMappedFileReader::d_mappedMemory
char * d_mappedMemory
Definition MemoryMappedFileReader.h:32
RDKit::SynthonSpaceSearch::details::MemoryMappedFileReader::MemoryMappedFileReader
MemoryMappedFileReader(const std::string &filePath)
RDKit::SynthonSpaceSearch::details::MemoryMappedFileReader::d_size
size_t d_size
Definition MemoryMappedFileReader.h:33
RDKit::SynthonSpaceSearch::details::MemoryMappedFileReader::MemoryMappedFileReader
MemoryMappedFileReader(const MemoryMappedFileReader &)=delete
RDKit::SynthonSpaceSearch::details::MemoryMappedFileReader::MemoryMappedFileReader
MemoryMappedFileReader(MemoryMappedFileReader &&other)
RDKit::SynthonSpaceSearch::details::MemoryMappedFileReader::operator=
MemoryMappedFileReader & operator=(const MemoryMappedFileReader &)=delete