00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00015
00016 #include "AltCandStpProb.h"
00017 #include "AltCandStpProbHandle.h"
00018
00019 #include "Algorithm/AlgHandle.h"
00020 #include "LeakChecker/Lea.h"
00021 #include "MessageService/MsgService.h"
00022
00023 ClassImp(AltCandStpProb)
00024
00025 CVSID("$Id: AltCandStpProb.cxx,v 1.1 2003/12/22 18:08:50 costas Exp $");
00026
00027 AltCandStpProb::AltCandStpProb()
00028 {
00029 MSG("AltCand",Msg::kVerbose)
00030 << "Begin of AltCandStpProb::AltCandStpProb()"
00031 << " ctor: UidInt = " << GetUidInt() << endl;
00032
00033 LEA_CTOR;
00034 }
00035
00036 AltCandStpProb::AltCandStpProb(AlgHandle &ah) :
00037 CandBase(ah)
00038 {
00039 MSG("AltCand",Msg::kVerbose)
00040 << "Begin of AltCandStpProb::AltCandStpProb("
00041 << "AlgHandle & ah) ctor: " << "UidInt = " << GetUidInt() << endl;
00042
00043 LEA_CTOR;
00044 }
00045
00046 AltCandStpProb::AltCandStpProb(
00047 AlgHandle &ah, CandHandle &ch, CandContext &cx) :
00048 CandBase(ah)
00049 {
00050 MSG("AltCand",Msg::kVerbose)
00051 << "Begin of AltCandStpProb::AltCandStpProb("
00052 << "AlgHandle & ah, CandHandle & ch, CandContext & cx) ctor: UidInt = "
00053 << GetUidInt() << endl;
00054
00055 LEA_CTOR;
00056
00057 CreateLocalHandle();
00058
00059 AltCandStpProbHandle cshl(this);
00060 ch = cshl;
00061
00062 ah.RunAlg(ch, cx);
00063 }
00064
00065 AltCandStpProb::AltCandStpProb(const AltCandStpProb &rhs) :
00066 CandBase(rhs)
00067 {
00068 MSG("AltCand",Msg::kVerbose)
00069 << "Begin of AltCandStpProb::AltCandStpProb("
00070 << "const AltCandStpProb & rhs) ctor: UidInt = "
00071 << GetUidInt() << endl;
00072
00073 LEA_CTOR;
00074 }
00075
00076 AltCandStpProb::~AltCandStpProb()
00077 {
00078 MSG("AltCand",Msg::kVerbose)
00079 << "Begin of AltCandStpProb::~AltCandStpProb()"
00080 << " dtor: UidInt = "
00081 << GetUidInt() << endl;
00082
00083 LEA_DTOR;
00084 }
00085
00086 void AltCandStpProb::CreateLocalHandle()
00087 {
00088 SetLocalHandle(new AltCandStpProbHandle(this));
00089 }
00090
00091 AltCandStpProb *AltCandStpProb::Dup() const
00092 {
00093 AltCandStpProb *cb = new AltCandStpProb(*this);
00094 cb->CreateLocalHandle();
00095 TIter daughter_iter = GetDaughterIterator();
00096 CandHandle * cdh;
00097 while ((cdh=(CandHandle *) daughter_iter())) cb->AddDaughterLink(*cdh);
00098 return cb;
00099 }
00100
00101 AltCandStpProbHandle AltCandStpProb::MakeCandidate(
00102 AlgHandle &ah, CandContext &cx)
00103 {
00104 AltCandStpProbHandle cshl;
00105 new AltCandStpProb(ah, cshl, cx);
00106 return cshl;
00107 }
00108