本文整理汇总了C++中sequencetype::List类的典型用法代码示例。如果您正苦于以下问题:C++ List类的具体用法?C++ List怎么用?C++ List使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了List类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: expectedOperandTypes
SequenceType::List TruthPredicate::expectedOperandTypes() const
{
SequenceType::List result;
result.append(CommonSequenceTypes::ZeroOrMoreItems);
result.append(CommonSequenceTypes::EBV);
return result;
}
示例2: expectedOperandTypes
SequenceType::List ComputedNamespaceConstructor::expectedOperandTypes() const
{
SequenceType::List result;
result.append(CommonSequenceTypes::ZeroOrOneString);
result.append(CommonSequenceTypes::ZeroOrOneString);
return result;
}
示例3: expectedOperandTypes
SequenceType::List RangeExpression::expectedOperandTypes() const
{
SequenceType::List result;
result.append(CommonSequenceTypes::ZeroOrOneInteger);
result.append(CommonSequenceTypes::ZeroOrOneInteger);
return result;
}
示例4: expectedOperandTypes
SequenceType::List ReturnOrderBy::expectedOperandTypes() const
{
SequenceType::List result;
result.append(CommonSequenceTypes::ZeroOrMoreItems);
result.append(CommonSequenceTypes::ZeroOrOneAtomicType);
return result;
}
示例5: expectedOperandTypes
SequenceType::List AndExpression::expectedOperandTypes() const
{
SequenceType::List result;
result.append(CommonSequenceTypes::EBV);
result.append(CommonSequenceTypes::EBV);
return result;
}
示例6: expectedOperandTypes
SequenceType::List ArithmeticExpression::expectedOperandTypes() const
{
SequenceType::List result;
result.append(CommonSequenceTypes::ZeroOrOneAtomicType);
result.append(CommonSequenceTypes::ZeroOrOneAtomicType);
return result;
}
示例7: expectedOperandTypes
SequenceType::List LetClause::expectedOperandTypes() const
{
SequenceType::List result;
result.append(CommonSequenceTypes::ZeroOrMoreItems);
result.append(CommonSequenceTypes::ZeroOrMoreItems);
return result;
}
示例8: expectedOperandTypes
SequenceType::List AttributeConstructor::expectedOperandTypes() const
{
SequenceType::List result;
result.append(CommonSequenceTypes::ExactlyOneQName);
result.append(CommonSequenceTypes::ZeroOrMoreItems);
return result;
}
示例9: expectedOperandTypes
SequenceType::List GeneralComparison::expectedOperandTypes() const
{
SequenceType::List result;
result.append(CommonSequenceTypes::ZeroOrMoreAtomicTypes);
result.append(CommonSequenceTypes::ZeroOrMoreAtomicTypes);
return result;
}
示例10: expectedOperandTypes
SequenceType::List QuantifiedExpression::expectedOperandTypes() const
{
SequenceType::List result;
result.append(CommonSequenceTypes::ZeroOrMoreItems);
result.append(CommonSequenceTypes::EBV);
return result;
}
示例11: expectedOperandTypes
SequenceType::List ExpressionSequence::expectedOperandTypes() const
{
SequenceType::List result;
/* ExpressionSequence is a bit strange type wise since it has an
* infinite amount of operands. */
result.append(CommonSequenceTypes::ZeroOrMoreItems);
return result;
}
示例12: expectedOperandTypes
SequenceType::List CastAs::expectedOperandTypes() const
{
SequenceType::List result;
if(m_targetType->cardinality().allowsEmpty())
result.append(CommonSequenceTypes::ZeroOrOneAtomicType);
else
result.append(CommonSequenceTypes::ExactlyOneAtomicType);
return result;
}
示例13: expectedOperandTypes
SequenceType::List FunctionCall::expectedOperandTypes() const
{
const FunctionArgument::List args(signature()->arguments());
FunctionArgument::List::const_iterator it(args.constBegin());
const FunctionArgument::List::const_iterator end(args.constEnd());
// TODO reserve/resize()
SequenceType::List result;
for(; it != end; ++it)
result.append((*it)->type());
return result;
}
示例14: expectedOperandTypes
SequenceType::List Path::expectedOperandTypes() const
{
SequenceType::List result;
/* This value needs to be in sync with what we pass to
* applyFunctionConversion() in typeCheck() above.
*
* We don't have the XPTY0019 restriction when we're synthetic XSL-T code.
*/
if(m_kind == XSLTForEach)
result.append(CommonSequenceTypes::ZeroOrMoreItems);
else
result.append(CommonSequenceTypes::ZeroOrMoreNodes);
result.append(CommonSequenceTypes::ZeroOrMoreItems);
return result;
}
示例15:
SequenceType::List EvaluationCache<IsForGlobal>::expectedOperandTypes() const
{
/* Remember that EvaluationCache::typeCheck() will be called from multiple locations,
* which potentially have different type requirements. For instance, one wants a node,
* and another requires atomization and casting.
*
* Returning ZeroOrMoreItems is safe here because staticType() returns the operand's type
* and therefore the convertors like Atomizer will be parents to us, and hence only affect
* the relevant path.
*
* ZeroOrMoreItems also make sense logically since we're actually only used where the
* variable references reference us. */
SequenceType::List result;
result.append(CommonSequenceTypes::ZeroOrMoreItems);
return result;
}