SWC-DB  v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
SWC::Core::Mem::Page Class Referencefinal

#include <swcdb/core/PageArena.h>

+ Inheritance diagram for SWC::Core::Mem::Page:
+ Collaboration diagram for SWC::Core::Mem::Page:

Public Member Functions

 Page ()
 
 ~Page () noexcept
 
Item::Ptr use (const uint8_t *buf, uint32_t size)
 
void free (Item::Ptr ptr)
 
size_t count () const
 

Private Attributes

std::mutex m_mutex
 

Detailed Description

Definition at line 121 of file PageArena.h.

Constructor & Destructor Documentation

◆ Page()

SWC::Core::Mem::Page::Page ( )
inline

Definition at line 124 of file PageArena.h.

◆ ~Page()

SWC::Core::Mem::Page::~Page ( )
inlinenoexcept

Definition at line 126 of file PageArena.h.

Member Function Documentation

◆ count()

size_t SWC::Core::Mem::Page::count ( ) const
inline

Definition at line 152 of file PageArena.h.

References m_mutex, and size.

◆ free()

void SWC::Core::Mem::Page::free ( Item::Ptr  ptr)
inline

Definition at line 142 of file PageArena.h.

References SWC::Core::Mem::Item::count, and m_mutex.

Referenced by SWC::Core::Mem::Arena::free().

+ Here is the caller graph for this function:

◆ use()

Item::Ptr SWC::Core::Mem::Page::use ( const uint8_t *  buf,
uint32_t  size 
)
inline

Definition at line 128 of file PageArena.h.

References m_mutex, and size.

Referenced by SWC::Core::Mem::Arena::use().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_mutex

std::mutex SWC::Core::Mem::Page::m_mutex
mutableprivate

Definition at line 169 of file PageArena.h.

Referenced by count(), free(), and use().


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