Debian Codegraph @

lib/dat/file-impl.hpp

raw symbols SCIP
1 /*
2 Copyright(C) 2011-2016 Brazil
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with this library; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18
19 #pragma once
20
21 #ifdef WIN32
22 # include <windows.h>
23 #endif // WIN32
24
25 #include "dat.hpp"cxx . . $ `<file>/lib/dat/dat.hpp`/
26
27 namespace grncxx . . $ grn/ {
28 namespace datcxx . . $ grn/dat/ {
29
30 class FileImplcxx . . $ grn/dat/FileImpl# {
31 public:
32 FileImplcxx . . $ grn/dat/FileImpl#FileImpl(49f6e7a06ebc5aa8).();
33 ~cxx . . $ grn/dat/FileImpl#`~FileImpl`(ced63f7c635d850d).FileImplcxx . . $ grn/dat/FileImpl#();
34
35 void createcxx . . $ grn/dat/FileImpl#create(7cafb6e0818eff3b).(const char *path, UInt64cxx . . $ grn/dat/UInt64# size);
36 void opencxx . . $ grn/dat/FileImpl#open(85c52e162fed56f9).(const char *path);
37 void closecxx . . $ grn/dat/FileImpl#close(49f6e7a06ebc5aa8).();
38
39 void *ptrcxx . . $ grn/dat/FileImpl#ptr(45a5c5ac6be858a8).() const {
40 return ptr_cxx . . $ grn/dat/FileImpl#ptr_.;
41 }
42 UInt64cxx . . $ grn/dat/UInt64# sizecxx . . $ grn/dat/FileImpl#size(fe4d2d262d4164a8).() const {
43 return size_cxx . . $ grn/dat/FileImpl#size_.;
44 }
45
46 void swapcxx . . $ grn/dat/FileImpl#swap(253e262f22470de5).(FileImplcxx . . $ grn/dat/FileImpl# *rhs);
47
48 void flushcxx . . $ grn/dat/FileImpl#flush(49f6e7a06ebc5aa8).();
49
50 private:
51 void *ptr_cxx . . $ grn/dat/FileImpl#ptr_.;
52 UInt64cxx . . $ grn/dat/UInt64# size_cxx . . $ grn/dat/FileImpl#size_.;
53
54 #ifdef WIN32
55 HANDLE file_;
56 HANDLE map_;
57 LPVOID addr_;
58 #else // WIN32
59 int fd_cxx . . $ grn/dat/FileImpl#fd_.;
60 void *addr_cxx . . $ grn/dat/FileImpl#addr_.;
61 ::size_tcxx . . $ size_t# length_cxx . . $ grn/dat/FileImpl#length_.;
62 #endif // WIN32
63
64 void create_cxx . . $ grn/dat/FileImpl#create_(7cafb6e0818eff3b).(const char *path, UInt64cxx . . $ grn/dat/UInt64# size);
65 void open_cxx . . $ grn/dat/FileImpl#open_(85c52e162fed56f9).(const char *path);
66
67 // Disallows copy and assignment.
68 FileImplcxx . . $ grn/dat/FileImpl#FileImpl(9a8f77dfdd87f7f9).(const FileImplcxx . . $ grn/dat/FileImpl# &);
69 FileImplcxx . . $ grn/dat/FileImpl# &operatorcxx . . $ grn/dat/FileImpl#`operator=`(2ce21597a1cc7014).=(const FileImplcxx . . $ grn/dat/FileImpl# &);
70 };
71
72 } // namespace dat
73 } // namespace grn