12 virtual inline ~IDeleteNotice() { assert(next_ ==
nullptr); assert(prev_ ==
nullptr); }
13 virtual void onDelete(
IThing *pnt)=0;
14 virtual void changeToNewPointer(
IThing *oldPnt,
IThing *newPnt)=0;
17 inline bool isInserted()
const {
return next_ ? true :
false; }
28 assert(prev_==
nullptr);
29 assert(next_==
nullptr);
32 if (*head) (*head)->prev_ =
this;
36 inline void IDeleteNotice::remove(IDeleteNotice **head) {
38 if (prev_) prev_->next_ = next_;
39 else if (*head==
this) *head = next_;
40 if (next_) next_->prev_ = prev_;
41 next_ = prev_ =
nullptr;
Definition ideletenotice.h:9
Base class for items that will be stored in containers.
Definition ithing.h:30
namespace Itasca
Definition basememory.cpp:10