本文整理汇总了C++中Index::IsWatched方法的典型用法代码示例。如果您正苦于以下问题:C++ Index::IsWatched方法的具体用法?C++ Index::IsWatched怎么用?C++ Index::IsWatched使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Index
的用法示例。
在下文中一共展示了Index::IsWatched方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: IndexAdded
OP_STATUS IndexGroupWatched::IndexAdded(Indexer *indexer, UINT32 index_id)
{
if (m_or_range_start <= index_id && index_id < m_or_range_end)
{
Index* index = indexer->GetIndexById(index_id);
if (index && index->IsWatched())
{
return AddIndex(index_id);
}
}
return OpStatus::OK;
}
示例2: IndexVisibleChanged
OP_STATUS IndexGroupWatched::IndexVisibleChanged(Indexer *indexer, UINT32 index_id)
{
if (m_or_range_start <= index_id && index_id < m_or_range_end)
{
Index* index = indexer->GetIndexById(index_id);
if (index)
{
if (index->IsWatched())
{
return AddIndex(index_id);
}
else if (m_indexes.Contains(index_id))
return IndexRemoved(indexer, index_id);
}
}
return OpStatus::OK;
}
示例3: UnionIndexGroup
IndexGroupWatched::IndexGroupWatched(index_gid_t index_id, index_gid_t range_start, index_gid_t range_end)
: UnionIndexGroup(index_id)
, m_or_range_start(range_start)
, m_or_range_end(range_end)
{
// Or all indexes currently in the range that are being watched
INT32 it = -1;
Index* index = m_indexer->GetRange(range_start, range_end, it);
while (index)
{
if (index->IsWatched())
{
AddIndex(index->GetId());
}
index = m_indexer->GetRange(range_start, range_end, it);
}
}