ThePEG 2.3.0
|
TransientRCPtr is a simple wrapper around a bare pointer which can be assigned to and from an RCPtr and ConstRCPtr without problem. More...
#include <RCPtr.h>
Public Types | |
typedef void | iterator_category |
Template argument typedef. | |
typedef void | difference_type |
Template argument typedef. | |
typedef T * | pointer |
Template argument typedef. | |
typedef const T * | const_pointer |
Template argument typedef. | |
typedef T & | reference |
Template argument typedef. | |
typedef const T & | const_reference |
Template argument typedef. | |
typedef T | value_type |
Template argument typedef. | |
Public Member Functions | |
TransientRCPtr () | |
Constructor for null pointer. | |
TransientRCPtr (decltype(nullptr)) | |
Constructor for nullptr. | |
TransientRCPtr (const TransientRCPtr &p) | |
Copy constructor. | |
template<typename UPtr > | |
TransientRCPtr (const UPtr &u) | |
Copyconstructor for class UPtr which has operator-> defined resulting in a value implicitly convertible to T *. | |
TransientRCPtr (pointer p) | |
Construction from real pointer. | |
~TransientRCPtr () | |
Destructor. | |
TransientRCPtr & | operator= (const TransientRCPtr &p) |
Assignment. | |
template<typename UPtr > | |
TransientRCPtr & | operator= (const UPtr &u) |
Assignment from class UPtr which has operator-> defined resulting in a value implicitly convertible to T *. | |
template<typename UPtr > | |
TransientRCPtr & | 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 > | |
TransientRCPtr & | assignConst (const UPtr &u) |
Assignment from class UPtr which has operator-> defined resulting in a value whcih can be const_cast'ed to T *. | |
bool | operator== (const TransientRCPtr &p) const |
Test for equality of the underlying pointers. | |
bool | operator!= (const TransientRCPtr &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 TransientRCPtr &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. | |
Private Attributes | |
pointer | ptr |
The actual pointer. | |
TransientRCPtr is a simple wrapper around a bare pointer which can be assigned to and from an RCPtr and ConstRCPtr without problem.
typedef const T* ThePEG::Pointer::TransientRCPtr< T >::const_pointer |
typedef const T& ThePEG::Pointer::TransientRCPtr< T >::const_reference |
typedef void ThePEG::Pointer::TransientRCPtr< T >::difference_type |
typedef void ThePEG::Pointer::TransientRCPtr< T >::iterator_category |
typedef T* ThePEG::Pointer::TransientRCPtr< T >::pointer |
typedef T& ThePEG::Pointer::TransientRCPtr< T >::reference |
typedef T ThePEG::Pointer::TransientRCPtr< T >::value_type |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
Assignment from class UPtr which has operator-> defined resulting in a value whcih can be const_cast'ed to T *.
Definition at line 605 of file RCPtr.h.
References ThePEG::Pointer::TransientRCPtr< T >::ptr.
|
inline |
Assignment from class UPtr which has operator-> defined resulting in a value which can be cast dynamically to T *.
Definition at line 595 of file RCPtr.h.
References ThePEG::Pointer::TransientRCPtr< T >::ptr.
|
inline |
Returns the underlying pointer.
Definition at line 666 of file RCPtr.h.
References ThePEG::Pointer::TransientRCPtr< T >::ptr.
|
inline |
Returns true if the underlying pointer is null.
Definition at line 661 of file RCPtr.h.
References ThePEG::Pointer::TransientRCPtr< T >::ptr.
|
inline |
Test for inequality of the underlying pointers.
Definition at line 618 of file RCPtr.h.
References ThePEG::Pointer::TransientRCPtr< T >::ptr.
|
inline |
Test for inequality of the underlying pointers.
Definition at line 640 of file RCPtr.h.
References ThePEG::Pointer::TransientRCPtr< T >::ptr.
|
inline |
Test for inequality of the underlying pointers.
Definition at line 628 of file RCPtr.h.
References ThePEG::Pointer::TransientRCPtr< T >::ptr.
|
inline |
Dereferencing.
Definition at line 676 of file RCPtr.h.
References ThePEG::Pointer::TransientRCPtr< T >::ptr.
|
inline |
Member access.
Definition at line 671 of file RCPtr.h.
References ThePEG::Pointer::TransientRCPtr< T >::ptr.
|
inline |
Test for ordering.
Definition at line 645 of file RCPtr.h.
References ThePEG::Pointer::TransientRCPtr< T >::ptr.
|
inline |
Test for ordering.
Definition at line 653 of file RCPtr.h.
References ThePEG::Pointer::TransientRCPtr< T >::ptr.
|
inline |
Assignment.
Definition at line 575 of file RCPtr.h.
References ThePEG::Pointer::TransientRCPtr< T >::ptr.
|
inline |
Assignment from class UPtr which has operator-> defined resulting in a value implicitly convertible to T *.
Definition at line 585 of file RCPtr.h.
References ThePEG::Pointer::TransientRCPtr< T >::ptr.
|
inline |
Test for equality of the underlying pointers.
Definition at line 613 of file RCPtr.h.
References ThePEG::Pointer::TransientRCPtr< T >::ptr.
|
inline |
Test for equality of the underlying pointers.
Definition at line 634 of file RCPtr.h.
References ThePEG::Pointer::TransientRCPtr< T >::ptr.
|
inline |
Test for equality of the underlying pointers.
Definition at line 623 of file RCPtr.h.
References ThePEG::Pointer::TransientRCPtr< T >::ptr.
|
private |
The actual pointer.
Definition at line 683 of file RCPtr.h.
Referenced by ThePEG::Pointer::TransientRCPtr< T >::assignConst(), ThePEG::Pointer::TransientRCPtr< T >::assignDynamic(), ThePEG::Pointer::TransientRCPtr< T >::operator T*(), ThePEG::Pointer::TransientRCPtr< T >::operator!(), ThePEG::Pointer::TransientRCPtr< T >::operator!=(), ThePEG::Pointer::TransientRCPtr< T >::operator*(), ThePEG::Pointer::TransientRCPtr< T >::operator->(), ThePEG::Pointer::TransientRCPtr< T >::operator<(), ThePEG::Pointer::TransientRCPtr< T >::operator=(), and ThePEG::Pointer::TransientRCPtr< T >::operator==().