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

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

#include <RCPtr.h>

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

Public Types

typedef RCPtr< T >::value_type value_type
 Template argument typedef.
 
typedef RCPtr< T >::reference reference
 Template argument typedef.
 
typedef RCPtr< 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 T * barePointer (const RCPtr< T > &p)
 Return the bare pointer of the given pointer object.
 
static pointer create ()
 Create an object and return a pointer to it.
 
static pointer create (const_reference t)
 Create an copy of an object and return a pointer to it.
 
static void destroy (pointer)
 Destroy the object pointed to.
 
template<typename UPtr >
static pointer DynamicCast (const UPtr &u)
 Cast dynamically.
 
template<typename UPtr >
static pointer ConstCast (const UPtr &u)
 Cast away constness.
 
static pointer PtrCast (T *t)
 Cast from a basic pointer.
 

Static Public Attributes

static const bool reference_counted = true
 RCPtr is reference counted.
 

Detailed Description

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

Specialization of the PtrTraits class for RCPtr.

Definition at line 859 of file RCPtr.h.

Member Typedef Documentation

◆ const_pointer

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

Template argument typedef.

Definition at line 870 of file RCPtr.h.

◆ const_reference

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

Template argument typedef.

Definition at line 866 of file RCPtr.h.

◆ pointer

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

Template argument typedef.

Definition at line 868 of file RCPtr.h.

◆ reference

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

Template argument typedef.

Definition at line 864 of file RCPtr.h.

◆ transient_const_pointer

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

Template argument typedef.

Definition at line 874 of file RCPtr.h.

◆ transient_pointer

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

Template argument typedef.

Definition at line 872 of file RCPtr.h.

◆ value_type

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

Template argument typedef.

Definition at line 862 of file RCPtr.h.

Member Function Documentation

◆ barePointer()

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

Return the bare pointer of the given pointer object.

Definition at line 879 of file RCPtr.h.

◆ ConstCast()

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

Cast away constness.

Definition at line 910 of file RCPtr.h.

◆ create() [1/2]

template<typename T >
static pointer ThePEG::Pointer::PtrTraits< RCPtr< T > >::create ( )
inlinestatic

Create an object and return a pointer to it.

Definition at line 884 of file RCPtr.h.

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

◆ create() [2/2]

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

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

Definition at line 889 of file RCPtr.h.

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

◆ destroy()

template<typename T >
static void ThePEG::Pointer::PtrTraits< RCPtr< T > >::destroy ( pointer  )
inlinestatic

Destroy the object pointed to.

Definition at line 894 of file RCPtr.h.

◆ DynamicCast()

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

Cast dynamically.

Definition at line 900 of file RCPtr.h.

◆ PtrCast()

template<typename T >
static pointer ThePEG::Pointer::PtrTraits< RCPtr< T > >::PtrCast ( T *  t)
inlinestatic

Cast from a basic pointer.

Definition at line 919 of file RCPtr.h.

Member Data Documentation

◆ reference_counted

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

RCPtr is reference counted.

Definition at line 926 of file RCPtr.h.


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