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

Specialization of the PtrTraits class for standard bare pointers. More...

#include <PtrTraits.h>

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

Public Types

typedef T value_type
 Template argument typedef.
 
typedef T & reference
 Template argument typedef.
 
typedef const T & const_reference
 Template argument typedef.
 
typedef T * pointer
 Template argument typedef.
 
typedef T * const_pointer
 Template argument typedef.
 

Static Public Member Functions

static T * barePointer (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 tp)
 Destroy the object pointed to.
 
template<class R >
static pointer DynamicCast (R *r)
 Cast dynamically.
 
static pointer ConstCast (const T *t)
 Cast away constness.
 
static pointer PtrCast (T *t)
 Cast from a basic pointer.
 

Static Public Attributes

static const bool reference_counted = false
 The bare pointer is not reference counted.
 

Detailed Description

template<class T>
struct ThePEG::Pointer::PtrTraits< T * >

Specialization of the PtrTraits class for standard bare pointers.

Definition at line 45 of file PtrTraits.h.

Member Typedef Documentation

◆ const_pointer

template<class T >
typedef T* ThePEG::Pointer::PtrTraits< T * >::const_pointer

Template argument typedef.

Definition at line 56 of file PtrTraits.h.

◆ const_reference

template<class T >
typedef const T& ThePEG::Pointer::PtrTraits< T * >::const_reference

Template argument typedef.

Definition at line 52 of file PtrTraits.h.

◆ pointer

template<class T >
typedef T* ThePEG::Pointer::PtrTraits< T * >::pointer

Template argument typedef.

Definition at line 54 of file PtrTraits.h.

◆ reference

template<class T >
typedef T& ThePEG::Pointer::PtrTraits< T * >::reference

Template argument typedef.

Definition at line 50 of file PtrTraits.h.

◆ value_type

template<class T >
typedef T ThePEG::Pointer::PtrTraits< T * >::value_type

Template argument typedef.

Definition at line 48 of file PtrTraits.h.

Member Function Documentation

◆ barePointer()

template<class T >
static T * ThePEG::Pointer::PtrTraits< T * >::barePointer ( T *  p)
inlinestatic

Return the bare pointer of the given pointer object.

Definition at line 61 of file PtrTraits.h.

◆ ConstCast()

template<class T >
static pointer ThePEG::Pointer::PtrTraits< T * >::ConstCast ( const T *  t)
inlinestatic

Cast away constness.

Definition at line 87 of file PtrTraits.h.

◆ create() [1/2]

template<class T >
static pointer ThePEG::Pointer::PtrTraits< T * >::create ( )
inlinestatic

Create an object and return a pointer to it.

Definition at line 66 of file PtrTraits.h.

◆ create() [2/2]

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

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

Definition at line 71 of file PtrTraits.h.

◆ destroy()

template<class T >
static void ThePEG::Pointer::PtrTraits< T * >::destroy ( pointer  tp)
inlinestatic

Destroy the object pointed to.

Definition at line 76 of file PtrTraits.h.

◆ DynamicCast()

template<class T >
template<class R >
static pointer ThePEG::Pointer::PtrTraits< T * >::DynamicCast ( R *  r)
inlinestatic

Cast dynamically.

Definition at line 82 of file PtrTraits.h.

◆ PtrCast()

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

Cast from a basic pointer.

Definition at line 92 of file PtrTraits.h.

Member Data Documentation

◆ reference_counted

template<class T >
const bool ThePEG::Pointer::PtrTraits< T * >::reference_counted = false
static

The bare pointer is not reference counted.

Definition at line 97 of file PtrTraits.h.


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