LibreOffice Module o3tl (master) 1
Public Member Functions | Private Types | Private Attributes | List of all members
o3tl::detail::simple_pool_impl< ValueType, Container > Class Template Reference

#include <vector_pool.hxx>

Inheritance diagram for o3tl::detail::simple_pool_impl< ValueType, Container >:
[legend]
Collaboration diagram for o3tl::detail::simple_pool_impl< ValueType, Container >:
[legend]

Public Member Functions

 simple_pool_impl ()
 
std::ptrdiff_t alloc ()
 
std::ptrdiff_t store (const ValueType &rCopy)
 
void free (std::ptrdiff_t nIdx)
 
const ValueTypeget (std::ptrdiff_t nIdx) const
 
ValueTypeget (std::ptrdiff_t nIdx)
 

Private Types

typedef Container::value_type value_type
 

Private Attributes

std::ptrdiff_t mnFirstFreeIndex
 

Detailed Description

template<typename ValueType, class Container>
class o3tl::detail::simple_pool_impl< ValueType, Container >

Definition at line 30 of file vector_pool.hxx.

Member Typedef Documentation

◆ value_type

template<typename ValueType , class Container >
typedef Container::value_type o3tl::detail::simple_pool_impl< ValueType, Container >::value_type
private

Constructor & Destructor Documentation

◆ simple_pool_impl()

template<typename ValueType , class Container >
o3tl::detail::simple_pool_impl< ValueType, Container >::simple_pool_impl ( )
inline

Member Function Documentation

◆ alloc()

template<typename ValueType , class Container >
std::ptrdiff_t o3tl::detail::simple_pool_impl< ValueType, Container >::alloc ( )
inline

◆ free()

template<typename ValueType , class Container >
void o3tl::detail::simple_pool_impl< ValueType, Container >::free ( std::ptrdiff_t  nIdx)
inline

◆ get() [1/2]

template<typename ValueType , class Container >
ValueType & o3tl::detail::simple_pool_impl< ValueType, Container >::get ( std::ptrdiff_t  nIdx)
inline

Definition at line 74 of file vector_pool.hxx.

◆ get() [2/2]

template<typename ValueType , class Container >
const ValueType & o3tl::detail::simple_pool_impl< ValueType, Container >::get ( std::ptrdiff_t  nIdx) const
inline

◆ store()

template<typename ValueType , class Container >
std::ptrdiff_t o3tl::detail::simple_pool_impl< ValueType, Container >::store ( const ValueType rCopy)
inline

Member Data Documentation

◆ mnFirstFreeIndex

template<typename ValueType , class Container >
std::ptrdiff_t o3tl::detail::simple_pool_impl< ValueType, Container >::mnFirstFreeIndex
private

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