store_repl_heap.cc File Reference
#include "squid.h"
#include "heap.h"
#include "MemObject.h"
#include "Store.h"
#include "store_heap_replacement.h"
#include "wordlist.h"
#include <queue>
Include dependency graph for store_repl_heap.cc:

Go to the source code of this file.

Classes

struct  HeapPolicyData
 
struct  _HeapWalkData
 
class  HeapPurgeData
 

Typedefs

typedef struct _HeapWalkData HeapWalkData
 

Functions

static enum
HeapPolicyData::heap_entry_type 
heap_guessType (StoreEntry *entry, RemovalPolicyNode *node)
 
static void heap_add (RemovalPolicy *policy, StoreEntry *entry, RemovalPolicyNode *node)
 
static void heap_remove (RemovalPolicy *policy, StoreEntry *entry, RemovalPolicyNode *node)
 
static void heap_referenced (RemovalPolicy *policy, const StoreEntry *entry, RemovalPolicyNode *node)
 
static const StoreEntryheap_walkNext (RemovalPolicyWalker *walker)
 
static void heap_walkDone (RemovalPolicyWalker *walker)
 
static RemovalPolicyWalkerheap_walkInit (RemovalPolicy *policy)
 
static StoreEntryheap_purgeNext (RemovalPurgeWalker *walker)
 
static void heap_purgeDone (RemovalPurgeWalker *walker)
 
static RemovalPurgeWalkerheap_purgeInit (RemovalPolicy *policy, int max_scan)
 
static void heap_free (RemovalPolicy *policy)
 
RemovalPolicycreateRemovalPolicy_heap (wordlist *args)
 

Variables

REMOVALPOLICYCREATE createRemovalPolicy_heap
 
static int nr_heap_policies = 0
 

Typedef Documentation

typedef struct _HeapWalkData HeapWalkData

RemovalPolicyWalker

Definition at line 132 of file store_repl_heap.cc.

Function Documentation

static void heap_free ( RemovalPolicy policy)
static
static RemovalPurgeWalker* heap_purgeInit ( RemovalPolicy policy,
int  max_scan 
)
static
static void heap_referenced ( RemovalPolicy policy,
const StoreEntry entry,
RemovalPolicyNode node 
)
static
static void heap_remove ( RemovalPolicy policy,
StoreEntry entry,
RemovalPolicyNode node 
)
static
static RemovalPolicyWalker* heap_walkInit ( RemovalPolicy policy)
static
static const StoreEntry* heap_walkNext ( RemovalPolicyWalker walker)
static

Variable Documentation

REMOVALPOLICYCREATE createRemovalPolicy_heap

Definition at line 29 of file store_repl_heap.cc.

int nr_heap_policies = 0
static

Definition at line 31 of file store_repl_heap.cc.

Referenced by createRemovalPolicy_heap().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors