Home Texas Home

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

bitAndValue Take the current value and perform a bitwise and with the parameter value.
bitOrValue Take the current value and perform a bitwise or with the parameter value.
bitXOrValue Take the current value and perform a bitwise exclusive or with the parameter value.
bitRotateValue Take 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

Copyright © 2007, Ekky Software Pty Ltd.