本文整理汇总了C++中Directory::RemoveDirectoryIterator方法的典型用法代码示例。如果您正苦于以下问题:C++ Directory::RemoveDirectoryIterator方法的具体用法?C++ Directory::RemoveDirectoryIterator怎么用?C++ Directory::RemoveDirectoryIterator使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Directory
的用法示例。
在下文中一共展示了Directory::RemoveDirectoryIterator方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Next
Node* Next()
{
if (state == 0) {
state = 1;
node = directory->Parent();
if (node == NULL)
node = directory;
return node;
}
if (state == 1) {
node = directory->FirstChild();
state = 2;
} else {
if (node != NULL)
node = directory->NextChild(node);
}
if (node == NULL) {
if (registered) {
directory->RemoveDirectoryIterator(this);
registered = false;
}
return NULL;
}
if (!registered) {
directory->AddDirectoryIterator(this);
registered = true;
}
return node;
}
示例2: Rewind
void Rewind()
{
if (registered)
directory->RemoveDirectoryIterator(this);
registered = false;
state = 0;
node = directory;
}
示例3:
~DirectoryCookie()
{
if (registered)
directory->RemoveDirectoryIterator(this);
}