#include <opennurbs_fsp.h>
Public Member Functions | |
size_t | ActiveElementCount () const |
void * | AllocateElement () |
bool | Create (size_t sizeof_element, size_t element_count_estimate, size_t block_element_capacity) |
void | Destroy () |
void * | Element (size_t element_index) const |
void | EmergencyDestroy () |
void * | FirstBlock (size_t *block_element_count) |
void * | FirstElement () |
void * | FirstElement (size_t element_index) |
ON_MEMORY_POOL * | Heap () |
void * | NextBlock (size_t *block_element_count) |
void * | NextElement () |
ON_FixedSizePool () | |
void | ReturnAll () |
void | ReturnElement (void *p) |
void | SetHeap (ON_MEMORY_POOL *heap) |
size_t | SizeofElement () const |
size_t | TotalElementCount () const |
~ON_FixedSizePool () | |
Private Member Functions | |
size_t | BlockElementCapacity (const void *block) const |
size_t | BlockElementCount (const void *block) const |
ON_FixedSizePool (const ON_FixedSizePool &) | |
ON_FixedSizePool & | operator= (const ON_FixedSizePool &) |
Private Attributes | |
size_t | m_active_element_count |
void * | m_al_block |
size_t | m_al_count |
void * | m_al_element_array |
void * | m_al_element_stack |
size_t | m_block_element_count |
void * | m_first_block |
ON_MEMORY_POOL * | m_heap |
void * | m_qwerty_it_block |
void * | m_qwerty_it_element |
size_t | m_sizeof_element |
size_t | m_total_element_count |
Friends | |
class | ON_FixedSizePoolIterator |
Definition at line 19 of file opennurbs_fsp.h.
Definition at line 3 of file opennurbs_fsp.cpp.
Definition at line 8 of file opennurbs_fsp.cpp.
ON_FixedSizePool::ON_FixedSizePool | ( | const ON_FixedSizePool & | ) | [private] |
size_t ON_FixedSizePool::ActiveElementCount | ( | ) | const |
Reimplemented in ON_SimpleFixedSizePool< T >.
Definition at line 133 of file opennurbs_fsp.cpp.
void * ON_FixedSizePool::AllocateElement | ( | ) |
Reimplemented in ON_SimpleFixedSizePool< T >.
Definition at line 143 of file opennurbs_fsp.cpp.
size_t ON_FixedSizePool::BlockElementCapacity | ( | const void * | block | ) | const [private] |
Definition at line 407 of file opennurbs_fsp.cpp.
size_t ON_FixedSizePool::BlockElementCount | ( | const void * | block | ) | const [private] |
Definition at line 416 of file opennurbs_fsp.cpp.
bool ON_FixedSizePool::Create | ( | size_t | sizeof_element, |
size_t | element_count_estimate, | ||
size_t | block_element_capacity | ||
) |
Definition at line 19 of file opennurbs_fsp.cpp.
void ON_FixedSizePool::Destroy | ( | ) |
Reimplemented in ON_SimpleFixedSizePool< T >.
Definition at line 105 of file opennurbs_fsp.cpp.
void * ON_FixedSizePool::Element | ( | size_t | element_index | ) | const |
Reimplemented in ON_SimpleFixedSizePool< T >.
Definition at line 527 of file opennurbs_fsp.cpp.
void ON_FixedSizePool::EmergencyDestroy | ( | void | ) |
Reimplemented in ON_SimpleFixedSizePool< T >.
Definition at line 118 of file opennurbs_fsp.cpp.
void * ON_FixedSizePool::FirstBlock | ( | size_t * | block_element_count | ) |
Reimplemented in ON_SimpleFixedSizePool< T >.
Definition at line 427 of file opennurbs_fsp.cpp.
void * ON_FixedSizePool::FirstElement | ( | ) |
Reimplemented in ON_SimpleFixedSizePool< T >.
Definition at line 251 of file opennurbs_fsp.cpp.
void * ON_FixedSizePool::FirstElement | ( | size_t | element_index | ) |
Definition at line 335 of file opennurbs_fsp.cpp.
Reimplemented in ON_SimpleFixedSizePool< T >.
Definition at line 128 of file opennurbs_fsp.cpp.
void * ON_FixedSizePool::NextBlock | ( | size_t * | block_element_count | ) |
Reimplemented in ON_SimpleFixedSizePool< T >.
Definition at line 465 of file opennurbs_fsp.cpp.
void * ON_FixedSizePool::NextElement | ( | ) |
Reimplemented in ON_SimpleFixedSizePool< T >.
Definition at line 281 of file opennurbs_fsp.cpp.
ON_FixedSizePool& ON_FixedSizePool::operator= | ( | const ON_FixedSizePool & | ) | [private] |
void ON_FixedSizePool::ReturnAll | ( | ) |
Reimplemented in ON_SimpleFixedSizePool< T >.
Definition at line 89 of file opennurbs_fsp.cpp.
void ON_FixedSizePool::ReturnElement | ( | void * | p | ) |
Definition at line 223 of file opennurbs_fsp.cpp.
void ON_FixedSizePool::SetHeap | ( | ON_MEMORY_POOL * | heap | ) |
Reimplemented in ON_SimpleFixedSizePool< T >.
Definition at line 123 of file opennurbs_fsp.cpp.
size_t ON_FixedSizePool::SizeofElement | ( | ) | const |
Reimplemented in ON_SimpleFixedSizePool< T >.
Definition at line 13 of file opennurbs_fsp.cpp.
size_t ON_FixedSizePool::TotalElementCount | ( | ) | const |
Reimplemented in ON_SimpleFixedSizePool< T >.
Definition at line 138 of file opennurbs_fsp.cpp.
friend class ON_FixedSizePoolIterator [friend] |
Definition at line 329 of file opennurbs_fsp.h.
size_t ON_FixedSizePool::m_active_element_count [private] |
Definition at line 347 of file opennurbs_fsp.h.
void* ON_FixedSizePool::m_al_block [private] |
Definition at line 341 of file opennurbs_fsp.h.
size_t ON_FixedSizePool::m_al_count [private] |
Definition at line 344 of file opennurbs_fsp.h.
void* ON_FixedSizePool::m_al_element_array [private] |
Definition at line 343 of file opennurbs_fsp.h.
void* ON_FixedSizePool::m_al_element_stack [private] |
Definition at line 335 of file opennurbs_fsp.h.
size_t ON_FixedSizePool::m_block_element_count [private] |
Definition at line 346 of file opennurbs_fsp.h.
void* ON_FixedSizePool::m_first_block [private] |
Definition at line 331 of file opennurbs_fsp.h.
ON_MEMORY_POOL* ON_FixedSizePool::m_heap [private] |
Definition at line 349 of file opennurbs_fsp.h.
void* ON_FixedSizePool::m_qwerty_it_block [private] |
Definition at line 338 of file opennurbs_fsp.h.
void* ON_FixedSizePool::m_qwerty_it_element [private] |
Definition at line 339 of file opennurbs_fsp.h.
size_t ON_FixedSizePool::m_sizeof_element [private] |
Definition at line 345 of file opennurbs_fsp.h.
size_t ON_FixedSizePool::m_total_element_count [private] |
Definition at line 348 of file opennurbs_fsp.h.