Loading...
Searching...
No Matches
opennurbs_fsp_defs.h
/* $NoKeywords: $ */
/*
//
// Copyright (c) 1993-2012 Robert McNeel & Associates. All rights reserved.
// OpenNURBS, Rhinoceros, and Rhino3D are registered trademarks of Robert
// McNeel & Associates.
//
// THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY.
// ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR PURPOSE AND OF
// MERCHANTABILITY ARE HEREBY DISCLAIMED.
//
// For complete openNURBS copyright information see <http://www.opennurbs.org>.
//
////////////////////////////////////////////////////////////////
*/
#if !defined(ON_FSP_DEFS_INC_)
#define ON_FSP_DEFS_INC_
template <class T>
ON_SimpleFixedSizePool<T>::ON_SimpleFixedSizePool()
: ON_FixedSizePool()
{}
template <class T>
ON_SimpleFixedSizePool<T>::~ON_SimpleFixedSizePool()
{
ON_FixedSizePool::Destroy();
}
template <class T>
bool ON_SimpleFixedSizePool<T>::Create(
std::size_t element_count_estimate,
std::size_t block_element_count
)
{
return ON_FixedSizePool::Create(sizeof(T),element_count_estimate,block_element_count);
}
template <class T>
std::size_t ON_SimpleFixedSizePool<T>::SizeofElement() const
{
return ON_FixedSizePool::SizeofElement();
}
template <class T>
T* ON_SimpleFixedSizePool<T>::AllocateElement()
{
return (T *)ON_FixedSizePool::AllocateElement();
}
template <class T>
void ON_SimpleFixedSizePool<T>::ReturnElement(T* p)
{
ON_FixedSizePool::ReturnElement(p);
}
template <class T>
void ON_SimpleFixedSizePool<T>::ReturnAll()
{
ON_FixedSizePool::ReturnAll();
}
template <class T>
void ON_SimpleFixedSizePool<T>::Destroy()
{
ON_FixedSizePool::Destroy();
}
template <class T>
std::size_t ON_SimpleFixedSizePool<T>::ActiveElementCount() const
{
return ON_FixedSizePool::ActiveElementCount();
}
template <class T>
std::size_t ON_SimpleFixedSizePool<T>::TotalElementCount() const
{
return ON_FixedSizePool::TotalElementCount();
}
template <class T>
T* ON_SimpleFixedSizePool<T>::FirstElement()
{
return (T *)ON_FixedSizePool::FirstElement();
}
template <class T>
T* ON_SimpleFixedSizePool<T>::NextElement()
{
return (T *)ON_FixedSizePool::NextElement();
}
template <class T>
T* ON_SimpleFixedSizePool<T>::FirstBlock( std::size_t* block_element_count )
{
return (T *)ON_FixedSizePool::FirstBlock(block_element_count);
}
template <class T>
T* ON_SimpleFixedSizePool<T>::NextBlock( std::size_t* block_element_count )
{
return (T *)ON_FixedSizePool::NextBlock(block_element_count);
}
template <class T>
T* ON_SimpleFixedSizePool<T>::Element(std::size_t element_index) const
{
return (T *)ON_FixedSizePool::Element(element_index);
}
template <class T>
void ON_SimpleFixedSizePool<T>::SetHeap( ON_MEMORY_POOL* heap )
{
ON_FixedSizePool::SetHeap(heap);
}
template <class T>
ON_MEMORY_POOL* ON_SimpleFixedSizePool<T>::Heap()
{
return ON_FixedSizePool::Heap();
}
template <class T>
void ON_SimpleFixedSizePool<T>::EmergencyDestroy()
{
ON_FixedSizePool::EmergencyDestroy();
}
#endif
ON_FixedSizePool::NextElement
void * NextElement()
ON_FixedSizePool::Create
bool Create(std::size_t sizeof_element, std::size_t element_count_estimate, std::size_t block_element_capacity)
ON_FixedSizePool::Destroy
void Destroy()
ON_FixedSizePool::Heap
ON_MEMORY_POOL * Heap()
ON_FixedSizePool::ReturnElement
void ReturnElement(void *p)
ON_FixedSizePool::TotalElementCount
std::size_t TotalElementCount() const
ON_FixedSizePool::SetHeap
void SetHeap(ON_MEMORY_POOL *heap)
ON_FixedSizePool::FirstBlock
void * FirstBlock(std::size_t *block_element_count)
ON_FixedSizePool::ReturnAll
void ReturnAll()
ON_FixedSizePool::ActiveElementCount
std::size_t ActiveElementCount() const
ON_FixedSizePool::NextBlock
void * NextBlock(std::size_t *block_element_count)
ON_FixedSizePool::SizeofElement
std::size_t SizeofElement() const
ON_FixedSizePool::Element
void * Element(std::size_t element_index) const
ON_FixedSizePool::FirstElement
void * FirstElement()
ON_FixedSizePool::AllocateElement
void * AllocateElement()
ON_FixedSizePool::ON_FixedSizePool
ON_FixedSizePool()
ON_FixedSizePool::EmergencyDestroy
void EmergencyDestroy()
ON_SimpleFixedSizePool::NextElement
T * NextElement()
Definition opennurbs_fsp_defs.h:89
ON_SimpleFixedSizePool::NextBlock
T * NextBlock(std::size_t *block_element_count)
Definition opennurbs_fsp_defs.h:101
ON_SimpleFixedSizePool::~ON_SimpleFixedSizePool
~ON_SimpleFixedSizePool()
Definition opennurbs_fsp_defs.h:26
ON_SimpleFixedSizePool::ReturnAll
void ReturnAll()
Definition opennurbs_fsp_defs.h:59
ON_SimpleFixedSizePool::Element
T * Element(std::size_t element_index) const
Definition opennurbs_fsp_defs.h:107
ON_SimpleFixedSizePool::ReturnElement
void ReturnElement(T *p)
Definition opennurbs_fsp_defs.h:53
ON_SimpleFixedSizePool::Heap
ON_MEMORY_POOL * Heap()
Definition opennurbs_fsp_defs.h:119
ON_SimpleFixedSizePool::FirstBlock
T * FirstBlock(std::size_t *block_element_count)
Definition opennurbs_fsp_defs.h:95
ON_SimpleFixedSizePool::Destroy
void Destroy()
Definition opennurbs_fsp_defs.h:65
ON_SimpleFixedSizePool::TotalElementCount
std::size_t TotalElementCount() const
Definition opennurbs_fsp_defs.h:77
ON_SimpleFixedSizePool::AllocateElement
T * AllocateElement()
Definition opennurbs_fsp_defs.h:47
ON_SimpleFixedSizePool::SetHeap
void SetHeap(ON_MEMORY_POOL *heap)
Definition opennurbs_fsp_defs.h:113
ON_SimpleFixedSizePool::ON_SimpleFixedSizePool
ON_SimpleFixedSizePool()
Definition opennurbs_fsp_defs.h:21
ON_SimpleFixedSizePool::ActiveElementCount
std::size_t ActiveElementCount() const
Definition opennurbs_fsp_defs.h:71
ON_SimpleFixedSizePool::FirstElement
T * FirstElement()
Definition opennurbs_fsp_defs.h:83
ON_SimpleFixedSizePool::SizeofElement
std::size_t SizeofElement() const
Definition opennurbs_fsp_defs.h:41
ON_SimpleFixedSizePool::EmergencyDestroy
void EmergencyDestroy()
Definition opennurbs_fsp_defs.h:125
ON_SimpleFixedSizePool::Create
bool Create(std::size_t element_count_estimate, std::size_t block_element_count)
Definition opennurbs_fsp_defs.h:32