#include <utilities.h>
Inheritance diagram for DoubleList:


Public Member Functions | |
| DoubleList () | |
| virtual void | destroy () |
| DoubleListElem * | head () |
| DoubleListElem * | tail () |
| void | detach (DoubleListElem *e) |
| void | insert (DoubleListElem *src, DoubleListElem *dst) |
| void | append (DoubleListElem *src, DoubleListElem *dst) |
Protected Attributes | |
| DoubleListElem * | head_ |
| DoubleListElem * | tail_ |
|
|
Definition at line 94 of file utilities.h.
|
|
||||||||||||
|
Definition at line 111 of file utilities.h. References DoubleListElem::append(), and tail_. Referenced by MediaSegmentList::add(), HitCountList::add(), and HitCountList::update().
|
Here is the call graph for this function:

|
|
Reimplemented in MediaSegmentList. Definition at line 81 of file utilities.cc. References head_, DoubleListElem::next(), and tail_. Referenced by MediaSegmentList::destroy().
00082 {
00083 DoubleListElem *p = head_, *q;
00084 while (p != NULL) {
00085 q = p;
00086 p = p->next();
00087 delete q;
00088 }
00089 head_ = tail_ = NULL;
00090 }
|
Here is the call graph for this function:

|
|
Definition at line 99 of file utilities.h. References DoubleListElem::detach(), head_, DoubleListElem::next(), DoubleListElem::prev(), and tail_. Referenced by MediaSegmentList::evict_head(), MediaSegmentList::evict_head_offset(), MediaSegmentList::evict_tail(), MClientPagePool::force_remove(), MediaSegmentList::merge_seg(), MClientPagePool::repl_atomic(), MClientPagePool::repl_finegrain(), and HitCountList::update().
|
Here is the call graph for this function:

|
|
Definition at line 96 of file utilities.h. References head_.
00096 { return head_; }
|
|
||||||||||||
|
Definition at line 106 of file utilities.h. References head_, and DoubleListElem::insert(). Referenced by MediaSegmentList::add(), HitCountList::add(), and HitCountList::update().
|
Here is the call graph for this function:

|
|
Definition at line 97 of file utilities.h. References tail_. Referenced by MClientPagePool::repl_atomic(), and MClientPagePool::repl_finegrain().
00097 { return tail_; }
|
|
|
|
Definition at line 117 of file utilities.h. Referenced by MediaSegmentList::add(), HitCountList::add(), append(), destroy(), detach(), HitCountList::detach_tail(), DoubleList(), MediaSegmentList::evict_head_offset(), MediaSegmentList::evict_tail(), MediaSegmentList::merge_seg(), tail(), and HitCountList::update(). |
1.3.3