|
| | NCollection_OccAllocator () |
| | Constructor. Creates an object using the default Open CASCADE allocation mechanism, i.e., which uses Standard::Allocate() and Standard::Free() underneath.
|
| |
| | NCollection_OccAllocator (const Handle< NCollection_BaseAllocator > &theAlloc) |
| | Constructor.
|
| |
| | NCollection_OccAllocator (Handle< NCollection_BaseAllocator > &&theAlloc) |
| | Constructor.
|
| |
| | NCollection_OccAllocator (const NCollection_OccAllocator &theOther) |
| | Constructor.
|
| |
| | NCollection_OccAllocator (NCollection_OccAllocator &&theOther) noexcept |
| | Constructor.
|
| |
| NCollection_OccAllocator & | operator= (const NCollection_OccAllocator &theOther) |
| | 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 Handle< NCollection_BaseAllocator > &theAlloc) |
| |
| const Handle< NCollection_BaseAllocator > & | Allocator () const |
| |
| pointer | allocate (size_type theSize, const void *=0) |
| | 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 |
| | Returns an object address.
|
| |
| const_pointer | address (const_reference theItem) const |
| | Returns an object address.
|
| |
| template<class _Uty> |
| void | destroy (_Uty *_Ptr) |
| | Destroys the object. Uses the object destructor.
|
| |
| size_t | max_size () const noexcept |
| | Estimate maximum array size.
|
| |
| bool | operator== (const NCollection_OccAllocator &theOther) const |
| |
| template<class U> |
| bool | operator== (const NCollection_OccAllocator< U > &theOther) const |
| |
| bool | operator!= (const NCollection_OccAllocator &theOther) const |
| |
| template<class U> |
| bool | operator!= (const NCollection_OccAllocator< U > &theOther) const |
| |
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:
std::list<TopoDS_Shape, NCollection_OccAllocator<TopoDS_Shape>> aList(anSAllocator);
aList.push_back(aSolid);
Describes functions to build parallelepiped boxes. A MakeBox object provides a framework for:
Definition BRepPrimAPI_MakeBox.hxx:51
NCollection_OccAllocator()
Constructor. Creates an object using the default Open CASCADE allocation mechanism,...
Definition NCollection_OccAllocator.hxx:57
Describes a solid shape which.
Definition TopoDS_Solid.hxx:31