73         operator size_t () const noexcept {
 
   87         operator bool () const noexcept {
 
  123             return m_bytes == other.m_bytes;
 
  131             return !(*
this == other);
 
  138             std::swap(
m_bytes, other.m_bytes);
 
bool operator!=(const Sizer &other) const noexcept
Check if two sizers are not equal. 
Definition: Sizer.h:130
 
void swap(Sizer &other) noexcept
Definition: Sizer.h:137
 
void append(size_t bytes) noexcept
Append bytes to current byte count. 
Definition: Sizer.h:28
 
size_t getMBytes() const noexcept
Get current size. 
Definition: Sizer.h:61
 
Sizer(const Sizer &other) noexcept
Initializes sizer with another sizer value. 
Definition: Sizer.h:21
 
size_t getBytes() const noexcept
Get current size. 
Definition: Sizer.h:47
 
size_t m_bytes
Current measured size in bytes. 
Definition: Sizer.h:142
 
Sizer() noexcept
Initializes sizer with zero. 
Definition: Sizer.h:14
 
size_t getGBytes() const noexcept
Get current size. 
Definition: Sizer.h:68
 
Sizer & operator=(const Sizer &other) noexcept
Assign value of another sizer. 
Definition: Sizer.h:113
 
void append(const Sizer &other) noexcept
Append other sizer byte count to current byte count. 
Definition: Sizer.h:35
 
size_t getKBytes() const noexcept
Get current size. 
Definition: Sizer.h:54
 
bool isEmpty() const noexcept
Check whether size is zero. 
Definition: Sizer.h:80
 
Sizer & operator<<(size_t bytes) noexcept
Append bytes to current byte count. 
Definition: Sizer.h:95
 
void reset() noexcept
Reset byte count to zero. 
Definition: Sizer.h:40
 
Helper entity to measure size of dynamic objects in memory. 
Definition: Sizer.h:10
 
bool operator==(const Sizer &other) const noexcept
Check if two sizers are equal. 
Definition: Sizer.h:122