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 enum class FilterQueryType : int {
27 Equal = 0,
28 NotEqual = 1,
29 GreaterThan = 2,
30 GreaterThanEq = 3,
31 LessThan = 4,
32 LessThanEq = 5,
33 IsEmpty = 6,
34 NotEmpty = 7,
35 };
36
37 enum class SortQueryType : int {
38 IncreasingOrder = 0,
39 DecreasingOrder = 1,
40 };
41
42 struct Cell {
43 public:
44 // member variables
45 // NOLINTBEGIN
50 // NOLINTEND
51
52 public:
53 // prevent constructor by default
54 Cell& operator=(Cell const&);
55 Cell(Cell const&);
56 Cell();
57 };
58
59 struct ColumnDescriptor {
60 public:
61 // member variables
62 // NOLINTBEGIN
65 // NOLINTEND
66
67 public:
68 // prevent constructor by default
69 ColumnDescriptor& operator=(ColumnDescriptor const&);
70 ColumnDescriptor(ColumnDescriptor const&);
71 ColumnDescriptor();
72 };
73
74 struct FilterQuery {
75 public:
76 // member variables
77 // NOLINTBEGIN
82 // NOLINTEND
83
84 public:
85 // prevent constructor by default
86 FilterQuery& operator=(FilterQuery const&);
87 FilterQuery(FilterQuery const&);
88 FilterQuery();
89 };
90
91 struct Row {
92 public:
93 // member variables
94 // NOLINTBEGIN
96 // NOLINTEND
97
98 public:
99 // prevent constructor by default
100 Row& operator=(Row const&);
101 Row(Row const&);
102 Row();
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:42
Definition Table.h:91
Definition Table.h:105
Definition Alias.h:14