|
| | RCPtr () |
| | More...
|
| |
|
| RCPtr (const RCPtr &p) |
| | Copy constructor.
|
| |
|
template<typename UPtr > |
| | RCPtr (const UPtr &u) |
| | Copy constructor for class UPtr which has operator-> defined resulting in a value implicitly convertible to T *.
|
| |
|
| RCPtr (pointer p) |
| | Construction from real pointer.
|
| |
| | ~RCPtr () |
| | Destructor. More...
|
| |
|
RCPtr & | create () |
| | Allocate and construct an object of class T and point to it, possibly deleting the object pointed to before.
|
| |
|
RCPtr & | create (const_reference t) |
| | Allocate and copy-construct an object of class T and point to it, possibly deleting the object pointed to before.
|
| |
|
RCPtr & | operator= (const RCPtr &p) |
| | Assignment.
|
| |
|
template<typename UPtr > |
| RCPtr & | operator= (const UPtr &u) |
| | Assignment from class UPtr which has operator-> defined resulting in a value implicitly convertible to T *.
|
| |
|
template<typename UPtr > |
| RCPtr & | assignDynamic (const UPtr &u) |
| | Assignment from class UPtr which has operator-> defined resulting in a value which can be cast dynamically to T *.
|
| |
|
template<typename UPtr > |
| RCPtr & | assignConst (const UPtr &u) |
| | Assignment from class UPtr which has operator-> defined resulting in a value which can be const_cast'ed to T *.
|
| |
|
void | swap (RCPtr &p) |
| | Make p point to the object pointed to by this and vice versa.
|
| |
|
bool | operator== (const RCPtr &p) const |
| | Test for equality of the underlying pointers.
|
| |
|
bool | operator!= (const RCPtr &p) const |
| | Test for inequality of the underlying pointers.
|
| |
|
bool | operator== (const_pointer p) const |
| | Test for equality of the underlying pointers.
|
| |
|
bool | operator!= (const_pointer p) const |
| | Test for inequality of the underlying pointers.
|
| |
|
template<typename UPtr > |
| bool | operator== (const UPtr &u) const |
| | Test for equality of the underlying pointers.
|
| |
|
template<typename UPtr > |
| bool | operator!= (const UPtr &u) const |
| | Test for inequality of the underlying pointers.
|
| |
|
bool | operator< (const RCPtr &p) const |
| | Test for ordering.
|
| |
|
bool | operator< (const_pointer p) const |
| | Test for ordering.
|
| |
|
bool | operator! () const |
| | Returns true if the underlying pointer is null.
|
| |
|
| operator T * () const |
| | Returns the underlying pointer.
|
| |
|
pointer | operator-> () const |
| | Member access.
|
| |
|
reference | operator* () const |
| | Dereferencing.
|
| |
template<typename T>
class ThePEG::Pointer::RCPtr< T >
RCPtr is a reference counted (smart) pointer.
Objects created using the RCPtr::create() methods will continue living until no RCPtr or ConstRCPtr are pointing to it, at which point it will be deleted.
- See also
- ReferenceCounted
Definition at line 60 of file RCPtr.h.