/* $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 . // //////////////////////////////////////////////////////////////// */ #if !defined(ON_FSP_DEFS_INC_) #define ON_FSP_DEFS_INC_ template ON_SimpleFixedSizePool::ON_SimpleFixedSizePool() : ON_FixedSizePool() {} template ON_SimpleFixedSizePool::~ON_SimpleFixedSizePool() { ON_FixedSizePool::Destroy(); } template bool ON_SimpleFixedSizePool::Create( size_t element_count_estimate, size_t block_element_count ) { return ON_FixedSizePool::Create(sizeof(T),element_count_estimate,block_element_count); } template size_t ON_SimpleFixedSizePool::SizeofElement() const { return ON_FixedSizePool::SizeofElement(); } template T* ON_SimpleFixedSizePool::AllocateElement() { return (T *)ON_FixedSizePool::AllocateElement(); } template void ON_SimpleFixedSizePool::ReturnElement(T* p) { ON_FixedSizePool::ReturnElement(p); } template void ON_SimpleFixedSizePool::ReturnAll() { ON_FixedSizePool::ReturnAll(); } template void ON_SimpleFixedSizePool::Destroy() { ON_FixedSizePool::Destroy(); } template size_t ON_SimpleFixedSizePool::ActiveElementCount() const { return ON_FixedSizePool::ActiveElementCount(); } template size_t ON_SimpleFixedSizePool::TotalElementCount() const { return ON_FixedSizePool::TotalElementCount(); } template T* ON_SimpleFixedSizePool::Element(size_t element_index) const { return (T *)ON_FixedSizePool::Element(element_index); } template size_t ON_SimpleFixedSizePool::ElementIndex(T* element_ptr) const { return ON_FixedSizePool::ElementIndex(element_ptr); } template ON_SimpleFixedSizePoolIterator::ON_SimpleFixedSizePoolIterator(const class ON_SimpleFixedSizePool& fsp) : ON_FixedSizePoolIterator((ON_FixedSizePool&)fsp) {} template ON_SimpleFixedSizePoolIterator::ON_SimpleFixedSizePoolIterator(const class ON_SimpleFixedSizePoolIterator& fsp_it) : ON_FixedSizePoolIterator(fsp_it) {} template T* ON_SimpleFixedSizePoolIterator::FirstElement() { return (T *)ON_FixedSizePoolIterator::FirstElement(); } template T* ON_SimpleFixedSizePoolIterator::FirstElement(size_t element_index) { return (T *)ON_FixedSizePoolIterator::FirstElement(element_index); } template T* ON_SimpleFixedSizePoolIterator::NextElement() { return (T *)ON_FixedSizePoolIterator::NextElement(); } template T* ON_SimpleFixedSizePoolIterator::CurrentElement() { return (T *)ON_FixedSizePoolIterator::CurrentElement(); } template void ON_SimpleFixedSizePoolIterator::Reset() { ON_FixedSizePoolIterator::Reset(); } template T* ON_SimpleFixedSizePoolIterator::FirstBlock( size_t* block_element_count ) { return (T *)ON_FixedSizePoolIterator::FirstBlock(block_element_count); } template T* ON_SimpleFixedSizePoolIterator::NextBlock( size_t* block_element_count ) { return (T *)ON_FixedSizePoolIterator::NextBlock(block_element_count); } #endif