#include <ProxyBase.h>
Protected Member Functions | |
void | check () const |
const T & | data () const |
void | destroy () |
bool | isValid () const |
ProxyBase & | operator= (const ProxyBase &other) |
ProxyBase () | |
ProxyBase (T *p) | |
ProxyBase (const ProxyBase &other) | |
int | references () const |
T & | sharedData () |
void | swap (ProxyBase &other) |
T & | unsharedData () |
~ProxyBase () | |
Private Attributes | |
T * | theData |
A base class for reference counting proxies. The class to which this one is proxy must inherit from ReferenceCounted. A ProxyBase has value semantics, in contrast to ReferenceCountingPointer, which has pointer semantics. The Proxy class inheriting from ProxyBase must duplicate the part of the interface of the reference counted class that it whiches to expose.
Definition at line 19 of file ProxyBase.h.
Definition at line 22 of file ProxyBase.h.
: theData(0) {}
ProxyBase< T, Cloner >::ProxyBase | ( | T * | p | ) | [inline, explicit, protected] |
Definition at line 24 of file ProxyBase.h.
References ProxyBase< T, Cloner >::theData.
ProxyBase< T, Cloner >::ProxyBase | ( | const ProxyBase< T, Cloner > & | other | ) | [inline, protected] |
Definition at line 26 of file ProxyBase.h.
References ProxyBase< T, Cloner >::theData.
Definition at line 31 of file ProxyBase.h.
References ProxyBase< T, Cloner >::destroy().
{ destroy(); }
void ProxyBase< T, Cloner >::check | ( | void | ) | const [inline, protected] |
Definition at line 82 of file ProxyBase.h.
References ProxyBase< T, Cloner >::theData, and unlikely.
Referenced by ProxyBase< T, Cloner >::data(), ProxyBase< T, Cloner >::sharedData(), and ProxyBase< T, Cloner >::unsharedData().
{ if unlikely(theData == 0) throw TrajectoryStateException("Error: uninitialized ProxyBase used"); }
Definition at line 66 of file ProxyBase.h.
References ProxyBase< T, Cloner >::check(), and ProxyBase< T, Cloner >::theData.
Referenced by reco::TransientTrack::basicTransientTrack(), reco::GhostTrackState::cartesianCovariance(), reco::GhostTrackState::cartesianError(), TrajectoryStateOnSurface::cartesianError(), reco::TransientTrack::charge(), TrajectoryStateOnSurface::charge(), VertexState::components(), TrajectoryStateOnSurface::components(), TrajectoryStateOnSurface::curvilinearError(), VertexState::error(), reco::TransientTrack::field(), TrajectoryStateOnSurface::freeState(), TrajectoryStateOnSurface::globalDirection(), TrajectoryStateOnSurface::globalMomentum(), TrajectoryStateOnSurface::globalParameters(), reco::GhostTrackState::globalPosition(), TrajectoryStateOnSurface::globalPosition(), TrajectoryStateOnSurface::hasError(), reco::TransientTrack::impactPointState(), reco::TransientTrack::impactPointStateAvailable(), reco::TransientTrack::impactPointTSCP(), reco::TransientTrack::initialFreeState(), reco::TransientTrack::innermostMeasurementState(), reco::GhostTrackState::isTrack(), TrajectoryStateOnSurface::isValid(), VertexState::isValid(), reco::GhostTrackState::isValid(), reco::GhostTrackState::isVertex(), reco::GhostTrackState::lambda(), TrajectoryStateOnSurface::localDirection(), TrajectoryStateOnSurface::localError(), TrajectoryStateOnSurface::localMomentum(), TrajectoryStateOnSurface::localParameters(), TrajectoryStateOnSurface::localPosition(), TrajectoryStateOnSurface::magneticField(), reco::TransientTrack::operator<(), reco::TransientTrack::operator==(), reco::TransientTrack::outermostMeasurementState(), VertexState::position(), TrajectoryStateOnSurface::signedInverseMomentum(), reco::TransientTrack::stateAtBeamLine(), reco::TransientTrack::stateOnSurface(), TrajectoryStateOnSurface::surface(), TrajectoryStateOnSurface::surfaceSide(), reco::GhostTrackState::track(), reco::TransientTrack::track(), reco::TransientTrack::trackBaseRef(), reco::TransientTrack::trajectoryStateClosestToPoint(), TrajectoryStateOnSurface::transverseCurvature(), reco::GhostTrackState::tsos(), TrajectoryStateOnSurface::update(), reco::GhostTrackState::vertexStateOnGhostTrack(), reco::GhostTrackState::vertexStateOnMeasurement(), VertexState::weight(), TrajectoryStateOnSurface::weight(), reco::GhostTrackState::weight(), VertexState::weightInMixture(), and VertexState::weightTimesPosition().
Definition at line 87 of file ProxyBase.h.
References ProxyBase< T, Cloner >::isValid(), likely, and ProxyBase< T, Cloner >::theData.
Referenced by ProxyBase< T, Cloner >::operator=(), and ProxyBase< T, Cloner >::~ProxyBase().
bool ProxyBase< T, Cloner >::isValid | ( | void | ) | const [inline, protected] |
Reimplemented in reco::GhostTrackState, VertexState, TrajectoryStateOnSurface, and reco::TransientTrack.
Definition at line 80 of file ProxyBase.h.
References ProxyBase< T, Cloner >::theData.
Referenced by ProxyBase< T, Cloner >::destroy(), reco::TransientTrack::isValid(), TrajectoryStateOnSurface::isValid(), VertexState::isValid(), and reco::GhostTrackState::isValid().
{ return theData != 0;}
ProxyBase& ProxyBase< T, Cloner >::operator= | ( | const ProxyBase< T, Cloner > & | other | ) | [inline, protected] |
Definition at line 35 of file ProxyBase.h.
References ProxyBase< T, Cloner >::destroy(), likely, and ProxyBase< T, Cloner >::theData.
int ProxyBase< T, Cloner >::references | ( | ) | const [inline, protected] |
Definition at line 89 of file ProxyBase.h.
References ProxyBase< T, Cloner >::theData.
Referenced by ProxyBase< T, Cloner >::unsharedData().
{return theData->references();}
Definition at line 78 of file ProxyBase.h.
References ProxyBase< T, Cloner >::check(), and ProxyBase< T, Cloner >::theData.
Referenced by reco::TransientTrack::setBeamSpot(), reco::TransientTrack::setES(), and reco::TransientTrack::setTrackingGeometry().
void ProxyBase< T, Cloner >::swap | ( | ProxyBase< T, Cloner > & | other | ) | [inline, protected] |
Definition at line 45 of file ProxyBase.h.
References ProxyBase< T, Cloner >::theData.
Referenced by TrajectoryStateOnSurface::swap(), reco::TransientTrack::swap(), and swap().
Definition at line 68 of file ProxyBase.h.
References ProxyBase< T, Cloner >::check(), ProxyBase< T, Cloner >::references(), and ProxyBase< T, Cloner >::theData.
Referenced by reco::GhostTrackState::linearize(), TrajectoryStateOnSurface::rescaleError(), reco::GhostTrackState::reset(), reco::GhostTrackState::setWeight(), and TrajectoryStateOnSurface::update().
Definition at line 92 of file ProxyBase.h.
Referenced by ProxyBase< T, Cloner >::check(), ProxyBase< T, Cloner >::data(), ProxyBase< T, Cloner >::destroy(), ProxyBase< T, Cloner >::isValid(), ProxyBase< T, Cloner >::operator=(), ProxyBase< T, Cloner >::ProxyBase(), ProxyBase< T, Cloner >::references(), ProxyBase< T, Cloner >::sharedData(), ProxyBase< T, Cloner >::swap(), and ProxyBase< T, Cloner >::unsharedData().