LeviLamina
Loading...
Searching...
No Matches
Table.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5namespace DataStructures {
6
7class Table {
8public:
9 // Table inner types declare
10 // clang-format off
11 struct Cell;
12 struct ColumnDescriptor;
13 struct FilterQuery;
14 struct Row;
15 struct SortQuery;
16 // clang-format on
17
18 // Table inner types define
19 enum class ColumnType : int {
20 Numeric = 0,
21 String = 1,
22 Binary = 2,
23 Pointer = 3,
24 };
25
26 struct Cell {
27 public:
28 // member variables
29 // NOLINTBEGIN
34 // NOLINTEND
35
36 public:
37 // prevent constructor by default
38 Cell& operator=(Cell const&);
39 Cell(Cell const&);
40 Cell();
41 };
42
44 public:
45 // member variables
46 // NOLINTBEGIN
49 // NOLINTEND
50
51 public:
52 // prevent constructor by default
53 ColumnDescriptor& operator=(ColumnDescriptor const&);
56 };
57
58 struct Row {
59 public:
60 // member variables
61 // NOLINTBEGIN
63 // NOLINTEND
64
65 public:
66 // prevent constructor by default
67 Row& operator=(Row const&);
68 Row(Row const&);
69 Row();
70 };
71
72 enum class FilterQueryType : int {
73 Equal = 0,
74 NotEqual = 1,
75 GreaterThan = 2,
76 GreaterThanEq = 3,
77 LessThan = 4,
78 LessThanEq = 5,
79 IsEmpty = 6,
80 NotEmpty = 7,
81 };
82
83 struct FilterQuery {
84 public:
85 // member variables
86 // NOLINTBEGIN
91 // NOLINTEND
92
93 public:
94 // prevent constructor by default
95 FilterQuery& operator=(FilterQuery const&);
98 };
99
100 enum class SortQueryType : int {
101 IncreasingOrder = 0,
102 DecreasingOrder = 1,
103 };
104
105 struct SortQuery {
106 public:
107 // member variables
108 // NOLINTBEGIN
111 // NOLINTEND
112
113 public:
114 // prevent constructor by default
115 SortQuery& operator=(SortQuery const&);
116 SortQuery(SortQuery const&);
117 SortQuery();
118 };
119
120public:
121 // member variables
122 // NOLINTBEGIN
125 // NOLINTEND
126
127public:
128 // prevent constructor by default
129 Table& operator=(Table const&);
130 Table(Table const&);
131 Table();
132};
133
134} // namespace DataStructures
Definition Table.h:7
Definition Table.h:26
Definition Table.h:58
Definition Table.h:105
Definition Alias.h:14