![]() |
Face Engine SDK
5.17.0
A face detection, recognition and tracking engine.
|
Helper entity to measure size of dynamic objects in memory. More...
#include <Sizer.h>
Public Member Functions | |
| Sizer () noexcept | |
| Initializes sizer with zero. | |
| Sizer (const Sizer &other) noexcept | |
| Initializes sizer with another sizer value. | |
| void | append (size_t bytes) noexcept |
| Append bytes to current byte count. | |
| void | append (const Sizer &other) noexcept |
| Append other sizer byte count to current byte count. | |
| void | reset () noexcept |
| Reset byte count to zero. | |
| size_t | getBytes () const noexcept |
| Get current size. | |
| size_t | getKBytes () const noexcept |
| Get current size. | |
| size_t | getMBytes () const noexcept |
| Get current size. | |
| size_t | getGBytes () const noexcept |
| Get current size. | |
| operator size_t () const noexcept | |
| Cast to size type. | |
| bool | isEmpty () const noexcept |
| Check whether size is zero. | |
| operator bool () const noexcept | |
| Check whether size is zero. | |
| Sizer & | operator<< (size_t bytes) noexcept |
| Append bytes to current byte count. | |
| Sizer & | operator<< (const Sizer &other) noexcept |
| Append other sizer byte count to current byte count. | |
| Sizer & | operator= (const Sizer &other) noexcept |
| Assign value of another sizer. | |
| bool | operator== (const Sizer &other) const noexcept |
| Check if two sizers are equal. | |
| bool | operator!= (const Sizer &other) const noexcept |
| Check if two sizers are not equal. | |
| void | swap (Sizer &other) noexcept |
Protected Attributes | |
| 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 | ) | [inline] |
Initializes sizer with another sizer value.
| [in] | other | another sizer. |
| void fsdk::Sizer::append | ( | size_t | bytes | ) | [inline] |
Append bytes to current byte count.
| [in] | bytes | number of bytes to append. |
| void fsdk::Sizer::append | ( | const Sizer & | other | ) | [inline] |
Append other sizer byte count to current byte count.
| [in] | other | sizer to take bytes from. |
| size_t fsdk::Sizer::getBytes | ( | ) | const [inline] |
Get current size.
| size_t fsdk::Sizer::getGBytes | ( | ) | const [inline] |
Get current size.
| size_t fsdk::Sizer::getKBytes | ( | ) | const [inline] |
Get current size.
| size_t fsdk::Sizer::getMBytes | ( | ) | const [inline] |
Get current size.
| bool fsdk::Sizer::isEmpty | ( | ) | const [inline] |
Check whether size is zero.
| fsdk::Sizer::operator bool | ( | ) | const [inline] |
Check whether size is zero.
| bool fsdk::Sizer::operator!= | ( | const Sizer & | other | ) | const [inline] |
Check if two sizers are not equal.
| [in] | other | sizer. |
| Sizer& fsdk::Sizer::operator<< | ( | size_t | bytes | ) | [inline] |
Append bytes to current byte count.
| [in] | bytes | number of bytes to append. |
Append other sizer byte count to current byte count.
| [in] | other | sizer to take bytes from. |
Assign value of another sizer.
| [in] | other | sizer to take bytes from. |
| bool fsdk::Sizer::operator== | ( | const Sizer & | other | ) | const [inline] |
Check if two sizers are equal.
| [in] | other | sizer. |
| void fsdk::Sizer::swap | ( | Sizer & | other | ) | [inline] |
Swap contents with an other sizer.
| [inout] | other sizer to swap with. |