31 class cloneHot :
public std::unary_function<TrkHitOnTrk,TrkHitOnTrk*> {
36 {
return h.
clone(_r,_t); }
42 template <
class T>
struct takeAddress : std::unary_function<T,T*> {
50 class updateMeasurement :
public std::unary_function<TrkHitOnTrk,TrkErrCode> {
56 friend class ::TrkHitOnTrkUpdater;
57 updateMeasurement(
const TrkDifTraj* traj=0,
bool maintainAmbiguity=
false) : _t(traj), _m(maintainAmbiguity) {}
62 class setActive :
public std::unary_function<TrkHitOnTrk,void> {
65 {
return h.setActive(_a); }
67 {
return h->setActive(_a); }
70 friend class ::TrkHitOnTrkUpdater;
71 setActive(
bool active) : _a(active){}
75 class setParent :
public std::unary_function<TrkHitOnTrk,void> {
78 {
return h.setParent(_p); }
81 friend class ::TrkHitOnTrkUpdater;
82 setParent(
TrkRep* parent) : _p(parent){}
cloneHot(TrkRep *parentRep, const TrkDifTraj *trkTraj=0)
TrkHitOnTrk * operator()(const TrkHitOnTrk &h) const
TrkHitOnTrk * operator()(TrkHitOnTrk &h) const
TrkHitOnTrk * operator()(TrkHitOnTrk *&h) const
TrkHitOnTrk * operator()(TrkHitOnTrk &h) const
TrkErrCode operator()(TrkHitOnTrk &h) const
virtual TrkErrCode updateMeasurement(const TrkDifTraj *traj, bool maintainAmbiguity)=0
virtual TrkHitOnTrk * clone(TrkRep *parentRep, const TrkDifTraj *trkTraj=0) const =0