ACE_Allocator.
More...
#include <DurabilityArray.h>
Public Member Functions | |
| DurabilityArray (size_t size, ACE_Allocator *allocator) | |
| DurabilityArray (size_t size, T const &default_value, ACE_Allocator *allocator) | |
| DurabilityArray (DurabilityArray< T > const &rhs) | |
| ~DurabilityArray () | |
| void | operator= (DurabilityArray< T > const &rhs) |
| void | set_allocator (ACE_Allocator *allocator) |
| Reset allocator. | |
| void | swap (DurabilityArray< T > &rhs) |
ACE_Allocator.
This class only exists to provide a means to reset the allocator used by the ACE_Array_Base base class. It has a specific use case, namely to correctly support instances created by a persistent allocator. The allocator address may change between process runs, meaning the allocator address stored in the persistent ACE_Array_Base instance will be invalid. Use the set_allocator() method to reset the allocator address before performing any operations that will require use of the allocator (e.g. increasing the size of the array).
| OpenDDS::DCPS::DurabilityArray< T >::DurabilityArray | ( | size_t | size, | |
| ACE_Allocator * | allocator | |||
| ) | [inline] |
| OpenDDS::DCPS::DurabilityArray< T >::DurabilityArray | ( | size_t | size, | |
| T const & | default_value, | |||
| ACE_Allocator * | allocator | |||
| ) | [inline] |
| OpenDDS::DCPS::DurabilityArray< T >::DurabilityArray | ( | DurabilityArray< T > const & | rhs | ) | [inline] |
| OpenDDS::DCPS::DurabilityArray< T >::~DurabilityArray | ( | ) | [inline] |
| void OpenDDS::DCPS::DurabilityArray< T >::operator= | ( | DurabilityArray< T > const & | rhs | ) | [inline] |
| void OpenDDS::DCPS::DurabilityArray< T >::set_allocator | ( | ACE_Allocator * | allocator | ) | [inline] |
Reset allocator.
| void OpenDDS::DCPS::DurabilityArray< T >::swap | ( | DurabilityArray< T > & | rhs | ) | [inline] |
1.4.7