Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::interprocess::ipcdetail::node_allocator_base< Version, T, SegmentManager, NodesPerBlock > Class Template Reference

#include <node_allocator.hpp>

Inheritance diagram for boost::interprocess::ipcdetail::node_allocator_base< Version, T, SegmentManager, NodesPerBlock >:
Collaboration diagram for boost::interprocess::ipcdetail::node_allocator_base< Version, T, SegmentManager, NodesPerBlock >:

Classes

struct  node_pool
 
struct  rebind
 Obtains node_allocator_base from node_allocator_base. More...
 

Public Types

typedef
SegmentManager::void_pointer 
void_pointer
 
typedef SegmentManager segment_manager
 
typedef node_allocator_base
< Version, T, SegmentManager,
NodesPerBlock > 
self_t
 
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
< node_allocator_base, Version > 
version
 
typedef
boost::container::container_detail::transform_multiallocation_chain
< typename
SegmentManager::multiallocation_chain,
T
multiallocation_chain
 

Public Member Functions

 BOOST_STATIC_ASSERT ((Version<=2))
 
 node_allocator_base (segment_manager *segment_mngr)
 Not assignable from other node_allocator_base. More...
 
 node_allocator_base (const node_allocator_base &other)
 Copy constructor from other node_allocator_base. More...
 
template<class T2 >
 node_allocator_base (const node_allocator_base< Version, T2, SegmentManager, NodesPerBlock > &other)
 Copy constructor from related node_allocator_base. More...
 
node_allocator_baseoperator= (const node_allocator_base &other)
 Assignment from other node_allocator_base. More...
 
 ~node_allocator_base ()
 Destructor, removes node_pool_t from memory if its reference count reaches to zero. More...
 
void * get_node_pool () const
 Returns a pointer to the node pool. More...
 
segment_managerget_segment_manager () const
 Returns the segment manager. More...
 

Friends

void swap (self_t &alloc1, self_t &alloc2)
 Swaps allocators. More...
 

Member Typedef Documentation

template<unsigned int Version, class T, class SegmentManager, std::size_t NodesPerBlock>
typedef boost::intrusive:: pointer_traits<void_pointer>::template rebind_pointer<const T>::type boost::interprocess::ipcdetail::node_allocator_base< Version, T, SegmentManager, NodesPerBlock >::const_pointer
template<unsigned int Version, class T, class SegmentManager, std::size_t NodesPerBlock>
typedef ipcdetail::add_reference<const value_type>::type boost::interprocess::ipcdetail::node_allocator_base< Version, T, SegmentManager, NodesPerBlock >::const_reference
template<unsigned int Version, class T, class SegmentManager, std::size_t NodesPerBlock>
typedef segment_manager::difference_type boost::interprocess::ipcdetail::node_allocator_base< Version, T, SegmentManager, NodesPerBlock >::difference_type
template<unsigned int Version, class T, class SegmentManager, std::size_t NodesPerBlock>
typedef boost::container::container_detail::transform_multiallocation_chain<typename SegmentManager::multiallocation_chain, T> boost::interprocess::ipcdetail::node_allocator_base< Version, T, SegmentManager, NodesPerBlock >::multiallocation_chain
template<unsigned int Version, class T, class SegmentManager, std::size_t NodesPerBlock>
typedef boost::intrusive:: pointer_traits<void_pointer>::template rebind_pointer<T>::type boost::interprocess::ipcdetail::node_allocator_base< Version, T, SegmentManager, NodesPerBlock >::pointer
template<unsigned int Version, class T, class SegmentManager, std::size_t NodesPerBlock>
typedef ipcdetail::add_reference<value_type>::type boost::interprocess::ipcdetail::node_allocator_base< Version, T, SegmentManager, NodesPerBlock >::reference
template<unsigned int Version, class T, class SegmentManager, std::size_t NodesPerBlock>
typedef SegmentManager boost::interprocess::ipcdetail::node_allocator_base< Version, T, SegmentManager, NodesPerBlock >::segment_manager
template<unsigned int Version, class T, class SegmentManager, std::size_t NodesPerBlock>
typedef node_allocator_base<Version, T, SegmentManager, NodesPerBlock> boost::interprocess::ipcdetail::node_allocator_base< Version, T, SegmentManager, NodesPerBlock >::self_t
template<unsigned int Version, class T, class SegmentManager, std::size_t NodesPerBlock>
typedef segment_manager::size_type boost::interprocess::ipcdetail::node_allocator_base< Version, T, SegmentManager, NodesPerBlock >::size_type
template<unsigned int Version, class T, class SegmentManager, std::size_t NodesPerBlock>
typedef T boost::interprocess::ipcdetail::node_allocator_base< Version, T, SegmentManager, NodesPerBlock >::value_type
template<unsigned int Version, class T, class SegmentManager, std::size_t NodesPerBlock>
typedef boost::interprocess::version_type<node_allocator_base, Version> boost::interprocess::ipcdetail::node_allocator_base< Version, T, SegmentManager, NodesPerBlock >::version
template<unsigned int Version, class T, class SegmentManager, std::size_t NodesPerBlock>
typedef SegmentManager::void_pointer boost::interprocess::ipcdetail::node_allocator_base< Version, T, SegmentManager, NodesPerBlock >::void_pointer

Constructor & Destructor Documentation

template<unsigned int Version, class T, class SegmentManager, std::size_t NodesPerBlock>
boost::interprocess::ipcdetail::node_allocator_base< Version, T, SegmentManager, NodesPerBlock >::node_allocator_base ( segment_manager segment_mngr)
inline

Not assignable from other node_allocator_base.

Constructor from a segment manager. If not present, constructs a node pool. Increments the reference count of the associated node pool. Can throw boost::interprocess::bad_alloc

template<unsigned int Version, class T, class SegmentManager, std::size_t NodesPerBlock>
boost::interprocess::ipcdetail::node_allocator_base< Version, T, SegmentManager, NodesPerBlock >::node_allocator_base ( const node_allocator_base< Version, T, SegmentManager, NodesPerBlock > &  other)
inline

Copy constructor from other node_allocator_base.

Increments the reference count of the associated node pool. Never throws

template<unsigned int Version, class T, class SegmentManager, std::size_t NodesPerBlock>
template<class T2 >
boost::interprocess::ipcdetail::node_allocator_base< Version, T, SegmentManager, NodesPerBlock >::node_allocator_base ( const node_allocator_base< Version, T2, SegmentManager, NodesPerBlock > &  other)
inline

Copy constructor from related node_allocator_base.

If not present, constructs a node pool. Increments the reference count of the associated node pool. Can throw boost::interprocess::bad_alloc

template<unsigned int Version, class T, class SegmentManager, std::size_t NodesPerBlock>
boost::interprocess::ipcdetail::node_allocator_base< Version, T, SegmentManager, NodesPerBlock >::~node_allocator_base ( )
inline

Destructor, removes node_pool_t from memory if its reference count reaches to zero.

Never throws

Member Function Documentation

template<unsigned int Version, class T, class SegmentManager, std::size_t NodesPerBlock>
boost::interprocess::ipcdetail::node_allocator_base< Version, T, SegmentManager, NodesPerBlock >::BOOST_STATIC_ASSERT ( (Version<=2)  )
template<unsigned int Version, class T, class SegmentManager, std::size_t NodesPerBlock>
void* boost::interprocess::ipcdetail::node_allocator_base< Version, T, SegmentManager, NodesPerBlock >::get_node_pool ( ) const
inline

Returns a pointer to the node pool.

Never throws

Referenced by boost::interprocess::ipcdetail::operator!=(), and boost::interprocess::ipcdetail::operator==().

template<unsigned int Version, class T, class SegmentManager, std::size_t NodesPerBlock>
segment_manager* boost::interprocess::ipcdetail::node_allocator_base< Version, T, SegmentManager, NodesPerBlock >::get_segment_manager ( ) const
inline

Returns the segment manager.

Never throws

template<unsigned int Version, class T, class SegmentManager, std::size_t NodesPerBlock>
node_allocator_base& boost::interprocess::ipcdetail::node_allocator_base< Version, T, SegmentManager, NodesPerBlock >::operator= ( const node_allocator_base< Version, T, SegmentManager, NodesPerBlock > &  other)
inline

Assignment from other node_allocator_base.

Friends And Related Function Documentation

template<unsigned int Version, class T, class SegmentManager, std::size_t NodesPerBlock>
void swap ( self_t alloc1,
self_t alloc2 
)
friend

Swaps allocators.

Does not throw. If each allocator is placed in a different memory segment, the result is undefined.

Referenced by boost::interprocess::ipcdetail::node_allocator_base< 1, T, SegmentManager, NodesPerBlock >::operator=().


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