Hybrid ICN (hICN) plugin  v21.06-rc0-4-g18fa668
Classes | Typedefs
cs_policy.h File Reference
#include "../hashtb.h"
Include dependency graph for cs_policy.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  hicn_cs_policy_s
 
struct  hicn_cs_policy_vft_s
 Definition of the virtual functin table for a cache policy. More...
 

Typedefs

typedef struct hicn_cs_policy_s hicn_cs_policy_t
 
typedef struct hicn_cs_policy_vft_s hicn_cs_policy_vft_t
 Definition of the virtual functin table for a cache policy. More...
 

Detailed Description

This file provides the needed structures to implement a CS policy

Typedef Documentation

◆ hicn_cs_policy_vft_t

Definition of the virtual functin table for a cache policy.

A cache policy must implement all the following functions:

  • insert: add a new element
  • update: update the position of an existing element
  • dequeue: remove an element from the list
  • delete_get: return the next element that should be removed trim
  • flush: clean the cs