CernVM-FS
2.12.0
|
Public Member Functions | |
ListEntryHead (ConcreteMemoryAllocator *allocator) | |
virtual | ~ListEntryHead () |
void | clear () |
bool | IsListHead () const |
bool | IsEmpty () const |
ListEntryContent< T > * | PushBack (T content) |
T | PopFront () |
void | MoveToBack (ListEntryContent< T > *entry) |
void | RemoveFromList () |
Public Member Functions inherited from lru::LruCache< Key, Value >::ListEntry< T > | |
ListEntry () | |
ListEntry (const ListEntry< T > &other) | |
virtual | ~ListEntry () |
bool | IsLonely () const |
Private Member Functions | |
T | Pop (ListEntry< T > *popped_entry) |
Private Attributes | |
ConcreteMemoryAllocator * | allocator_ |
Additional Inherited Members | |
Public Attributes inherited from lru::LruCache< Key, Value >::ListEntry< T > | |
ListEntry< T > * | next |
ListEntry< T > * | prev |
Protected Member Functions inherited from lru::LruCache< Key, Value >::ListEntry< T > | |
void | InsertAsSuccessor (ListEntryContent< T > *entry) |
void | InsertAsPredecessor (ListEntryContent< T > *entry) |
Specialized ListEntry to form a list head. Every list has exactly one list head which is also the entry point in the list. It is used to manipulate the list.
|
inlineexplicit |
|
inlinevirtual |
|
inline |
Remove all entries from the list. ListEntry objects are deleted but contained data keeps available
Definition at line 425 of file lru.h.
Referenced by lru::LruCache< shash::Any, MemoryBuffer >::Drop(), and lru::LruCache< Key, Value >::ListEntryHead< fuse_ino_t >::~ListEntryHead().
|
inline |
Definition at line 441 of file lru.h.
Referenced by lru::LruCache< Key, Value >::ListEntryHead< fuse_ino_t >::PopFront().
|
inlinevirtual |
Checks if the ListEntry is the list head
Implements lru::LruCache< Key, Value >::ListEntry< T >.
|
inline |
Take a list entry out of it's list and reinsert at the end of this list.
the | ListEntry to be moved to the end of this list |
Definition at line 469 of file lru.h.
Referenced by lru::LruCache< shash::Any, MemoryBuffer >::Touch().
|
inlineprivate |
Pop a ListEntry from the list (arbitrary position). The given ListEntry is removed from the list, deleted and it's data content is returned
popped_entry | the entry to be popped |
Definition at line 489 of file lru.h.
Referenced by lru::LruCache< Key, Value >::ListEntryHead< fuse_ino_t >::PopFront().
|
inline |
Pop the first object of the list. The object is returned and removed from the list
Definition at line 460 of file lru.h.
Referenced by lru::LruCache< shash::Any, MemoryBuffer >::DeleteOldest().
|
inline |
Push a new data object to the end of the list.
the | data object to insert |
Definition at line 448 of file lru.h.
Referenced by lru::LruCache< shash::Any, MemoryBuffer >::Insert().
|
inlinevirtual |
See ListEntry base class
Implements lru::LruCache< Key, Value >::ListEntry< T >.
|
private |
Definition at line 501 of file lru.h.
Referenced by lru::LruCache< Key, Value >::ListEntryHead< fuse_ino_t >::clear(), lru::LruCache< Key, Value >::ListEntryHead< fuse_ino_t >::Pop(), and lru::LruCache< Key, Value >::ListEntryHead< fuse_ino_t >::PushBack().