summaryrefslogtreecommitdiff
path: root/lib/BinHeap.cc
diff options
context:
space:
mode:
authorPixel <>2001-03-21 10:58:51 +0000
committerPixel <>2001-03-21 10:58:51 +0000
commitb75cdf41d321bce00a3f7c0c980c1f6cdc6117a8 (patch)
tree6f9b4762b8c66ddae9c68b5fd69e3afa08b2b7df /lib/BinHeap.cc
parent9bf8629e1420fb0bc09103e747f7d9b18aa7f10d (diff)
Bugfixes
Diffstat (limited to 'lib/BinHeap.cc')
-rw-r--r--lib/BinHeap.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/BinHeap.cc b/lib/BinHeap.cc
index b57a31d..bb58141 100644
--- a/lib/BinHeap.cc
+++ b/lib/BinHeap.cc
@@ -66,10 +66,11 @@ bool BinHeap::Lower_Key(Cell x, Key_t NKey)
return true;
}
-BinHeap::BinHeap(void):FP(new CList)
+BinHeap::BinHeap(void) : FP(new CList)
{
Key = 0;
Datas = NULL;
+ type = T_BINHEAP;
}
BinHeap::~BinHeap(void)
@@ -80,7 +81,6 @@ BinHeap::~BinHeap(void)
Key_t BinHeap::ReadKey(Cell C)
{
- cerr << "Lecture de " << C << endl;
return ((binheap_t *) FP->ReadDatas(C))->Key;
}
@@ -143,7 +143,6 @@ Cell BinHeap::Insert(Key_t IKey, Datas_t const &IDatas)
binheap[i - 1] = newcell;
r = binheap[i - 1].FP = FP->Insert(0, &(binheap[i - 1]));
- cerr << "Ajout de " << r << endl;
return r;
}