X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=version2%2Fsrc%2FC%2FEntry.cc;fp=version2%2Fsrc%2FC%2FEntry.cc;h=0000000000000000000000000000000000000000;hb=786e40250f31eff04eec25bbcaae3cd916fedb14;hp=097967bdae7d7af455e59283c93e49185e923cdd;hpb=3f24bffc82ebfe2730308b63100af08645316577;p=iotcloud.git diff --git a/version2/src/C/Entry.cc b/version2/src/C/Entry.cc deleted file mode 100644 index 097967b..0000000 --- a/version2/src/C/Entry.cc +++ /dev/null @@ -1,48 +0,0 @@ -#include "Entry.h" -#include "Slot.h" -#include "ByteBuffer.h" -#include "Abort.h" -#include "CommitPart.h" -#include "NewKey.h" -#include "LastMessage.h" -#include "RejectedMessage.h" -#include "TableStatus.h" -#include "TransactionPart.h" -/** - * Generic class that wraps all the different types of information - * that can be stored in a Slot. - * @author Brian Demsky - * @version 1.0 - */ - -Entry *Entry_decode(Slot *slot, ByteBuffer *bb) { - char type = bb->get(); - switch (type) { - case TypeCommitPart: - return CommitPart_decode(slot, bb); - case TypeAbort: - return Abort_decode(slot, bb); - case TypeTransactionPart: - return TransactionPart_decode(slot, bb); - case TypeNewKey: - return NewKey_decode(slot, bb); - case TypeLastMessage: - return LastMessage_decode(slot, bb); - case TypeRejectedMessage: - return RejectedMessage_decode(slot, bb); - case TypeTableStatus: - return TableStatus_decode(slot, bb); - - default: - ASSERT(0); - } -} - -void Entry::setDead() { - if (islive) { - islive = false; - if (parentslot != NULL) { - parentslot->decrementLiveCount(); - } - } -}