ThePEG  1.8.0
Public Types | Public Member Functions | Private Attributes | List of all members
ThePEG::Pointer::TransientConstRCPtr< T > Class Template Reference

TransientConstRCPtr is a simple wrapper around a bare const 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. 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

 TransientConstRCPtr ()
 Constructor for null pointer.
 
 TransientConstRCPtr (const TransientConstRCPtr &p)
 Copy constructor.
 
template<typename UPtr >
 TransientConstRCPtr (const UPtr &u)
 Copyconstructor for class UPtr which has operator-> defined resulting in a value implicitly convertible to const T *.
 
 TransientConstRCPtr (const_pointer p)
 Construction from real pointer.
 
 ~TransientConstRCPtr ()
 Destructor. More...
 
TransientConstRCPtroperator= (const TransientConstRCPtr &p)
 Assignment.
 
template<typename UPtr >
TransientConstRCPtroperator= (const UPtr &u)
 Assignment from class UPtr which has operator-> defined resulting in a value implicitly convertible to const T *.
 
template<typename UPtr >
TransientConstRCPtrassignDynamic (const UPtr &u)
 Assignment from class UPtr which has operator-> defined resulting in a value which can be cast dynamically to const T *.
 
bool operator== (const TransientConstRCPtr &p) const
 Test for equality of the underlying pointers.
 
bool operator!= (const TransientConstRCPtr &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 TransientConstRCPtr &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 (not) the underlying pointer.
 
const_pointer operator-> () const
 Member access.
 
const_reference operator* () const
 Dereferencing.
 

Private Attributes

const_pointer ptr
 The actual pointer.
 

Detailed Description

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

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

See also
RCPtr
ConstRCPtr

Definition at line 681 of file RCPtr.h.

Member Typedef Documentation

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

Template argument typedef.

Definition at line 692 of file RCPtr.h.

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

Template argument typedef.

Definition at line 696 of file RCPtr.h.

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

Template argument typedef.

Definition at line 688 of file RCPtr.h.

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

Template argument typedef.

Definition at line 686 of file RCPtr.h.

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

Template argument typedef.

Definition at line 690 of file RCPtr.h.

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

Template argument typedef.

Definition at line 694 of file RCPtr.h.

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

Template argument typedef.

Definition at line 698 of file RCPtr.h.

Constructor & Destructor Documentation

template<typename T>
ThePEG::Pointer::TransientConstRCPtr< T >::~TransientConstRCPtr ( )
inline

Destructor.

Does not delete the object pointed to.

Definition at line 727 of file RCPtr.h.


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