Open CASCADE Technology 7.8.0
|
Implements allocator requirements as defined in ISO C++ Standard 2003, section 20.1.5. More...
#include <NCollection_OccAllocator.hxx>
Data Structures | |
struct | rebind |
Public Types | |
typedef ItemType | value_type |
typedef value_type * | pointer |
typedef const value_type * | const_pointer |
typedef value_type & | reference |
typedef const value_type & | const_reference |
typedef size_t | size_type |
typedef ptrdiff_t | difference_type |
typedef std::false_type | propagate_on_container_move_assignment |
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:
typedef const value_type* NCollection_OccAllocator< ItemType >::const_pointer |
typedef const value_type& NCollection_OccAllocator< ItemType >::const_reference |
typedef ptrdiff_t NCollection_OccAllocator< ItemType >::difference_type |
typedef value_type* NCollection_OccAllocator< ItemType >::pointer |
typedef std::false_type NCollection_OccAllocator< ItemType >::propagate_on_container_move_assignment |
typedef value_type& NCollection_OccAllocator< ItemType >::reference |
typedef size_t NCollection_OccAllocator< ItemType >::size_type |
typedef ItemType NCollection_OccAllocator< ItemType >::value_type |
|
inline |
Constructor. Creates an object using the default Open CASCADE allocation mechanism, i.e., which uses Standard::Allocate() and Standard::Free() underneath.
|
inline |
Constructor.
|
inline |
Constructor.
|
inline |
Constructor.
|
inlinenoexcept |
Constructor.
|
inline |
Constructor. Creates an object using the default Open CASCADE allocation mechanism, i.e., which uses Standard::Allocate() and Standard::Free() underneath.
|
inline |
Returns an object address.
|
inline |
Returns an object address.
|
inline |
Allocates memory for theSize objects.
|
inline |
|
inline |
Constructs an object. Uses placement new operator and copy constructor to construct an object.
|
inline |
Frees previously allocated memory.
|
inline |
Template version of function Free(), nullifies the argument pointer.
thePtr | - previously allocated memory block to be freed |
|
inline |
Destroys the object. Uses the object destructor.
|
inlinenoexcept |
Estimate maximum array size.
|
inline |
|
inline |
|
inline |
Assignment operator.
|
inline |
Assignment operator.
|
inlinenoexcept |
Assignment operator.
|
inline |
|
inline |
|
inline |