#include <private_node_allocator.hpp>
Classes | |
struct | node_pool |
struct | rebind |
Obtains node_allocator from other node_allocator. More... | |
Public Types | |
typedef SegmentManager | segment_manager |
typedef SegmentManager::void_pointer | void_pointer |
typedef boost::intrusive::pointer_traits < void_pointer >::template rebind_pointer< T >::type | pointer |
typedef boost::intrusive::pointer_traits < void_pointer >::template rebind_pointer< const T > ::type | const_pointer |
typedef T | value_type |
typedef ipcdetail::add_reference < value_type >::type | reference |
typedef ipcdetail::add_reference < const value_type >::type | const_reference |
typedef segment_manager::size_type | size_type |
typedef segment_manager::difference_type | difference_type |
typedef boost::interprocess::version_type < private_node_allocator_base, Version > | version |
typedef boost::container::container_detail::transform_multiallocation_chain < typename SegmentManager::multiallocation_chain, T > | multiallocation_chain |
Public Member Functions | |
private_node_allocator_base (segment_manager *segment_mngr) | |
Constructor from a segment manager. More... | |
private_node_allocator_base (const private_node_allocator_base &other) | |
Copy constructor from other private_node_allocator_base. Never throws. More... | |
template<class T2 > | |
private_node_allocator_base (const private_node_allocator_base< Version, T2, SegmentManager, NodesPerBlock > &other) | |
Copy constructor from related private_node_allocator_base. Never throws. More... | |
~private_node_allocator_base () | |
Destructor, frees all used memory. Never throws. More... | |
segment_manager * | get_segment_manager () const |
Returns the segment manager. Never throws. More... | |
node_pool_t * | get_node_pool () const |
Returns the internal node pool. Never throws. More... | |
Friends | |
void | swap (self_t &alloc1, self_t &alloc2) |
Swaps allocators. More... | |
typedef boost::intrusive:: pointer_traits<void_pointer>::template rebind_pointer<const T>::type boost::interprocess::ipcdetail::private_node_allocator_base< Version, T, SegmentManager, NodesPerBlock >::const_pointer |
typedef ipcdetail::add_reference<const value_type>::type boost::interprocess::ipcdetail::private_node_allocator_base< Version, T, SegmentManager, NodesPerBlock >::const_reference |
typedef segment_manager::difference_type boost::interprocess::ipcdetail::private_node_allocator_base< Version, T, SegmentManager, NodesPerBlock >::difference_type |
typedef boost::container::container_detail::transform_multiallocation_chain<typename SegmentManager::multiallocation_chain, T> boost::interprocess::ipcdetail::private_node_allocator_base< Version, T, SegmentManager, NodesPerBlock >::multiallocation_chain |
typedef boost::intrusive:: pointer_traits<void_pointer>::template rebind_pointer<T>::type boost::interprocess::ipcdetail::private_node_allocator_base< Version, T, SegmentManager, NodesPerBlock >::pointer |
typedef ipcdetail::add_reference<value_type>::type boost::interprocess::ipcdetail::private_node_allocator_base< Version, T, SegmentManager, NodesPerBlock >::reference |
typedef SegmentManager boost::interprocess::ipcdetail::private_node_allocator_base< Version, T, SegmentManager, NodesPerBlock >::segment_manager |
typedef segment_manager::size_type boost::interprocess::ipcdetail::private_node_allocator_base< Version, T, SegmentManager, NodesPerBlock >::size_type |
typedef T boost::interprocess::ipcdetail::private_node_allocator_base< Version, T, SegmentManager, NodesPerBlock >::value_type |
typedef boost::interprocess::version_type<private_node_allocator_base, Version> boost::interprocess::ipcdetail::private_node_allocator_base< Version, T, SegmentManager, NodesPerBlock >::version |
typedef SegmentManager::void_pointer boost::interprocess::ipcdetail::private_node_allocator_base< Version, T, SegmentManager, NodesPerBlock >::void_pointer |
|
inline |
Constructor from a segment manager.
|
inline |
Copy constructor from other private_node_allocator_base. Never throws.
|
inline |
Copy constructor from related private_node_allocator_base. Never throws.
|
inline |
Destructor, frees all used memory. Never throws.
|
inline |
Returns the internal node pool. Never throws.
|
inline |
Returns the segment manager. Never throws.
|
friend |
Swaps allocators.
Does not throw. If each allocator is placed in a different shared memory segments, the result is undefined.