ThePEG::Pointer::TransientRCPtr< T > Class Template Reference

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>

List of all members.

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 (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.
TransientRCPtroperator= (const TransientRCPtr &p)
 Assignment.
template<typename UPtr>
TransientRCPtroperator= (const UPtr &u)
 Assignment from class UPtr which has operator-> defined resulting in a value implicitly convertible to T *.
template<typename UPtr>
TransientRCPtrassignDynamic (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>
TransientRCPtrassignConst (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.


Detailed Description

template<typename T>
class ThePEG::Pointer::TransientRCPtr< T >

TransientRCPtr is a simple wrapper around a bare pointer which can be assigned to and from an RCPtr and ConstRCPtr without problem.

See also:
RCPtr

ConstRCPtr

Definition at line 509 of file RCPtr.h.


Member Typedef Documentation

template<typename T>
typedef void ThePEG::Pointer::TransientRCPtr< T >::iterator_category

Template argument typedef.

Definition at line 514 of file RCPtr.h.

template<typename T>
typedef void ThePEG::Pointer::TransientRCPtr< T >::difference_type

Template argument typedef.

Definition at line 516 of file RCPtr.h.

template<typename T>
typedef T* ThePEG::Pointer::TransientRCPtr< T >::pointer

Template argument typedef.

Definition at line 518 of file RCPtr.h.

template<typename T>
typedef const T* ThePEG::Pointer::TransientRCPtr< T >::const_pointer

Template argument typedef.

Definition at line 520 of file RCPtr.h.

template<typename T>
typedef T& ThePEG::Pointer::TransientRCPtr< T >::reference

Template argument typedef.

Definition at line 522 of file RCPtr.h.

template<typename T>
typedef const T& ThePEG::Pointer::TransientRCPtr< T >::const_reference

Template argument typedef.

Definition at line 524 of file RCPtr.h.

template<typename T>
typedef T ThePEG::Pointer::TransientRCPtr< T >::value_type

Template argument typedef.

Definition at line 526 of file RCPtr.h.


Constructor & Destructor Documentation

template<typename T>
ThePEG::Pointer::TransientRCPtr< T >::~TransientRCPtr (  )  [inline]

Destructor.

Does not delete the object pointed to.

Definition at line 555 of file RCPtr.h.


The documentation for this class was generated from the following file:

Generated on Thu Apr 29 12:43:34 2010 for ThePEG by  doxygen 1.5.5