📄 genericfifo.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 + -