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