thepeg is hosted by Hepforge, IPPP Durham
ThePEG  2.2.1
Ptr.h
1 // -*- C++ -*-
2 //
3 // Ptr.h is a part of ThePEG - Toolkit for HEP Event Generation
4 // Copyright (C) 1999-2019 Leif Lonnblad
5 //
6 // ThePEG is licenced under version 3 of the GPL, see COPYING for details.
7 // Please respect the MCnet academic guidelines, see GUIDELINES for details.
8 //
9 #ifndef ThePEG_Ptr_H
10 #define ThePEG_Ptr_H
11 // This is the declaration of the Ptr class.
12 
13 #include "RCPtr.fh"
14 
15 namespace ThePEG {
16 
18 namespace Pointer {
19 
34 template <typename T>
35 struct Ptr {
36 
38  typedef RCPtr<T> pointer;
46  typedef pointer ptr;
48  typedef const_pointer cptr;
50  typedef transient_pointer tptr;
52  typedef transient_const_pointer tcptr;
54  typedef pointer p;
56  typedef const_pointer cp;
58  typedef transient_pointer tp;
60  typedef transient_const_pointer tcp;
61 
62 };
63 
64 }
65 }
66 
67 #endif /* ThePEG_Ptr_H */
transient_pointer tptr
Template argument typedef.
Definition: Ptr.h:50
const_pointer cp
Template argument typedef.
Definition: Ptr.h:56
transient_const_pointer tcptr
Template argument typedef.
Definition: Ptr.h:52
TransientConstRCPtr is a simple wrapper around a bare const pointer which can be assigned to and from...
Definition: RCPtr.h:696
TransientRCPtr is a simple wrapper around a bare pointer which can be assigned to and from an RCPtr a...
Definition: RCPtr.h:519
ConstRCPtr is a reference counted (smart) const pointer.
Definition: RCPtr.h:320
pointer p
Template argument typedef.
Definition: Ptr.h:54
This is the main namespace within which all identifiers in ThePEG are declared.
Definition: FactoryBase.h:28
TransientConstRCPtr< T > transient_const_pointer
Template argument typedef.
Definition: Ptr.h:44
ConstRCPtr< T > const_pointer
Template argument typedef.
Definition: Ptr.h:40
TransientRCPtr< T > transient_pointer
Template argument typedef.
Definition: Ptr.h:42
RCPtr is a reference counted (smart) pointer.
Definition: RCPtr.h:60
transient_pointer tp
Template argument typedef.
Definition: Ptr.h:58
transient_const_pointer tcp
Template argument typedef.
Definition: Ptr.h:60
Ptr is a templated class to provide typedefs for pointers types ThePEG should use for a given type...
Definition: Ptr.h:35
const_pointer cptr
Template argument typedef.
Definition: Ptr.h:48
RCPtr< T > pointer
Template argument typedef.
Definition: Ptr.h:38
pointer ptr
Template argument typedef.
Definition: Ptr.h:46