Doxygen Samurai Engine 0.0.1
Doxygen Samurai Engine Documentation
Loading...
Searching...
No Matches
containerInformation.h
Go to the documentation of this file.
1#pragma once
2#include <string>
3#include <baseContainer.h>
4
5namespace samurai
6{
7
9{
20
22 {
23 if (this == &other) { return true; }
24
25 return
27 this->containerName == other.containerName &&
30
31 }
32
34 {
35 return !(*this == other);
36 }
37
38 size_t containerStructBaseSize = 0; //static memory
39 std::string containerName = "";
42
44 {
45 if (useDefaultAllocator) { return 0; }
46
47 size_t size = 0;
48
50 samurai::align64(size);
51
53
55 {
56 samurai::align64(size);
57 size += i;
58 }
59
60 return size;
61 }
62};
63
64}
void align64(size_t &val)
Definition Sizes.h:14
samurai::StaticVector< size_t, MaxAllocatorsCount > bonusAllocators
bool operator!=(const ContainerInformation &other)
ContainerStaticInfo containerStaticInfo
ContainerInformation(size_t containerStructBaseSize, const char *containerName, const ContainerStaticInfo &containerStaticInfo)
bool operator==(const ContainerInformation &other)