PlayRho  2.0.0
An interactive physics engine & library.
playrho::pmr::PoolMemoryResource::BufferRecord Class Reference

Buffer record for PoolMemoryResource. More...

Public Member Functions

 BufferRecord () noexcept=default
 Default constructor.
 
 BufferRecord (BufferRecord &&other) noexcept
 Move constructor.
 
 BufferRecord (const BufferRecord &other)=delete
 Copy construction is explicitly deleted.
 
 BufferRecord (void *p, std::size_t n, std::size_t a)
 Initializing constructor.
 
 ~BufferRecord ()=default
 Destructor.
 
std::size_t alignment () const noexcept
 Alignment of the underlying buffer in bytes.
 
void allocate () noexcept
 Allocate this buffer record.
 
BufferRecordassign (void *p, std::size_t n, std::size_t a) noexcept
 Assignment function.
 
void * data () const noexcept
 Access to underlying pointer.
 
void deallocate () noexcept
 Deallocate this buffer record.
 
bool is_allocated () const noexcept
 Whether for memory which is allocated currently.
 
BufferRecordoperator= (BufferRecord &&other) noexcept
 Move assignment support.
 
BufferRecordoperator= (const BufferRecord &other)=delete
 Copy assignment is explicitly deleted.
 
std::size_t size () const noexcept
 Size of the underlying buffer in bytes.
 
ssize_t ssize () const noexcept
 Signed size of the underlying buffer in bytes.
 

Detailed Description

Buffer record for PoolMemoryResource.


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