PlayRho  2.0.0
An interactive physics engine & library.
playrho::pmr::PoolMemoryResource::Stats Struct Reference

Statistics data. More...

#include <playrho/pmr/PoolMemoryResource.hpp>

Public Attributes

std::size_t allocatedBuffers {}
 Count of buffers in the "allocated" (i.e. in-use-by-caller) state.
 
std::size_t maxBytes {}
 Max bytes capacity of any buffer element.
 
std::size_t numBuffers {}
 Number of buffer elements. More...
 
std::size_t totalBytes {}
 Total bytes capacity of all buffer elements.
 

Friends

bool operator!= (const Stats &lhs, const Stats &rhs) noexcept
 Operator not-equals support.
 
bool operator== (const Stats &lhs, const Stats &rhs) noexcept
 Operator equals support.
 

Detailed Description

Statistics data.

Member Data Documentation

◆ numBuffers

std::size_t playrho::pmr::PoolMemoryResource::Stats::numBuffers {}

Number of buffer elements.

Note
This is same as size(m_buffers).

Referenced by playrho::pmr::PoolMemoryResource::GetStats(), and playrho::pmr::operator<<().


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