CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
OdClrMemAllocator< T > Class Template Reference

#include <OdArray.h>

Inheritance diagram for OdClrMemAllocator< T >:
OdMemoryAllocator< T >

Public Types

typedef unsigned int size_type
 
- Public Types inherited from OdMemoryAllocator< T >
typedef unsigned int size_type
 

Static Public Member Functions

static void copyConstructFill (T *pDestination, size_type numElements, const T &value)
 
static void copyConstructRange (T *pDestination, const T *pSource, size_type numElements)
 
static void defaultConstruct (T *pElement)
 
static void defaultConstructFill (T *pDestination, size_type numElements)
 
- Static Public Member Functions inherited from OdMemoryAllocator< T >
static void copyAssignRangeDisjoint (T *pDestination, const T *pSource, size_type numElements)
 
static void copyAssignRange (T *pDestination, const T *pSource, size_type numElements)
 
static void moveAssignRange (T *pDestination, T *pSource, size_type numElements)
 
static void defaultConstruct (T *)
 
static void copyConstruct (T *pElement, const T &value)
 
static void moveConstruct (T *pElement, T &&value)
 
template<class... Args>
static void construct (T *pDestination, Args &&... args)
 
static void copyConstructFill (T *pDestination, size_type numElements, const T &value)
 
static void copyConstructRange (T *pDestination, const T *pSource, size_type numElements)
 
static void moveConstructRange (T *pDestination, T *pSource, size_type numElements)
 
static void defaultConstructFill (T *, size_type)
 
static void destroy (T *pObject)
 
static void destroyRange (T *, size_type)
 
static bool useRealloc ()
 

Detailed Description

template<class T>
class OdClrMemAllocator< T >

This template class implements memory allocation functions within the ODA Platform.

See also
TD_Db

<group Other_Classes>

Definition at line 332 of file OdArray.h.

Member Typedef Documentation

◆ size_type

template<class T>
typedef unsigned int OdClrMemAllocator< T >::size_type

Definition at line 335 of file OdArray.h.

Member Function Documentation

◆ copyConstructFill()

template<class T>
static void OdClrMemAllocator< T >::copyConstructFill ( T * pDestination,
size_type numElements,
const T & value )
inlinestatic

This function performs a copy constructor on a destination range, copying the same source element.

Parameters
pDestination[in] Pointer to the destination.
numElements[in] Number of elements.
value[in] Value for the elements.

Definition at line 344 of file OdArray.h.

◆ copyConstructRange()

template<class T>
static void OdClrMemAllocator< T >::copyConstructRange ( T * pDestination,
const T * pSource,
size_type numElements )
inlinestatic

This function performs a copy constructor from a source range to a destination range.

Parameters
pDestination[in] Pointer to the destination.
pSource[in] Pointer to the source.
numElements[in] Number of elements.

Definition at line 359 of file OdArray.h.

◆ defaultConstruct()

template<class T>
static void OdClrMemAllocator< T >::defaultConstruct ( T * pElement)
inlinestatic

This function performs a default constructor on one memory location.

Parameters
pElement[out] Receives the element.
Remarks
In some memory allocators, the method performs value initialization instead of default initialization, i.e., primitive types are zero-initialized instead of being left with undefined values.

Definition at line 376 of file OdArray.h.

◆ defaultConstructFill()

template<class T>
static void OdClrMemAllocator< T >::defaultConstructFill ( T * pDestination,
size_type numElements )
inlinestatic

This function performs default constructor on destination range.

Parameters
pDestination[in] Pointer to the destination.
numElements[in] Number of elements.
Remarks
In some memory allocators, the method performs a value initialization instead of default initialization, i.e., primitive types are zero-initialized instead of being left with undefined values.

Definition at line 393 of file OdArray.h.


The documentation for this class was generated from the following file: