本文整理汇总了C++中VarList::end方法的典型用法代码示例。如果您正苦于以下问题:C++ VarList::end方法的具体用法?C++ VarList::end怎么用?C++ VarList::end使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类VarList
的用法示例。
在下文中一共展示了VarList::end方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Inst
InstFakeKill::InstFakeKill(Cfg *Func, const VarList &KilledRegs,
const Inst *Linked)
: Inst(Func, Inst::FakeKill, KilledRegs.size(), NULL), Linked(Linked) {
for (VarList::const_iterator I = KilledRegs.begin(), E = KilledRegs.end();
I != E; ++I) {
Variable *Var = *I;
addSource(Var);
}
}
示例2: var
const Var* var( const std::string name ) const
{
VarList::const_iterator var = m_vars.begin();
VarList::const_iterator last = m_vars.end();
while ( var != last )
{
if ( (*var)->name() == name ) break;
var++;
}
return( *var );
}
示例3: while
~File( void )
{
if ( m_file ) delete m_file;
DimList::iterator dim = m_dims.begin();
DimList::const_iterator last_dim = m_dims.end();
while ( dim != last_dim )
{
if ( *dim ) delete *dim;
dim++;
}
m_dims.clear();
VarList::iterator var = m_vars.begin();
VarList::const_iterator last_var = m_vars.end();
while ( var != last_var )
{
if ( *var ) delete *var;
var++;
}
m_vars.clear();
}
示例4: condition
/**
* Convenience function for conditioning one iterator on the current
* value of another. This equalivalent to the following code
* <pre>
* DomainIterator it1(...), it2(...);
* DomainIterator::VarList vars = it1.getVars();
* DomainIterator::IndList inds = it1.getSubInd();
* it2.condition(vars.begin(),vars.end(),inds.begin(), inds.end());
* </pre>
* @see DomainIterator::condition(const VarIt,const VarIt,const IndIt,const IndIt)
*/
void DomainIterator::condition(const DomainIterator& it)
{
VarList vars = it.getVars();
IndList inds = it.getSubInd();
condition(vars.begin(),vars.end(),inds.begin(), inds.end());
}