72 operator size_t() const noexcept {
86 operator bool() const noexcept {
122 return m_bytes == other.m_bytes;
130 return !(*
this == other);
137 std::swap(
m_bytes, other.m_bytes);
SDK namespace.
Definition IAGSEstimator.h:8
Helper entity to measure size of dynamic objects in memory.
Definition Sizer.h:9
size_t m_bytes
Current measured size in bytes.
Definition Sizer.h:141
bool operator!=(const Sizer &other) const noexcept
Check if two sizers are not equal.
Definition Sizer.h:129
Sizer(const Sizer &other) noexcept
Initializes sizer with another sizer value.
Definition Sizer.h:20
size_t getKBytes() const noexcept
Get current size.
Definition Sizer.h:53
Sizer & operator<<(const Sizer &other) noexcept
Append other sizer byte count to current byte count.
Definition Sizer.h:103
bool operator==(const Sizer &other) const noexcept
Check if two sizers are equal.
Definition Sizer.h:121
Sizer() noexcept
Initializes sizer with zero.
Definition Sizer.h:13
bool isEmpty() const noexcept
Check whether size is zero.
Definition Sizer.h:79
size_t getGBytes() const noexcept
Get current size.
Definition Sizer.h:67
size_t getBytes() const noexcept
Get current size.
Definition Sizer.h:46
void append(const Sizer &other) noexcept
Append other sizer byte count to current byte count.
Definition Sizer.h:34
Sizer & operator<<(size_t bytes) noexcept
Append bytes to current byte count.
Definition Sizer.h:94
Sizer & operator=(const Sizer &other) noexcept
Assign value of another sizer.
Definition Sizer.h:112
size_t getMBytes() const noexcept
Get current size.
Definition Sizer.h:60
void append(size_t bytes) noexcept
Append bytes to current byte count.
Definition Sizer.h:27
void reset() noexcept
Reset byte count to zero.
Definition Sizer.h:39
void swap(Sizer &other) noexcept
Definition Sizer.h:136