Open CASCADE Technology 6.6.0
|
Implements specialization NCollection_StdAllocator<void>. More...
#include <NCollection_StdAllocator.hxx>
Data Structures | |
struct | rebind |
Public Types | |
typedef void * | pointer |
typedef const void * | const_pointer |
typedef void | value_type |
Public Member Functions | |
NCollection_StdAllocator () throw () | |
Constructor. | |
NCollection_StdAllocator (const Handle< NCollection_BaseAllocator > &theAlloc) throw () | |
Constructor. | |
NCollection_StdAllocator (const NCollection_StdAllocator &X) throw () | |
Constructor. | |
const Handle < NCollection_BaseAllocator > & | Allocator () const |
Returns an underlying NCollection_BaseAllocator instance. | |
Protected Attributes | |
Handle< NCollection_BaseAllocator > | myAlloc |
Specialization is of low value and should normally be avoided in favor of a typed specialization.
Example of use:
Handle(NCollection_IncAllocator) anIncAlloc = new NCollection_IncAllocator(); NCollection_StdAllocator<void> aVAlloc (anIncAlloc); std::vector<double, NCollection_StdAllocator<double> > aV3 (aVAlloc); aV3.push_back (10.);
typedef const void* NCollection_StdAllocator< void >::const_pointer |
typedef void* NCollection_StdAllocator< void >::pointer |
typedef void NCollection_StdAllocator< void >::value_type |
NCollection_StdAllocator< void >::NCollection_StdAllocator | ( | ) | throw () [inline] |
Creates an object using default Open CASCADE allocation mechanism, i.e. which uses Standard::Allocate() and Standard::Free() underneath.
NCollection_StdAllocator< void >::NCollection_StdAllocator | ( | const Handle< NCollection_BaseAllocator > & | theAlloc | ) | throw () [inline] |
Saves theAlloc as an underlying allocator instance.
NCollection_StdAllocator< void >::NCollection_StdAllocator | ( | const NCollection_StdAllocator< void > & | X | ) | throw () [inline] |
Copies Allocator() from X.
const Handle< NCollection_BaseAllocator >& NCollection_StdAllocator< void >::Allocator | ( | ) | const [inline] |
Returns an object specified in the constructor.
Handle< NCollection_BaseAllocator > NCollection_StdAllocator< void >::myAlloc [protected] |