本文整理汇总了C++中VariableList::clear方法的典型用法代码示例。如果您正苦于以下问题:C++ VariableList::clear方法的具体用法?C++ VariableList::clear怎么用?C++ VariableList::clear使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类VariableList
的用法示例。
在下文中一共展示了VariableList::clear方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: whereClause
virtual void whereClause (const WhereClause* const, const TableOperation* p_GroupGraphPattern, const BindingClause* p_BindingClause) {
ResultSet* joined(NULL);
const ResultSet* working = &rs;
if (p_BindingClause != NULL) {
working = joined = new ResultSet(rs);
p_BindingClause->bindVariables(NULL, joined);
}
vars.clear(); // probably got filled with e.g. select vars.
p_GroupGraphPattern->express(this);
const TableOperation* op = last.tableOperation;
const VariableList* knownVars = working->getKnownVars();
std::vector<const POS*> v(vars.size() + knownVars->size());
std::vector<const POS*>::iterator needed =
std::set_intersection (vars.begin(), vars.end(), knownVars->begin(),
knownVars->end(), v.begin());
const std::set<const POS*> s(v.begin(), v.end());
const Expression* filter = working->getFederationExpression(s, false);
if (filter) {
Filter* f = new Filter(op);
f->addExpression(filter);
op = f;
}
if (joined)
delete joined;
last.whereClause = new WhereClause(op, NULL);
}