Public Member Functions | Private Types | Private Attributes | List of all members
mapbox::detail::Earcut< N >::ObjectPool< T, Alloc > Class Template Reference

Public Member Functions

void clear ()
 
template<typename... Args>
T * construct (Args &&...args)
 
 ObjectPool ()
 
 ObjectPool (std::size_t blockSize_)
 
void reset (std::size_t newBlockSize)
 
 ~ObjectPool ()
 

Private Types

typedef std::allocator_traits< Alloc > alloc_traits
 

Private Attributes

Alloc alloc
 
std::vector< T * > allocations
 
std::size_t blockSize = 1
 
T * currentBlock = nullptr
 
std::size_t currentIndex = 1
 

Detailed Description

template<typename N = uint32_t>
template<typename T, typename Alloc = std::allocator<T>>
class mapbox::detail::Earcut< N >::ObjectPool< T, Alloc >

Definition at line 90 of file earcut.hpp.

Member Typedef Documentation

template<typename N = uint32_t>
template<typename T, typename Alloc = std::allocator<T>>
typedef std::allocator_traits<Alloc> mapbox::detail::Earcut< N >::ObjectPool< T, Alloc >::alloc_traits
private

Definition at line 126 of file earcut.hpp.

Constructor & Destructor Documentation

template<typename N = uint32_t>
template<typename T, typename Alloc = std::allocator<T>>
mapbox::detail::Earcut< N >::ObjectPool< T, Alloc >::ObjectPool ( )
inline

Definition at line 92 of file earcut.hpp.

template<typename N = uint32_t>
template<typename T, typename Alloc = std::allocator<T>>
mapbox::detail::Earcut< N >::ObjectPool< T, Alloc >::ObjectPool ( std::size_t  blockSize_)
inline

Definition at line 93 of file earcut.hpp.

template<typename N = uint32_t>
template<typename T, typename Alloc = std::allocator<T>>
mapbox::detail::Earcut< N >::ObjectPool< T, Alloc >::~ObjectPool ( )
inline

Definition at line 96 of file earcut.hpp.

Member Function Documentation

template<typename N = uint32_t>
template<typename T, typename Alloc = std::allocator<T>>
void mapbox::detail::Earcut< N >::ObjectPool< T, Alloc >::clear ( )
inline

Definition at line 119 of file earcut.hpp.

template<typename N = uint32_t>
template<typename T, typename Alloc = std::allocator<T>>
template<typename... Args>
T* mapbox::detail::Earcut< N >::ObjectPool< T, Alloc >::construct ( Args &&...  args)
inline

Definition at line 100 of file earcut.hpp.

template<typename N = uint32_t>
template<typename T, typename Alloc = std::allocator<T>>
void mapbox::detail::Earcut< N >::ObjectPool< T, Alloc >::reset ( std::size_t  newBlockSize)
inline

Definition at line 110 of file earcut.hpp.

Member Data Documentation

template<typename N = uint32_t>
template<typename T, typename Alloc = std::allocator<T>>
Alloc mapbox::detail::Earcut< N >::ObjectPool< T, Alloc >::alloc
private

Definition at line 125 of file earcut.hpp.

template<typename N = uint32_t>
template<typename T, typename Alloc = std::allocator<T>>
std::vector<T*> mapbox::detail::Earcut< N >::ObjectPool< T, Alloc >::allocations
private

Definition at line 124 of file earcut.hpp.

template<typename N = uint32_t>
template<typename T, typename Alloc = std::allocator<T>>
std::size_t mapbox::detail::Earcut< N >::ObjectPool< T, Alloc >::blockSize = 1
private

Definition at line 123 of file earcut.hpp.

template<typename N = uint32_t>
template<typename T, typename Alloc = std::allocator<T>>
T* mapbox::detail::Earcut< N >::ObjectPool< T, Alloc >::currentBlock = nullptr
private

Definition at line 121 of file earcut.hpp.

template<typename N = uint32_t>
template<typename T, typename Alloc = std::allocator<T>>
std::size_t mapbox::detail::Earcut< N >::ObjectPool< T, Alloc >::currentIndex = 1
private

Definition at line 122 of file earcut.hpp.


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


nav_2d_utils
Author(s):
autogenerated on Sun Jan 10 2021 04:08:32