|
Squid Web Cache master
|
#include <splay.h>
Public Types | |
| typedef V | Value |
| typedef int | SPLAYCMP(Value const &a, Value const &b) |
Public Member Functions | |
| SplayNode (const Value &) | |
| SplayNode< V > const * | start () const |
| SplayNode< V > const * | finish () const |
| SplayNode< V > * | remove (const Value data, SPLAYCMP *compare) |
| SplayNode< V > * | insert (Value data, SPLAYCMP *compare) |
| template<class FindValue > | |
| SplayNode< V > * | splay (const FindValue &data, int(*compare)(FindValue const &a, Value const &b)) const |
Public Attributes | |
| Value | data |
| SplayNode< V > * | left |
| SplayNode< V > * | right |
| SplayNode< V > * | visitThreadUp |
| SplayNode< V >::SplayNode | ( | const Value & | someData | ) |
Definition at line 112 of file splay.h.
References cur, and SplayNode< V >::right.
Definition at line 147 of file splay.h.
References SplayNode< V >::left, SplayNode< V >::right, and splayLastResult.
Definition at line 122 of file splay.h.
References SplayNode< V >::left, SplayNode< V >::right, and splayLastResult.
| SplayNode< V > * SplayNode< V >::splay | ( | const FindValue & | data, |
| int(*)(FindValue const &a, Value const &b) | compare | ||
| ) | const |
look in the splay for data for where compare(data,candidate) == true. return NULL if not found, a pointer to the sought data if found.
Definition at line 173 of file splay.h.
References SplayNode< V >::data, SplayNode< V >::left, SplayNode< V >::right, and splayLastResult.
Definition at line 102 of file splay.h.
References cur, and SplayNode< V >::left.
Definition at line 25 of file splay.h.
Referenced by mem_hdr::endOffset(), mem_hdr::freeDataUpto(), mem_hdr::lowestOffset(), mem_hdr::nodeToRecieve(), and SplayNode< V >::splay().
Definition at line 26 of file splay.h.
Referenced by SplayConstIterator< V >::addLeftPath(), SplayNode< V >::insert(), SplayNode< V >::remove(), SplayNode< V >::splay(), and SplayNode< V >::start().
Definition at line 27 of file splay.h.
Referenced by SplayConstIterator< V >::advance(), SplayNode< V >::finish(), SplayNode< V >::insert(), SplayNode< V >::remove(), and SplayNode< V >::splay().