Enroute Flight Navigation
A navigation app for VFR pilots
Units::ByteSize Class Reference

Convenience class for size_t. More...

#include <ByteSize.h>

Public Member Functions

 ByteSize (size_t val)
 Conversion from size_t to Units::ByteSize.
 
Q_INVOKABLE bool isNull () const
 Check if zero.
 
 operator size_t () const
 Conversion from Units::ByteSize to size_t.
 

Detailed Description

Convenience class for size_t.

Definition at line 37 of file ByteSize.h.

Constructor & Destructor Documentation

◆ ByteSize()

Units::ByteSize::ByteSize ( size_t val)
inline

Conversion from size_t to Units::ByteSize.

Parameters
valValue

Definition at line 52 of file ByteSize.h.

Member Function Documentation

◆ isNull()

Q_INVOKABLE bool Units::ByteSize::isNull ( ) const
inlinenodiscard

Check if zero.

Returns
True is size is zero

Definition at line 58 of file ByteSize.h.

◆ operator size_t()

Units::ByteSize::operator size_t ( ) const
inline

Conversion from Units::ByteSize to size_t.

Returns
Value

Definition at line 64 of file ByteSize.h.


The documentation for this class was generated from the following file: