|
ThePEG
1.8.0
|
ConstRCPtr is a reference counted (smart) const pointer. More...
#include <RCPtr.h>

Public Types | |
| typedef void | iterator_category |
| Template argument typedef. More... | |
| typedef void | difference_type |
| Template argument typedef. More... | |
| typedef T * | pointer |
| Template argument typedef. More... | |
| typedef const T * | const_pointer |
| Template argument typedef. More... | |
| typedef T & | reference |
| Template argument typedef. More... | |
| typedef const T & | const_reference |
| Template argument typedef. More... | |
| typedef T | value_type |
| Template argument typedef. More... | |
Public Member Functions | |
| ConstRCPtr () | |
| Constructor for null pointer. | |
| ConstRCPtr (const ConstRCPtr &p) | |
| Copy constructor. | |
| template<typename UPtr > | |
| ConstRCPtr (const UPtr &u) | |
| Copyconstructor for class UPtr which has operator-> defined resulting in a value implicitly convertible to const T *. | |
| ConstRCPtr (const_pointer p) | |
| Construction from real pointer. | |
| ~ConstRCPtr () | |
| Destructor. More... | |
| ConstRCPtr & | operator= (const ConstRCPtr &p) |
| Assignment. | |
| template<typename UPtr > | |
| ConstRCPtr & | operator= (const UPtr &u) |
| Assignment from class UPtr which has operator-> defined resulting in a value implicitly convertible to const T *. | |
| template<typename UPtr > | |
| ConstRCPtr & | assignDynamic (const UPtr &u) |
| Assignment from class UPtr which has operator-> defined resulting in a value which can be cast dynamically to const T *. | |
| void | swap (ConstRCPtr &p) |
| Make p point to the object pointed to by this and vice versa. | |
| bool | operator== (const ConstRCPtr &p) const |
| Test for equality of the underlying pointers. | |
| bool | operator!= (const ConstRCPtr &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 ConstRCPtr &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 const T * () const | |
| Returns the underlying pointer. | |
| const_pointer | operator-> () const |
| Member access. | |
| const_reference | operator* () const |
| Dereferencing. | |
Private Member Functions | |
| void | increment () |
| Increment the counter of the object pointed to. | |
| void | release () |
| Stop pointing to the current object and delete it if this was the last pointer to it. | |
Private Attributes | |
| const_pointer | ptr |
| The actual pointer. | |
Additional Inherited Members | |
Protected Member Functions inherited from ThePEG::Pointer::RCPtrBase | |
| void | increment (const ReferenceCounted *rcp) |
| Increment the counter of a reference counted object. | |
| bool | release (const ReferenceCounted *rcp) |
| Decrement the counter of a reference counted object. | |
ConstRCPtr is a reference counted (smart) const 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.
| typedef const T* ThePEG::Pointer::ConstRCPtr< T >::const_pointer |
| typedef const T& ThePEG::Pointer::ConstRCPtr< T >::const_reference |
| typedef void ThePEG::Pointer::ConstRCPtr< T >::difference_type |
| typedef void ThePEG::Pointer::ConstRCPtr< T >::iterator_category |
| typedef T* ThePEG::Pointer::ConstRCPtr< T >::pointer |
| typedef T& ThePEG::Pointer::ConstRCPtr< T >::reference |
| typedef T ThePEG::Pointer::ConstRCPtr< T >::value_type |
|
inline |
Destructor.
Deletes the object pointed to if this is the last pointer to it.
Definition at line 362 of file RCPtr.h.
References ThePEG::Pointer::ConstRCPtr< T >::release().
1.8.9.1