XX CMake Package
Loading...
Searching...
No Matches
XXArray2D.h
Go to the documentation of this file.
1#ifndef XXArray2DH
2#define XXArray2DH
3
4#include <vector>
5
6#include "XXSize.h"
7
8namespace XX
9{
12
13 template <typename DataType>
14 class Array2D : public std::vector<std::vector<DataType>>
15 {
16 public:
17 Array2D(const Size& size, const DataType& initialValue = DataType());
18
19 public:
20 const Size& getSize() const;
21 void appendRow(const DataType& initialValue = DataType());
22 void removeRow(const uint16_t row);
23
24 private:
25 Size size;
26 };
27} // namespace XX
28
29#ifndef XXArray2DHPP
30#include "XXArray2D.hpp"
31#endif // NOT XXArray2DHPP
32
33#endif // NOT XXArray2DH
void appendRow(const DataType &initialValue=DataType())
void removeRow(const uint16_t row)
const Size & getSize() const
Array2D(const Size &size, const DataType &initialValue=DataType())
Definition XXPopulatedAbstract.h:11
simple size structure, to be used where QSize is not available
Definition XXSize.h:14