LibreOffice Module store (master) 1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | List of all members
store::PageData::Allocator Class Referenceabstract

#include <storbase.hxx>

Inheritance diagram for store::PageData::Allocator:
[legend]
Collaboration diagram for store::PageData::Allocator:
[legend]

Public Member Functions

template<class T >
T * construct ()
 
bool allocate (void **ppPage, sal_uInt16 *pnSize)
 
void deallocate (void *pPage)
 
- Public Member Functions inherited from salhelper::SimpleReferenceObject
 SimpleReferenceObject ()
 
void acquire ()
 
void release ()
 

Static Public Member Functions

static storeError createInstance (rtl::Reference< PageData::Allocator > &rxAllocator, sal_uInt16 nPageSize)
 
- Static Public Member Functions inherited from salhelper::SimpleReferenceObject
static void * operator new (std::size_t nSize)
 
static void * operator new (std::size_t nSize, std::nothrow_t const &rNothrow)
 
static void operator delete (void *pPtr)
 
static void operator delete (void *pPtr, std::nothrow_t const &rNothrow)
 

Protected Member Functions

virtual ~Allocator () override
 
- Protected Member Functions inherited from salhelper::SimpleReferenceObject
virtual ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE
 

Private Member Functions

virtual void allocate_Impl (void **ppPage, sal_uInt16 *pnSize)=0
 Implementation (abstract). More...
 
virtual void deallocate_Impl (void *pPage)=0
 

Additional Inherited Members

- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

Definition at line 282 of file storbase.hxx.

Constructor & Destructor Documentation

◆ ~Allocator()

virtual store::PageData::Allocator::~Allocator ( )
inlineoverrideprotectedvirtual

Definition at line 312 of file storbase.hxx.

Member Function Documentation

◆ allocate()

bool store::PageData::Allocator::allocate ( void **  ppPage,
sal_uInt16 *  pnSize 
)
inline

Definition at line 296 of file storbase.hxx.

References allocate_Impl().

Referenced by construct().

◆ allocate_Impl()

virtual void store::PageData::Allocator::allocate_Impl ( void **  ppPage,
sal_uInt16 *  pnSize 
)
privatepure virtual

Implementation (abstract).

Implemented in store::PageData::Allocator_Impl.

Referenced by allocate().

◆ construct()

template<class T >
T * store::PageData::Allocator::construct ( )
inline

Definition at line 285 of file storbase.hxx.

References allocate().

◆ createInstance()

storeError PageData::Allocator::createInstance ( rtl::Reference< PageData::Allocator > &  rxAllocator,
sal_uInt16  nPageSize 
)
static

Definition at line 110 of file storbase.cxx.

References store_E_OutOfMemory.

◆ deallocate()

void store::PageData::Allocator::deallocate ( void *  pPage)
inline

Definition at line 302 of file storbase.hxx.

References deallocate_Impl().

◆ deallocate_Impl()

virtual void store::PageData::Allocator::deallocate_Impl ( void *  pPage)
privatepure virtual

Implemented in store::PageData::Allocator_Impl.

Referenced by deallocate().


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