本文整理汇总了C++中BasicValue类的典型用法代码示例。如果您正苦于以下问题:C++ BasicValue类的具体用法?C++ BasicValue怎么用?C++ BasicValue使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了BasicValue类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: TimesNumAndResetOriginal
static int
TimesNumAndResetOriginal(BasicValue& aValue, int aNum)
{
int tag = aValue.GetTag();
aValue.SetTag(1);
return tag * aNum;
}
示例2: TimesTwoAndResetOriginal
static int
TimesTwoAndResetOriginal(BasicValue& aValue)
{
int tag = aValue.GetTag();
aValue.SetTag(1);
return tag * 2;
}
示例3: operator
int operator()(BasicValue& aValue)
{
return aValue.GetTag() * mBy.GetTag();
}
示例4: TimesTwo
static int
TimesTwo(const BasicValue& aValue)
{
return aValue.GetTag() * 2;
}
示例5: IncrementTag
static void
IncrementTag(BasicValue& aValue)
{
gFunctionWasApplied = true;
aValue.SetTag(aValue.GetTag() + 1);
}
示例6: operator
int operator()(BasicValue& aValue, BasicValue&& aArg)
{
mArgMoved = true;
return aValue.GetTag() * aArg.GetTag();
}
示例7: TimesNum
static int
TimesNum(const BasicValue& aValue, int aNum)
{
return aValue.GetTag() * aNum;
}
示例8: IncrementTagBy
static void
IncrementTagBy(BasicValue& aValue, int aAmount)
{
gFunctionWasApplied = true;
aValue.SetTag(aValue.GetTag() + aAmount);
}