⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 genericfifo.h

📁 Larbin互联网蜘蛛索引系统
💻 H
字号:
// Larbin// Sebastien Ailleret// 20-01-00 -> 20-01-00/* superclass of all other fifos */#ifndef GENFIFO_H#define GENFIFO_H#define std_size 100template <class T>class GenericFifo { protected:  uint in, out; public:  /* Destructor */  virtual ~GenericFifo () {};  /* get the first object */  virtual T *get () = 0;  /* get the first object (non totally blocking)   * return NULL if there is none   */  virtual T *tryGet () = 0;  /* add an object in the GenericFifo */  virtual void put (T *obj) = 0;  /* add an object in the GenericFifo   * never block !!!   */  virtual void putForce (T *obj) = 0;  /* how many items are there inside ? */  virtual int getLength () = 0;};#endif // GENFIFO_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -