TPIE

11a2c2d
external_store_base.h
1 // -*- mode: c++; tab-width: 4; indent-tabs-mode: t; eval: (progn (c-set-style "stroustrup") (c-set-offset 'innamespace 0)); -*-
2 // vi:set ts=4 sts=4 sw=4 noet :
3 // Copyright 2014 The TPIE development team
4 //
5 // This file is part of TPIE.
6 //
7 // TPIE is free software: you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License as published by the
9 // Free Software Foundation, either version 3 of the License, or (at your
10 // option) any later version.
11 //
12 // TPIE is distributed in the hope that it will be useful, but WITHOUT ANY
13 // WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
15 // License for more details.
16 //
17 // You should have received a copy of the GNU Lesser General Public License
18 // along with TPIE. If not, see <http://www.gnu.org/licenses/>
19 
20 #ifndef _TPIE_BTREE_EXTERNAL_STORE_BASE_H_
21 #define _TPIE_BTREE_EXTERNAL_STORE_BASE_H_
22 
23 #include <tpie/tpie_export.h>
24 #include <tpie/portability.h>
25 #include <tpie/btree/base.h>
26 #include <tpie/tpie_assert.h>
27 #include <tpie/blocks/block_collection_cache.h>
28 
29 #include <cstddef>
30 
31 namespace tpie {
32 namespace bbits {
33 
34 class TPIE_EXPORT external_store_base {
35 public:
36 
40  external_store_base(const std::string & path);
41 
42  external_store_base(external_store_base&& other) noexcept;
43 
45 
47  external_store_base& operator=(const external_store_base&) = delete;
48 
49 protected:
50  blocks::block_handle m_root;
51  std::string m_path;
52  size_t m_height;
53  size_t m_size;
54  bool m_moved;
55 };
56 
57 } //namespace bbits
58 } //namespace tpie
59 #endif /*_TPIE_BTREE_EXTERNAL_STORE_BASE_H_*/
tpie_assert.h
portability.h
tpie::bbits::external_store_base
Definition: external_store_base.h:34
tpie::blocks::block_handle
Definition: block.h:32
tpie
Definition: access_type.h:26