The namespace for the reference counted pointer classes. More...
Classes | |
class | ConstRCPtr |
ConstRCPtr is a reference counted (smart) const pointer. More... | |
struct | Ptr |
Ptr is a templated class to provide typedefs for pointers types ThePEG should use for a given type. More... | |
struct | PtrTraits |
The PtrTraits class is used everywhere in ThePEG to interface to the pointers which are handled. More... | |
struct | PtrTraits< const T * > |
Specialization of the PtrTraits class for standard bare const pointers. More... | |
struct | PtrTraits< ConstRCPtr< T > > |
Specialization of the PtrTraits class for ConstRCPtr. More... | |
struct | PtrTraits< RCPtr< T > > |
Specialization of the PtrTraits class for RCPtr. More... | |
struct | PtrTraits< T * > |
Specialization of the PtrTraits class for standard bare pointers. More... | |
struct | PtrTraits< TransientConstRCPtr< T > > |
Specialization of the PtrTraits class for TransientConstRCPtr. More... | |
struct | PtrTraits< TransientRCPtr< T > > |
Specialization of the PtrTraits class for TransientRCPtr. More... | |
struct | PtrTraitsType |
PtrTraitsType is an empty non-polymorphic base class for all PtrTraits classes. More... | |
class | RCPtr |
RCPtr is a reference counted (smart) pointer. More... | |
class | RCPtrBase |
RCPtrBase is the base class of RCPtr and ConstRCPtr which are reference counted (smart) pointers. More... | |
class | ReferenceCounted |
ReferenceCounted must be the (virtual) base class of all classes which may be pointed to by the RCPtr smart pointer class. More... | |
class | TransientConstRCPtr |
TransientConstRCPtr is a simple wrapper around a bare const pointer which can be assigned to and from an RCPtr and ConstRCPtr without problem. More... | |
class | TransientRCPtr |
TransientRCPtr is a simple wrapper around a bare pointer which can be assigned to and from an RCPtr and ConstRCPtr without problem. More... | |
Functions | |
template<class T1 , class T2 > | |
T1 | dynamic_ptr_cast (const T2 &t2) |
Replacement for the standard dynamic_cast. | |
template<class T1 , class T2 > | |
T1 | const_ptr_cast (const T2 &t2) |
Replacement for the standard const_cast. | |
template<typename Ptr > | |
Ptr | ptr_new () |
Simple interface to the PtrTraits<Ptr>::create() | |
template<typename Ptr > | |
Ptr | ptr_new (typename PtrTraits< Ptr >::const_reference t) |
Simple interface to the PtrTraits<Ptr>::create() | |
template<typename T > | |
Ptr< T >::pointer | new_ptr () |
Simple interface to the PtrTraits<Ptr>::create() | |
template<typename T > | |
Ptr< T >::pointer | new_ptr (const T &t) |
Simple interface to the PtrTraits<Ptr>::create() | |
template<typename TPtr , typename T > | |
TPtr | ptr_cast (T *t) |
Simple interface to the PtrTraits<Ptr>::PtrCast() | |
template<typename TPtr , typename T > | |
TPtr | ptr_cast_const (const T *t) |
Simple interface to the PtrTraits<Ptr>::PtrCast() | |
The namespace for the reference counted pointer classes.
T1 ThePEG::Pointer::const_ptr_cast | ( | const T2 & | t2 | ) |
Replacement for the standard const_cast.
Definition at line 175 of file PtrTraits.h.
T1 ThePEG::Pointer::dynamic_ptr_cast | ( | const T2 & | t2 | ) |
Replacement for the standard dynamic_cast.
Definition at line 168 of file PtrTraits.h.
|
inline |
Simple interface to the PtrTraits<Ptr>::create()
Definition at line 195 of file PtrTraits.h.
Referenced by ThePEG::GraphvizPlot::clone(), ThePEG::LWHFactory::clone(), ThePEG::EventInfoBase::clone(), ThePEG::MultiColour::clone(), ThePEG::MEQQ2qq::clone(), ThePEG::MEQq2Qq::clone(), ThePEG::BudnevPDF::clone(), ThePEG::WeizsackerWilliamsPDF::clone(), ThePEG::Particle::colourInfo(), ThePEG::DescribeClassAbstractHelper< T, abstract >::create(), ThePEG::GraphvizPlot::fullclone(), ThePEG::LWHFactory::fullclone(), ThePEG::MEQQ2qq::fullclone(), ThePEG::MEQq2Qq::fullclone(), ThePEG::BudnevPDF::fullclone(), and ThePEG::WeizsackerWilliamsPDF::fullclone().
|
inline |
Simple interface to the PtrTraits<Ptr>::create()
Definition at line 203 of file PtrTraits.h.
|
inline |
Simple interface to the PtrTraits<Ptr>::PtrCast()
Definition at line 211 of file PtrTraits.h.
|
inline |
Simple interface to the PtrTraits<Ptr>::PtrCast()
Definition at line 219 of file PtrTraits.h.
Simple interface to the PtrTraits<Ptr>::create()
Definition at line 181 of file PtrTraits.h.