CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | List of all members
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 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 *pElement)
 
static void copyConstruct (T *pElement, const T &value)
 
static void moveConstruct (T *pElement, T &&value)
 
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 *pDestination, size_type numElements)
 
static void destroy (T *pObject)
 
static void destroyRange (T *objects, size_type numObjects)
 
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 343 of file OdArray.h.

Member Typedef Documentation

◆ size_type

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

Definition at line 346 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 355 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 370 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 388 of file OdArray.h.


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