diff options
Diffstat (limited to 'lib/BinHeap.cc')
-rw-r--r-- | lib/BinHeap.cc | 5 |
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; } |