📄 icestack.h
字号:
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/**
* Contains simple stacks.
* \file IceStack.h
* \author Pierre Terdiman
* \date February, 5, 2000
*/
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Include Guard
#ifndef __ICESTACK_H__
#define __ICESTACK_H__
class ICECORE_API LIFOStack : public Container
{
public:
//! Constructor
LIFOStack() {}
//! Destructor
~LIFOStack() {}
// Management
inline_ LIFOStack& Push(udword entry) { Add(entry); return *this; }
bool Pop(udword &entry);
};
class ICECORE_API FIFOStack : public Container
{
public:
//! Constructor
FIFOStack() : mCurIndex(0) {}
//! Destructor
~FIFOStack() {}
// Management
inline_ FIFOStack& Push(udword entry) { Add(entry); return *this; }
bool Pop(udword &entry);
private:
udword mCurIndex; //!< Current index within the container
};
#endif // __ICESTACK_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -