接口 到核心 事件队列 方法。
定义于文件 EventQueue.h 的 64 行。
◆ ~IEventQueue()
Argus::IEventQueue::~IEventQueue |
( |
| ) |
|
|
inlineprotected |
◆ getEvent()
virtual const Event* Argus::IEventQueue::getEvent |
( |
uint32_t |
index | ) |
const |
|
纯虚函数 |
返回具有给定索引的事件,其中索引 0 对应于最旧的事件,而 [getSize() - 1] 是最新的事件。
返回的事件不会从队列中移除。如果索引不在 [0, getSize()-1] 范围内,则返回 NULL。
◆ getEventTypes()
virtual Status Argus::IEventQueue::getEventTypes |
( |
std::vector< EventType > * |
types | ) |
const |
|
纯虚函数 |
返回此队列将接收的事件类型。
- 参数
-
[out] | types | 此向量将填充注册到此队列的事件类型。 |
- 返回
- 调用的成功/状态。
◆ getNextEvent()
virtual const Event* Argus::IEventQueue::getNextEvent |
( |
| ) |
|
|
纯虚函数 |
返回队列中的下一个事件(即索引 0 处的事件)。
返回的事件将从队列中移除,但根据 waitForEvents() 描述的规则,该对象仍将保持有效。如果队列为空,则返回 NULL。
◆ getSize()
virtual uint32_t Argus::IEventQueue::getSize |
( |
| ) |
const |
|
纯虚函数 |
◆ id()
此类的文档从以下文件生成: