PrevUpHomeNext

Class template root_ptr

boost::root_ptr

Synopsis

// In header: <boost/smart_ptr/root_ptr.hpp>

template<typename T> 
class root_ptr : public boost::node_proxy, public boost::node_ptr< T > {
public:
  // construct/copy/destruct
  root_ptr();
  root_ptr(root_ptr const &);
  template<typename V, typename PoolAllocator> 
    root_ptr(node< V, PoolAllocator > *);
  template<typename V> root_ptr& operator=(node_ptr< V > const &);
  root_ptr& operator=(node_ptr< T > const &);
  template<typename V> root_ptr& operator=(root_ptr< V > const &);
  root_ptr& operator=(root_ptr< T > const &);
  template<typename V, typename PoolAllocator> 
    root_ptr& operator=(node< V, PoolAllocator > *);

  // public member functions
  node_proxy & proxy();
  node_proxy const & proxy() const;
};

Description

Deterministic region based memory manager.

Complete memory management utility on top of standard reference counting.

[Note] Note

Needs to be instanciated for the use of further node_ptr<> .

root_ptr public construct/copy/destruct

  1. root_ptr();

    Initialization of a pointer.

  2. root_ptr(root_ptr const & p);

    Initialization of a pointer.

    Parameters:

    p

    New pointer to manage.

  3. template<typename V, typename PoolAllocator> 
      root_ptr(node< V, PoolAllocator > * p);

    Initialization of a pointer.

    Parameters:

    p

    New pointee object to manage.

  4. template<typename V> root_ptr& operator=(node_ptr< V > const & p);

    Assignment.

    Parameters:

    p

    New pointer to manage.

  5. root_ptr& operator=(node_ptr< T > const & p);

    Assignment.

    Parameters:

    p

    New pointer to manage.

  6. template<typename V> root_ptr& operator=(root_ptr< V > const & p);

    Assignment.

    Parameters:

    p

    New pointer to manage.

  7. root_ptr& operator=(root_ptr< T > const & p);

    Assignment.

    Parameters:

    p

    New pointer to manage.

  8. template<typename V, typename PoolAllocator> 
      root_ptr& operator=(node< V, PoolAllocator > * p);

    Assignment.

    Parameters:

    p

    New pointee object to manage.

root_ptr public member functions

  1. node_proxy & proxy();

    Cast operation helper.

    Returns:

    node_proxy part of root_ptr .

  2. node_proxy const & proxy() const;

    Cast operation helper.

    Returns:

    node_proxy part of root_ptr .


PrevUpHomeNext