CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | List of all members
OdPlainObjectsAllocator< T > Class Template Reference

#include <OdArray.h>

Inheritance diagram for OdPlainObjectsAllocator< T >:
OdObjectsAllocator< T >

Public Types

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

Static Public Member Functions

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 bool useRealloc ()
 
- Static Public Member Functions inherited from OdObjectsAllocator< 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 defaultConstructFill (T *pDestination, size_type numElements)
 
static void copyConstructRange (T *pDestination, const T *pSource, size_type numElements)
 
static void moveConstructRange (T *pDestination, T *pSource, 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 OdPlainObjectsAllocator< T >

This template class implements object allocation functions for objects within the ODA Platform.

Remarks
This class is for objects that can be copied with memcpy() (plain objects). For objects that must be copied with an assignment operator, see OdObjectsAllocator.
See also
TD_Db

<group Other_Classes>

Definition at line 689 of file OdArray.h.

Member Typedef Documentation

◆ size_type

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

Definition at line 692 of file OdArray.h.

Member Function Documentation

◆ copyAssignRange()

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

This function performs a copy assignment from a source range to a destination range (ranges may overlap).

Parameters
pDestination[in] Pointer to the destination.
pSource[in] Pointer to the source.
numElements[in] Number of elements.
Remarks
If the source and destination regions overlap, the method copies the overlapping region before it is overwritten. Use copyAssignRangeDisjoint() to handle non-overlapping regions.

Definition at line 730 of file OdArray.h.

◆ copyAssignRangeDisjoint()

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

This function performs a copy assignment from a source range to a destination range (ranges must not overlap).

Parameters
pDestination[in] Pointer to the destination.
pSource[in] Pointer to the source.
numElements[in] Number of elements.
Remarks
If the source and destination regions overlap, the behavior of the function is undefined. Use copyAssignRange() to handle overlapping regions.

Definition at line 705 of file OdArray.h.

◆ moveAssignRange()

template<class T >
static void OdPlainObjectsAllocator< T >::moveAssignRange ( T *  pDestination,
T *  pSource,
size_type  numElements 
)
inlinestatic

This function performs a move assignment from a source range to a destination range (ranges may overlap).

Parameters
pDestination[in] Pointer to the destination.
pSource[in] Pointer to the source.
numElements[in] Number of elements.
Remarks
If the source and destination regions overlap, the method moves the overlapping region before it is overwritten.

Definition at line 754 of file OdArray.h.

◆ useRealloc()

template<class T >
static bool OdPlainObjectsAllocator< T >::useRealloc ( )
inlinestatic

Indicates whether odrxRealloc can be used to resize an array.

Returns
The true value if odrxRealloc can be used to resize an array.
Remarks
This function always returns true.

Definition at line 776 of file OdArray.h.


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