|
| | NCollection_Allocator () noexcept=default |
| | Constructor. Creates an object using the default Open CASCADE allocation mechanism, i.e., which uses Standard::Allocate() and Standard::Free() underneath.
|
| |
| | NCollection_Allocator (const occ::handle< NCollection_BaseAllocator > &) noexcept |
| | Constructor.
|
| |
| template<typename OtherType > |
| NCollection_Allocator & | operator= (const NCollection_Allocator< OtherType > &) noexcept |
| | Assignment operator.
|
| |
| template<typename OtherType > |
| | NCollection_Allocator (const NCollection_Allocator< OtherType > &) noexcept |
| | Constructor. Creates an object using the default Open CASCADE allocation mechanism, i.e., which uses Standard::Allocate() and Standard::Free() underneath.
|
| |
| template<typename Type = value_type> |
| std::enable_if<!std::is_const< Type >::value, pointer >::type | address (reference theItem) const noexcept |
| | Returns an object address.
|
| |
| const_pointer | address (const_reference theItem) const noexcept |
| | Returns an object address.
|
| |
| pointer | allocate (const size_type theSize, const void *=nullptr) const |
| | Allocates memory for theSize objects.
|
| |
| void | deallocate (pointer thePnt, const size_type) const |
| | Frees previously allocated memory.
|
| |
| pointer | reallocate (pointer thePnt, const size_type theSize) const |
| | Reallocates memory for theSize objects.
|
| |
| template<class _Objty , class... _Types> |
| void | construct (_Objty *_Ptr, _Types &&... _Args) |
| | Constructs an object. Uses placement new operator and copy constructor to construct an object.
|
| |
| void | destroy (pointer thePnt) noexcept(std::is_nothrow_destructible< value_type >::value) |
| | Destroys the object. Uses the object destructor.
|
| |
| constexpr bool | operator== (const NCollection_Allocator &) const noexcept |
| |
| template<class U > |
| constexpr bool | operator== (const NCollection_Allocator< U > &) const noexcept |
| |
| constexpr bool | operator!= (const NCollection_Allocator &) const noexcept |
| |
| template<class U > |
| constexpr bool | operator!= (const NCollection_Allocator< U > &) const noexcept |
| |
template<
typename ItemType>
class NCollection_Allocator< ItemType >
Implements allocator requirements as defined in ISO C++ Standard 2003, section 20.1.5.
The allocator uses a standard OCCT mechanism for memory allocation and deallocation. It can be used with standard containers (std::vector, std::map, etc.) to take advantage of OCCT memory optimizations.
Example of use:
Describes functions to build parallelepiped boxes. A MakeBox object provides a framework for:
Definition BRepPrimAPI_MakeBox.hxx:51
STL input iterator that wraps an OCCT More()/Next() iterator.
Definition NCollection_ForwardRange.hxx:142
Describes a solid shape which.
Definition TopoDS_Solid.hxx:31