34 lines
No EOL
616 B
C++
34 lines
No EOL
616 B
C++
#pragma once
|
|
|
|
#include "Allocators.hpp"
|
|
#include "Utils.hpp"
|
|
|
|
class TestClass {
|
|
tp::ualni val2 = 0;
|
|
tp::ualni val1;
|
|
|
|
public:
|
|
explicit TestClass(tp::ualni val) :
|
|
val1(val) {}
|
|
|
|
template <class Saver>
|
|
void write(Saver& file) const {
|
|
file.write(val1);
|
|
}
|
|
|
|
template <class Loader>
|
|
void read(Loader& file) {
|
|
file.read(val1);
|
|
}
|
|
|
|
[[nodiscard]] bool operator==(const TestClass& in) const { return in.val1 == val1; }
|
|
|
|
[[nodiscard]] tp::ualni getVal() const { return val1; }
|
|
void setVal(tp::ualni val) { val1 = val; }
|
|
};
|
|
|
|
void testList();
|
|
void testMap();
|
|
void testAvl();
|
|
void testBuffer();
|
|
void testBuffer2d(); |