本文整理汇总了C++中Executer::pop方法的典型用法代码示例。如果您正苦于以下问题:C++ Executer::pop方法的具体用法?C++ Executer::pop怎么用?C++ Executer::pop使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Executer
的用法示例。
在下文中一共展示了Executer::pop方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: executeExponentialIntInt
void executeExponentialIntInt(Executer &executer)
{
auto y = executer.topInt();
executer.pop();
auto x = executer.topInt();
executer.setTop(PowerIntInt{executer, x, y}());
}
示例2: executeExponentialIntDbl
void executeExponentialIntDbl(Executer &executer)
{
auto y = executer.topDbl();
executer.pop();
auto x = executer.topIntAsDbl();
calculatePowerDblDbl(executer, x, y);
}
示例3: popIntegerDivisor
inline int32_t popIntegerDivisor(Executer &executer)
{
auto rhs = executer.topInt();
checkDivideByZero(executer, rhs);
executer.pop();
return rhs;
}
示例4: popDoubleDivisor
inline double popDoubleDivisor(Executer &executer)
{
auto rhs = executer.topDbl();
checkDivideByZero(executer, rhs);
executer.pop();
return rhs;
}
示例5: executeCatTmpTmp
void executeCatTmpTmp(Executer &executer)
{
auto rhs = executer.moveTopTmpStr();
executer.pop();
*executer.topTmpStr() += *rhs;
}
示例6: executeMultiplyIntDbl
void executeMultiplyIntDbl(Executer &executer)
{
auto rhs = executer.topDbl();
executer.pop();
auto lhs = executer.topIntAsDbl();
multiplyAndCheckResult(executer, lhs, rhs);
}
示例7: executeCatStrStr
void executeCatStrStr(Executer &executer)
{
auto rhs = executer.topStr();
executer.pop();
executer.setTop(*executer.topStr());
*executer.topTmpStr() += *rhs;
}
示例8: executeSubtractDblDbl
void executeSubtractDblDbl(Executer &executer)
{
auto rhs = executer.topDbl();
executer.pop();
auto result = executer.topDbl() - rhs;
checkDoubleOverflow(executer, result);
executer.setTop(result);
}
示例9: executeSubtractIntInt
void executeSubtractIntInt(Executer &executer)
{
auto rhs = executer.topInt();
executer.pop();
auto result = int64_t{executer.topInt()};
result -= rhs;
checkIntegerOverflow(executer, result);
executer.setTopIntFromInt64(result);
}
示例10: executeCatStrTmp
void executeCatStrTmp(Executer &executer)
{
auto rhs_result = executer.topTmpStr();
executer.pop();
auto lhs_rhs = std::string{*executer.topStr()};
std::swap(lhs_rhs, *rhs_result);
executer.setTop(rhs_result);
*executer.topTmpStr() += lhs_rhs;
}
示例11: executeImp
void executeImp(Executer &executer)
{
auto rhs = executer.topInt();
executer.pop();
executer.setTop(~executer.topInt() | rhs);
}
示例12: executeEqv
void executeEqv(Executer &executer)
{
auto rhs = executer.topInt();
executer.pop();
executer.setTop(~(executer.topInt() ^ rhs));
}
示例13: executeXor
void executeXor(Executer &executer)
{
auto rhs = executer.topInt();
executer.pop();
executer.setTop(executer.topInt() ^ rhs);
}
示例14: executeAnd
void executeAnd(Executer &executer)
{
auto rhs = executer.topInt();
executer.pop();
executer.setTop(executer.topInt() & rhs);
}
示例15: executeAddDblInt
void executeAddDblInt(Executer &executer)
{
auto rhs = executer.topIntAsDbl();
executer.pop();
executer.setTop(executer.topDbl() + rhs);
}