📄 sciter.h
字号:
// simulated chain iterator
#ifndef SimChainIterator_
#define SimChainIterator_
template<class T>
class SimChainIterator {
public:
T* Initialize(const SimChain<T>& c)
{location = c.first;
S = &c.S;
if (location == -1) return 0;
return &S->node[location].data;
}
T* Next()
{if (location == -1) return 0;
location = S->node[location].link;
if (location == -1) return 0;
return &S->node[location].data;
}
private:
SimSpace<T> *S; // pointer to simulated space for chain
int location; // node index in simulated space
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -