Debian Codegraph @

lib/dat/file.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 #include "dat.hpp"cxx . . $ `<file>/lib/dat/dat.hpp`/
22
23 namespace grncxx . . $ grn/ {
24 namespace datcxx . . $ grn/dat/ {
25
26 // This implementation class hides environment dependent codes required for
27 // memory-mapped I/O.
28 class FileImplcxx . . $ grn/dat/FileImpl#;
29
30 class GRN_DAT_APIcxx . . $ `lib/dat/dat.hpp:44:12`! Filecxx . . $ grn/dat/File# {
31 public:
32 Filecxx . . $ grn/dat/File#File(49f6e7a06ebc5aa8).();
33 ~cxx . . $ grn/dat/File#`~File`(ced63f7c635d850d).Filecxx . . $ grn/dat/File#();
34
35 // This function creates a file and maps the entire file to a certain range
36 // of the address space. Note that a file is truncated if exists.
37 void createcxx . . $ grn/dat/File#create(7cafb6e0818eff3b).(const char *path, UInt64cxx . . $ grn/dat/UInt64# size);
38
39 // This function opens a file and maps the entire file to a certain range of
40 // the address space.
41 void opencxx . . $ grn/dat/File#open(85c52e162fed56f9).(const char *path);
42 void closecxx . . $ grn/dat/File#close(49f6e7a06ebc5aa8).();
43
44 void *ptrcxx . . $ grn/dat/File#ptr(45a5c5ac6be858a8).() const;
45 UInt64cxx . . $ grn/dat/UInt64# sizecxx . . $ grn/dat/File#size(fe4d2d262d4164a8).() const;
46
47 void swapcxx . . $ grn/dat/File#swap(13ac73f2af8264d0).(Filecxx . . $ grn/dat/File# *rhs);
48
49 void flushcxx . . $ grn/dat/File#flush(49f6e7a06ebc5aa8).();
50
51 private:
52 FileImplcxx . . $ grn/dat/FileImpl# *impl_cxx . . $ grn/dat/File#impl_.;
53
54 // Disallows copy and assignment.
55 Filecxx . . $ grn/dat/File#File(6d544524f5f4d1ff).(const Filecxx . . $ grn/dat/File# &);
56 Filecxx . . $ grn/dat/File# &operatorcxx . . $ grn/dat/File#`operator=`(e9a51fe265927a24).=(const Filecxx . . $ grn/dat/File# &);
57 };
58
59 } // namespace dat
60 } // namespace grn