![]() |
Rosetta Utilities
2014.16.56682
|
Shared-ownership intrusive reference-counted smart pointer. More...
#include <owning_ptr.hh>
Public Types | |
| typedef T | Value |
| typedef T & | Reference |
| typedef T const & | ConstReference |
| typedef T * | Pointer |
| typedef T const * | ConstPointer |
| typedef T | value_type |
| typedef T | element_type |
| typedef T & | reference |
| typedef T const & | const_reference |
| typedef T * | pointer |
| typedef T const * | const_pointer |
Public Member Functions | |
| owning_ptr () | |
| Default constructor. More... | |
| owning_ptr (owning_ptr const &a) | |
| Copy constructor (implicit) More... | |
| template<typename Assignable > | |
| owning_ptr (owning_ptr< Assignable > const &a) | |
| Assignable copy constructor (implicit) More... | |
| owning_ptr (pointer object_p) | |
| Object pointer constructor (implicit) More... | |
| owning_ptr (reference object) | |
| Object constructor. More... | |
| ~owning_ptr () | |
| Destructor. More... | |
| owning_ptr & | operator= (owning_ptr const &a) |
| Copy assignment. More... | |
| template<typename Assignable > | |
| owning_ptr & | operator= (owning_ptr< Assignable > const &a) |
| Assignable copy assignment. More... | |
| owning_ptr & | operator= (pointer object_p) |
| Object pointer assignment. More... | |
| owning_ptr & | operator= (reference object) |
| Object assignment. More... | |
| operator bool () const | |
| bool conversion: points to something? More... | |
| reference | operator* () const |
| Dereference. More... | |
| pointer | operator-> () const |
| Indirection. More... | |
| pointer | operator() () const |
| Raw pointer. More... | |
| pointer | get () const |
| Raw pointer. More... | |
| bool | operator! () const |
| Points to nothing? (some compilers need this) More... | |
| void | reset_to_null () |
| Release ownership and reset. More... | |
| void | relinquish_ownership () |
| Release ownership but leave pointed memory alone. More... | |
| void | swap (owning_ptr &a) |
| Swap. More... | |
Private Attributes | |
| pointer | p_ |
| Pointer to object. More... | |
Friends | |
| template<typename > | |
| class | owning_ptr |
Shared-ownership intrusive reference-counted smart pointer.
| typedef T const* utility::pointer::owning_ptr< T >::const_pointer |
| typedef T const& utility::pointer::owning_ptr< T >::const_reference |
| typedef T const* utility::pointer::owning_ptr< T >::ConstPointer |
| typedef T const& utility::pointer::owning_ptr< T >::ConstReference |
| typedef T utility::pointer::owning_ptr< T >::element_type |
| typedef T* utility::pointer::owning_ptr< T >::Pointer |
| typedef T* utility::pointer::owning_ptr< T >::pointer |
| typedef T& utility::pointer::owning_ptr< T >::Reference |
| typedef T& utility::pointer::owning_ptr< T >::reference |
| typedef T utility::pointer::owning_ptr< T >::Value |
| typedef T utility::pointer::owning_ptr< T >::value_type |
|
inline |
Default constructor.
|
inline |
Copy constructor (implicit)
|
inline |
Assignable copy constructor (implicit)
|
inline |
Object pointer constructor (implicit)
|
inlineexplicit |
Object constructor.
|
inline |
Destructor.
|
inline |
Raw pointer.
Referenced by utility::COP_to_Python_converter< T >::convert(), utility::signals::Link::operator==(), and basic::Tracer::t_flush().
|
inline |
bool conversion: points to something?
|
inline |
Points to nothing? (some compilers need this)
|
inline |
Raw pointer.
|
inline |
Dereference.
|
inline |
Indirection.
|
inline |
Copy assignment.
|
inline |
Assignable copy assignment.
|
inline |
Object pointer assignment.
|
inline |
Object assignment.
|
inline |
Release ownership but leave pointed memory alone.
|
inline |
Release ownership and reset.
|
inline |
Swap.
|
private |
Pointer to object.
Referenced by utility::pointer::owning_ptr< numeric::random::uniform_RG >::get(), utility::pointer::owning_ptr< numeric::random::uniform_RG >::operator bool(), utility::pointer::owning_ptr< numeric::random::uniform_RG >::operator!(), utility::pointer::owning_ptr< numeric::random::uniform_RG >::operator()(), utility::pointer::owning_ptr< numeric::random::uniform_RG >::operator*(), utility::pointer::owning_ptr< numeric::random::uniform_RG >::operator->(), utility::pointer::owning_ptr< numeric::random::uniform_RG >::operator=(), utility::pointer::owning_ptr< numeric::random::uniform_RG >::owning_ptr(), utility::pointer::owning_ptr< numeric::random::uniform_RG >::relinquish_ownership(), utility::pointer::owning_ptr< numeric::random::uniform_RG >::reset_to_null(), utility::pointer::owning_ptr< numeric::random::uniform_RG >::swap(), and utility::pointer::owning_ptr< numeric::random::uniform_RG >::~owning_ptr().
1.8.7