Пример #1
0
static int
TimesNumAndResetOriginal(BasicValue& aValue, int aNum)
{
  int tag = aValue.GetTag();
  aValue.SetTag(1);
  return tag * aNum;
}
Пример #2
0
static int
TimesTwoAndResetOriginal(BasicValue& aValue)
{
  int tag = aValue.GetTag();
  aValue.SetTag(1);
  return tag * 2;
}
Пример #3
0
 int operator()(BasicValue& aValue)
 {
   return aValue.GetTag() * mBy.GetTag();
 }
Пример #4
0
static int
TimesTwo(const BasicValue& aValue)
{
  return aValue.GetTag() * 2;
}
Пример #5
0
 void operator()(BasicValue& aValue)
 {
   aValue.SetTag(aValue.GetTag() + mBy.GetTag());
 }
Пример #6
0
static void
IncrementTag(BasicValue& aValue)
{
  gFunctionWasApplied = true;
  aValue.SetTag(aValue.GetTag() + 1);
}
Пример #7
0
 int operator()(BasicValue& aValue, BasicValue&& aArg)
 {
   mArgMoved = true;
   return aValue.GetTag() * aArg.GetTag();
 }
Пример #8
0
 int operator()(BasicValue& aValue, const BasicValue& aArg)
 {
   mArgMoved = false;
   return aValue.GetTag() * aArg.GetTag();
 }
Пример #9
0
static int
TimesNum(const BasicValue& aValue, int aNum)
{
  return aValue.GetTag() * aNum;
}
Пример #10
0
 void operator()(BasicValue& aValue, BasicValue&& aArg)
 {
   mArgMoved = true;
   aValue.SetTag(aValue.GetTag() + aArg.GetTag());
 }
Пример #11
0
 void operator()(BasicValue& aValue, const BasicValue& aArg)
 {
   mArgMoved = false;
   aValue.SetTag(aValue.GetTag() + aArg.GetTag());
 }
Пример #12
0
static void
IncrementTagBy(BasicValue& aValue, int aAmount)
{
  gFunctionWasApplied = true;
  aValue.SetTag(aValue.GetTag() + aAmount);
}