本文整理汇总了C++中Indices::Items方法的典型用法代码示例。如果您正苦于以下问题:C++ Indices::Items方法的具体用法?C++ Indices::Items怎么用?C++ Indices::Items使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Indices
的用法示例。
在下文中一共展示了Indices::Items方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ParsePatterns
void ParsePatterns(const Indices& pats, Builder& builder) const
{
Dbg("Patterns: %1% to parse", pats.Count());
for (Indices::Iterator it = pats.Items(); it; ++it)
{
const uint_t patIndex = *it;
Dbg("Parse pattern %1%", patIndex);
ParsePattern(patIndex, builder);
}
}
示例2: ParseOrnaments
void ParseOrnaments(const Indices& ornaments, Builder& builder) const
{
Dbg("Ornaments: %1% to parse", ornaments.Count());
const std::size_t ornamentsTable = fromLE(Source.OrnamentsOffset);
for (Indices::Iterator it = ornaments.Items(); it; ++it)
{
const uint_t ornIdx = *it;
Dbg("Parse ornament %1%", ornIdx);
const std::size_t ornOffset = ReadWord(ornamentsTable, ornIdx);
Ornament result;
ParseOrnament(ornOffset, result);
builder.SetOrnament(ornIdx, result);
}
}
示例3: ParseSamples
void ParseSamples(const Indices& samples, Builder& builder) const
{
Dbg("Samples: %1% to parse", samples.Count());
const std::size_t samplesTable = fromLE(Source.SamplesOffset);
for (Indices::Iterator it = samples.Items(); it; ++it)
{
const uint_t samIdx = *it;
Dbg("Parse sample %1%", samIdx);
const std::size_t samOffset = ReadWord(samplesTable, samIdx);
Sample result;
ParseSample(samOffset, result);
builder.SetSample(samIdx, result);
}
}