Source code
/*
* ListEntry.h
* Copyright (c) 2015 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED.
*/
#pragma once
#include <viz++/Entry.h>
namespace VIZ {
class ListEntry :public Entry {
private:
ListEntry* prev;
ListEntry* next;
public:
ListEntry(Object* object)
:Entry(object),
prev(NULL), next(NULL) {
//
}
ListEntry(Object* object, ListEntry* nxt)
:Entry(object),
prev(NULL), next(nxt) {
//
}
ListEntry(Object* object, ListEntry* pre, ListEntry* nxt)
:Entry(object),
prev(pre), next(nxt) {
//
}
~ListEntry() {
Object* object = getObject();
if (object) {
delete object;
}
}
void setPrev(ListEntry* entry) {
prev = entry;
}
void setNext(ListEntry* entry) {
next = entry;
}
ListEntry* getPrev() {
return prev;
}
ListEntry* getNext() {
return next;
}
};
}
Last modified: 10 Feb 2017
Copyright (c) 2009-2017 Antillia.com ALL RIGHTS RESERVED.