thepeg is hosted by Hepforge, IPPP Durham
ThePEG 2.3.0
ThePEG::Pointer::PtrTraits< ConstRCPtr< T > > Struct Template Reference

Specialization of the PtrTraits class for ConstRCPtr. More...

#include <RCPtr.h>

Inheritance diagram for ThePEG::Pointer::PtrTraits< ConstRCPtr< T > >:

Public Types

typedef ConstRCPtr< T >::value_type value_type
 Template argument typedef.
 
typedef ConstRCPtr< T >::reference reference
 Template argument typedef.
 
typedef ConstRCPtr< T >::const_reference const_reference
 Template argument typedef.
 
typedef RCPtr< T > pointer
 Template argument typedef.
 
typedef ConstRCPtr< T > const_pointer
 Template argument typedef.
 
typedef TransientRCPtr< T > transient_pointer
 Template argument typedef.
 
typedef TransientConstRCPtr< T > transient_const_pointer
 Template argument typedef.
 

Static Public Member Functions

static const T * barePointer (const ConstRCPtr< T > &p)
 Return the bare pointer of the given pointer object.
 
static const_pointer create ()
 Create an object and return a pointer to it.
 
static const_pointer create (const_reference t)
 Create an copy of an object and return a pointer to it.
 
static void destroy (const_pointer)
 Destroy the object pointed to.
 
template<typename UPtr >
static const_pointer DynamicCast (const UPtr &u)
 Cast dynamically.
 
template<typename UPtr >
static const_pointer ConstCast (const UPtr &u)
 Cast away constness.
 
static const_pointer PtrCast (const T *t)
 Cast from a basic pointer.
 

Static Public Attributes

static const bool reference_counted = true
 ConstRCPtr is reference counted.
 

Detailed Description

template<typename T>
struct ThePEG::Pointer::PtrTraits< ConstRCPtr< T > >

Specialization of the PtrTraits class for ConstRCPtr.

Definition at line 934 of file RCPtr.h.

Member Typedef Documentation

◆ const_pointer

template<typename T >
typedef ConstRCPtr<T> ThePEG::Pointer::PtrTraits< ConstRCPtr< T > >::const_pointer

Template argument typedef.

Definition at line 945 of file RCPtr.h.

◆ const_reference

template<typename T >
typedef ConstRCPtr<T>::const_reference ThePEG::Pointer::PtrTraits< ConstRCPtr< T > >::const_reference

Template argument typedef.

Definition at line 941 of file RCPtr.h.

◆ pointer

template<typename T >
typedef RCPtr<T> ThePEG::Pointer::PtrTraits< ConstRCPtr< T > >::pointer

Template argument typedef.

Definition at line 943 of file RCPtr.h.

◆ reference

template<typename T >
typedef ConstRCPtr<T>::reference ThePEG::Pointer::PtrTraits< ConstRCPtr< T > >::reference

Template argument typedef.

Definition at line 939 of file RCPtr.h.

◆ transient_const_pointer

template<typename T >
typedef TransientConstRCPtr<T> ThePEG::Pointer::PtrTraits< ConstRCPtr< T > >::transient_const_pointer

Template argument typedef.

Definition at line 949 of file RCPtr.h.

◆ transient_pointer

template<typename T >
typedef TransientRCPtr<T> ThePEG::Pointer::PtrTraits< ConstRCPtr< T > >::transient_pointer

Template argument typedef.

Definition at line 947 of file RCPtr.h.

◆ value_type

template<typename T >
typedef ConstRCPtr<T>::value_type ThePEG::Pointer::PtrTraits< ConstRCPtr< T > >::value_type

Template argument typedef.

Definition at line 937 of file RCPtr.h.

Member Function Documentation

◆ barePointer()

template<typename T >
static const T * ThePEG::Pointer::PtrTraits< ConstRCPtr< T > >::barePointer ( const ConstRCPtr< T > &  p)
inlinestatic

Return the bare pointer of the given pointer object.

Definition at line 954 of file RCPtr.h.

◆ ConstCast()

template<typename T >
template<typename UPtr >
static const_pointer ThePEG::Pointer::PtrTraits< ConstRCPtr< T > >::ConstCast ( const UPtr &  u)
inlinestatic

Cast away constness.

Definition at line 991 of file RCPtr.h.

◆ create() [1/2]

template<typename T >
static const_pointer ThePEG::Pointer::PtrTraits< ConstRCPtr< T > >::create ( )
inlinestatic

Create an object and return a pointer to it.

Definition at line 961 of file RCPtr.h.

References ThePEG::Pointer::RCPtr< T >::Create().

◆ create() [2/2]

template<typename T >
static const_pointer ThePEG::Pointer::PtrTraits< ConstRCPtr< T > >::create ( const_reference  t)
inlinestatic

Create an copy of an object and return a pointer to it.

Definition at line 968 of file RCPtr.h.

References ThePEG::Pointer::RCPtr< T >::Create().

◆ destroy()

template<typename T >
static void ThePEG::Pointer::PtrTraits< ConstRCPtr< T > >::destroy ( const_pointer  )
inlinestatic

Destroy the object pointed to.

Definition at line 975 of file RCPtr.h.

◆ DynamicCast()

template<typename T >
template<typename UPtr >
static const_pointer ThePEG::Pointer::PtrTraits< ConstRCPtr< T > >::DynamicCast ( const UPtr &  u)
inlinestatic

Cast dynamically.

Definition at line 981 of file RCPtr.h.

◆ PtrCast()

template<typename T >
static const_pointer ThePEG::Pointer::PtrTraits< ConstRCPtr< T > >::PtrCast ( const T *  t)
inlinestatic

Cast from a basic pointer.

Definition at line 1000 of file RCPtr.h.

Member Data Documentation

◆ reference_counted

template<typename T >
const bool ThePEG::Pointer::PtrTraits< ConstRCPtr< T > >::reference_counted = true
static

ConstRCPtr is reference counted.

Definition at line 1007 of file RCPtr.h.


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