登录
首页 » Windows开发 » 我想你知道一个MRU缓存是什么,否则你不会读这个…

我想你知道一个MRU缓存是什么,否则你不会读这个…

于 2022-11-30 发布 文件大小:1.79 kB
0 140
下载积分: 2 下载次数: 1

代码说明:

I suppose you know what a MRU cache is, otherwise you wouldn t been reading this. This is an implementation of a very simple one using only STL. To implement a cache, derive a subclass from this template class. As an implementor, you d have to implement two methods: HandleNonExistingKeyFetch - to handle cache misses. In this method you access the real source of data behind the cache and return the value. HandleItemRelease - (optional) called when an item is removed from the cache. The cache class is a template of two types, a key and value (like hash map). The value type is the type of the resource and the key type is the type of the resource address. (this is how you fetch a resource) -I suppose you know what a MRU cache is, otherwise you wouldn t been reading this.This is an implementation of a very simple one using only STL.To implement a cache, derive a subclass from this template class.As an implementor, you d have to implement two methods: HandleNonExistingKeyF

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 鼠标左键反应程序 MFC
    鼠标左键反应程序 MFC-left mouse button response procedures MFC
    2023-01-29 23:10:04下载
    积分:1
  • MFC简单画图程序Draw
    这个画图小程序是在 VS2012环境下编写的 MFC 单文档程序, 压缩包内含程序设计详细说明。 功能概述  通过在菜单中选择不同的形状,可以实现画直线、矩形、椭圆以及鼠标按下时随着鼠标移动划线以及橡皮擦功能, 线条粗细、颜色也可以在菜单中调整。  设计思路  通过对菜单的响应获取绘图类型、颜色和线条粗细程度。 通过 CPen 类更改画笔颜色和粗细或将画笔改为橡皮擦, 通过 CDC 类的成员函数 MoveTo( int x, int y );   LineTo( int x, int y );  Rectangle( int x1, int y1, int x2, int y2 );   Ellipse( int x1, int y1, int x2, int y2 );  请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2022-03-18 10:23:50下载
    积分:1
  • 安装程序制作软件
    安装程序制作软件-software installation procedures
    2022-03-02 13:45:51下载
    积分:1
  • java increase in the brief video EJB do 11111111 Park
    java的EJB简介加视频朴做-java increase in the brief video EJB do 11111111 Park
    2022-03-04 02:04:50下载
    积分:1
  • seven VC source code can be proficient in the basic phrases C
    7个VC++的源代码,可以精通C++的基本语句-seven VC source code can be proficient in the basic phrases C
    2022-03-18 23:15:07下载
    积分:1
  • 卡通小闹钟源代码,vc++编写,是学习vc的好例子
    卡通小闹钟源代码,vc++编写,是学习vc的好例子 -cartoon small alarm clock source code, vc prepared to learn a good example vc
    2022-03-10 03:14:10下载
    积分:1
  • 一个基于windows ce 4.2系统的在SH3上运行的tcpip协议寨的客户端程序....
    一个基于windows ce 4.2系统的在SH3上运行的tcpip协议寨的客户端程序.-windows ce based on a 4.2 system running on the SH3 the TCPIP agreement Walled the client program.
    2022-06-30 12:41:35下载
    积分:1
  • dynamic change to the information stall no longer recompile PE stalls can be use...
    动态更改信息暂停不再重新编译PE暂停可以用来更改序列号身份验证
    2022-08-21 07:12:04下载
    积分:1
  • DSP库LIB
    这是stm32f1xx 的DSP官网库,安装完就可以用。 This user manual describes the STM32F10x DSP (digital signal processing) library, which is a suite of common digital signal processing functions: a suite of common digital signal processing functions: ● PID controller ● Fast Fourier transform ● FIR and IIR filters The library contains C and assembly functions. The assembly code is ported on ARM®, GCC and IAR Systems™ assemblers.
    2022-08-18 11:37:11下载
    积分:1
  • 我写的WINCE5.0下的USB驱动程序,支持键盘和鼠标,采用批量传输,绝对可用。...
    我写的WINCE5.0下的USB驱动程序,支持键盘和鼠标,采用批量传输,绝对可用。-WINCE5.0 I write under the USB drivers, support for keyboard and mouse, using bulk transfer, is absolutely available.
    2022-08-08 07:36:56下载
    积分:1
  • 696516资源总数
  • 106562会员总数
  • 4今日下载