libzed 1.9.9
A general-purpose library for quick and simple data manipulation.
 
Loading...
Searching...
No Matches
z::core::sizable Interface Referenceabstract

An interface for getting an object's size. More...

#include <sizable.hpp>

Inheritance diagram for z::core::sizable:
z::core::array< zstring * > z::core::string< z::utf8 > z::core::string< ascii > z::core::array< T > z::core::circularBuffer< TYPE, LEN > z::core::string< E > z::file::info z::core::sortedArray< zstring * > z::core::refArray< T > z::core::sortedArray< T > z::core::sortedRefArray< zstring * > z::core::sortedRefArray< T > z::util::dictionary

Public Member Functions

virtual ~sizable () noexcept
 Virtual destructor.
 
virtual size_t size () const noexcept=0
 Get the size of the object in memory.
 

Detailed Description

An interface for getting an object's size.

Member Function Documentation

◆ size()

virtual size_t z::core::sizable::size ( ) const
pure virtualnoexcept

Get the size of the object in memory.

Returns
The number of bytes in memory this object currently consumes.

Implemented in z::core::array< T >, z::core::array< zstring * >, z::core::circularBuffer< TYPE, LEN >, z::core::string< E >, z::core::string< ascii >, z::core::string< z::utf8 >, and z::file::info.


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