Debian Codegraph @

Source/Utilities/Container/CDefaultDynamicReferenceVector.h

raw
1 /*
2 * Copyright (C) 2013-2015, 2019 by the Konclude Developer Team.
3 *
4 * This file is part of the reasoning system Konclude.
5 * For details and support, see <http://konclude.com/>.
6 *
7 * Konclude is free software: you can redistribute it and/or modify
8 * it under the terms of version 3 of the GNU Lesser General Public
9 * License (LGPLv3) as published by the Free Software Foundation.
10 *
11 * Konclude is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU (Lesser) General Public License for more details.
15 *
16 * You should have received a copy of the GNU (Lesser) General Public
17 * License along with Konclude. If not, see <http://www.gnu.org/licenses/>.
18 *
19 */
20
21 #ifndef KONCLUDE_UTILITIES_CONTAINER_CDEFAULTDYNAMICREFERENCEVECTOR_H
22 #define KONCLUDE_UTILITIES_CONTAINER_CDEFAULTDYNAMICREFERENCEVECTOR_H
23
24 // Namespace includes
25 #include "ContainerSettings.h"
26
27 // Library includes
28
29 // Other includes
30 #include "CDynamicReferenceVector.h"
31
32 // Logger includes
33
34
35 namespace Konclude {
36
37 namespace Utilities {
38
39 namespace Container {
40
41
42 /*!
43 *
44 * \class CDefaultDynamicReferenceVectorBase
45 * \author Andreas Steigmiller
46 * \version 0.1
47 * \brief TODO
48 *
49 */
50 template<class T, class S, cint64 bucket2Size = 5>
51 class CDefaultDynamicReferenceVectorBase : public CDynamicReferenceVectorBase<T,S,bucket2Size> {
52 // public methods
53 public:
54 //! Constructor
55 inline CDefaultDynamicReferenceVectorBase(CContext* context = nullptr);
56
57 //! Destructor
58 inline ~CDefaultDynamicReferenceVectorBase();
59
60 inline const T getData(cint64 index);
61 inline const T getData(cint64 index, bool* localFlag);
62 inline const T getLocalData(cint64 index);
63 inline const T getReferenceData(cint64 index);
64
65
66
67 // protected methods
68 protected:
69
70 // protected variables
71 protected:
72
73 // private methods
74 private:
75
76 // private variables
77 private:
78 };
79
80
81
82 /*!
83 *
84 * \class CDefaultDynamicReferenceVector
85 * \author Andreas Steigmiller
86 * \version 0.1
87 * \brief TODO
88 *
89 */
90 template<class T, cint64 bucket2Size = 5>
91 class CDefaultDynamicReferenceVector : public CDefaultDynamicReferenceVectorBase<T,CDefaultDynamicReferenceVector<T,bucket2Size>,bucket2Size> {
92 // public methods
93 public:
94 // Constructor
95 inline CDefaultDynamicReferenceVector(CContext* context = nullptr) : CDefaultDynamicReferenceVectorBase<T,CDefaultDynamicReferenceVector<T,bucket2Size>,bucket2Size>(context) {};
96
97 //! Destructor
98 inline ~CDefaultDynamicReferenceVector() {};
99 };
100
101
102 }; // end namespace Container
103
104 }; // end namespace Utilities
105
106 }; // end namespace Konclude
107
108 #include "CDefaultDynamicReferenceVector.cpp"
109
110 #endif // KONCLUDE_UTILITIES_CONTAINER_CDEFAULTDYNAMICREFERENCEVECTOR_H