#include #include "config.h" #include "PCommon.h" PriorityList::PriorityList(Key_t IKey, Datas_t const &IDatas):Key(IKey), Datas(IDatas) { } PriorityList::PriorityList(void):Key(0), Datas(NULL) { } PriorityList::~PriorityList(void){} Key_t PriorityList::ReadKey(Cell C) { return ((PriorityList *) C)->Key; } Datas_t PriorityList::ReadDatas(Cell C) { return ((PriorityList *) C)->Datas; } int PriorityList::n(void) { return Key; } PriorityList *PriorityList::GenericUnion(PriorityList * P) { Key_t IKey; Datas_t IDatas; while (!(P->IsEmpty())) { IKey = P->Extract_Min(IDatas); Insert(IKey, IDatas); } } int PriorityList::GetType(void) { return type; }