Helper entity to measure size of dynamic objects in memory.
More...
#include <Sizer.h>
|
size_t | m_bytes |
| Current measured size in bytes.
|
|
Helper entity to measure size of dynamic objects in memory.
fsdk::Sizer::Sizer |
( |
const Sizer & |
other | ) |
|
|
inlinenoexcept |
Initializes sizer with another sizer value.
- Parameters
-
void fsdk::Sizer::append |
( |
size_t |
bytes | ) |
|
|
inlinenoexcept |
Append bytes to current byte count.
- Parameters
-
[in] | bytes | number of bytes to append. |
void fsdk::Sizer::append |
( |
const Sizer & |
other | ) |
|
|
inlinenoexcept |
Append other sizer byte count to current byte count.
- Parameters
-
[in] | other | sizer to take bytes from. |
size_t fsdk::Sizer::getBytes |
( |
| ) |
const |
|
inlinenoexcept |
Get current size.
- Returns
- current byte count.
size_t fsdk::Sizer::getGBytes |
( |
| ) |
const |
|
inlinenoexcept |
Get current size.
- Returns
- current size in gbytes (truncated).
size_t fsdk::Sizer::getKBytes |
( |
| ) |
const |
|
inlinenoexcept |
Get current size.
- Returns
- current size in kbytes (truncated).
size_t fsdk::Sizer::getMBytes |
( |
| ) |
const |
|
inlinenoexcept |
Get current size.
- Returns
- current size in mbytes (truncated).
bool fsdk::Sizer::isEmpty |
( |
| ) |
const |
|
inlinenoexcept |
Check whether size is zero.
- Returns
- true if current byte count is zero.
fsdk::Sizer::operator bool |
( |
| ) |
const |
|
inlinenoexcept |
Check whether size is zero.
- Returns
- true if current byte count is not zero.
bool fsdk::Sizer::operator!= |
( |
const Sizer & |
other | ) |
const |
|
inlinenoexcept |
Check if two sizers are not equal.
- Parameters
-
- Returns
- true if sizers are not equal.
Sizer& fsdk::Sizer::operator<< |
( |
size_t |
bytes | ) |
|
|
inlinenoexcept |
Append bytes to current byte count.
- Parameters
-
[in] | bytes | number of bytes to append. |
- Returns
- sizer reference for call chaining.
Sizer& fsdk::Sizer::operator<< |
( |
const Sizer & |
other | ) |
|
|
inlinenoexcept |
Append other sizer byte count to current byte count.
- Parameters
-
[in] | other | sizer to take bytes from. |
- Returns
- sizer reference for call chaining.
Sizer& fsdk::Sizer::operator= |
( |
const Sizer & |
other | ) |
|
|
inlinenoexcept |
Assign value of another sizer.
- Parameters
-
[in] | other | sizer to take bytes from. |
- Returns
- sizer reference for call chaining.
bool fsdk::Sizer::operator== |
( |
const Sizer & |
other | ) |
const |
|
inlinenoexcept |
Check if two sizers are equal.
- Parameters
-
- Returns
- true if sizers are equal.
void fsdk::Sizer::swap |
( |
Sizer & |
other | ) |
|
|
inlinenoexcept |
Swap contents with an other sizer.
- Parameters
-
[in,out] | other | sizer to swap with. |
The documentation for this struct was generated from the following file: