|
| | NCollection_OccAllocator () noexcept |
| | Constructor. Creates an object using the default Open CASCADE allocation mechanism, i.e., which uses Standard::Allocate() and Standard::Free() underneath.
|
| |
| | NCollection_OccAllocator (const occ::handle< NCollection_BaseAllocator > &theAlloc) |
| | Constructor.
|
| |
| | NCollection_OccAllocator (occ::handle< NCollection_BaseAllocator > &&theAlloc) |
| | Constructor.
|
| |
| | NCollection_OccAllocator (const NCollection_OccAllocator &theOther)=default |
| | Constructor.
|
| |
| | NCollection_OccAllocator (NCollection_OccAllocator &&theOther) noexcept |
| | Constructor.
|
| |
| NCollection_OccAllocator & | operator= (const NCollection_OccAllocator &theOther)=default |
| | Assignment operator.
|
| |
| NCollection_OccAllocator & | operator= (NCollection_OccAllocator &&theOther) noexcept |
| | Assignment operator.
|
| |
| template<typename OtherType > |
| NCollection_OccAllocator & | operator= (const NCollection_OccAllocator< OtherType > &theOther) |
| | Assignment operator.
|
| |
| template<typename OtherType > |
| | NCollection_OccAllocator (const NCollection_OccAllocator< OtherType > &theOther) |
| | Constructor. Creates an object using the default Open CASCADE allocation mechanism, i.e., which uses Standard::Allocate() and Standard::Free() underneath.
|
| |
| void | SetAllocator (const occ::handle< NCollection_BaseAllocator > &theAlloc) |
| |
| const occ::handle< NCollection_BaseAllocator > & | Allocator () const noexcept |
| |
| pointer | allocate (size_type theSize, const void *=nullptr) |
| | Allocates memory for theSize objects.
|
| |
| template<typename T > |
| void | deallocate (T *thePnt, size_type) |
| | Template version of function Free(), nullifies the argument pointer.
|
| |
| void | deallocate (pointer thePnt, size_type) |
| | Frees previously allocated memory.
|
| |
| 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.
|
| |
| pointer | address (reference theItem) const noexcept |
| | Returns an object address.
|
| |
| const_pointer | address (const_reference theItem) const noexcept |
| | Returns an object address.
|
| |
| template<class _Uty > |
| void | destroy (_Uty *_Ptr) noexcept(std::is_nothrow_destructible< _Uty >::value) |
| | Destroys the object. Uses the object destructor.
|
| |
| size_t | max_size () const noexcept |
| | Estimate maximum array size.
|
| |
| bool | operator== (const NCollection_OccAllocator &theOther) const noexcept |
| |
| template<class U > |
| bool | operator== (const NCollection_OccAllocator< U > &theOther) const noexcept |
| |
| bool | operator!= (const NCollection_OccAllocator &theOther) const noexcept |
| |
| template<class U > |
| bool | operator!= (const NCollection_OccAllocator< U > &theOther) const noexcept |
| |
template<
typename ItemType>
class NCollection_OccAllocator< 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