TVariable Bitwise Operators

Calculates and/or assigns a new value to the TVariable.

TVariable& operator&=(
   const TVariable &bitAndValue
);
TVariable& operator&=(
  __int64 bitAndValue
);
TVariable& operator|=(
   const TVariable &bitOrValue
);
TVariable& operator|=(
   __int64 bitOrValue
);
TVariable& operator^=(
   const TVariable &bitOrValue
);
TVariable& operator^=(
   __int64 bitOrValue
);
TVariable& operator<<=(
   const TVariable &bitRotateValue
);
TVariable& operator<<=(
   __int64 bitRotateValue
);
TVariable& operator>>=(
   const TVariable &bitRotateValue
);
TVariable& operator>>=(
   __int64 bitRotateValue
);
TVariable operator&(
   const TVariable &bitAndValue
);
TVariable operator|(
   const TVariable &bitOrValue
);
TVariable operator^(
   const TVariable &bitXOrValue
);
TVariable operator<<(
   const TVariable &bitRotateValue
);
TVariable operator<<(
   __int64 bitRotateValue
);
TVariable operator>>(
   const TVariable &bitRotateValue
);
TVariable operator>>(
   __int64 bitRotateValue
);
TVariable operator!(void);

Parameters

bitAndValuetake the current value and perform a bitwise and with the parameter value.
bitOrValuetake the current value and perform a bitwise or with the parameter value.
bitXOrValuetake the current value and perform a bitwise exclusive or with the parameter value.
bitRotateValuetake the current value and perform a bitwise rotation with the parameter value.

Return Values

These methods will return the modified TVariable, or a temporary const TVariable created on the stack.

Remarks

Example Use
TVariable var(0xccc);
var &= 0x333;

Also See

Boolean Operators, Calculable Operators
Comments (0)Listen All
Characters left: 2500
 
Ekky Software Homepage Ekky Software Homepage ObjectDatabase++ TScript Ekky Software Homepage Ekky Software Homepage ObjectDatabase++ TScript