trait BitwiseOperations[Repr <: BitwiseOperations[Repr, Idx], Idx] extends AnyRef
Bitwise operations on a value of type Repr
.
- Repr
type that supports that supports bitwise operations
- Idx
numeric index type
- Source
- BitwiseOperations.scala
- Grouped
- Alphabetic
- By Inheritance
- BitwiseOperations
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
and(other: Repr): Repr
Returns a bitwise AND of this value with the specified value.
Returns a bitwise AND of this value with the specified value.
The resulting value's size is the minimum of this value's size and the specified value's size.
-
abstract
def
not: Repr
Returns a bitwise complement of this value.
-
abstract
def
or(other: Repr): Repr
Returns a bitwise OR of this value with the specified value.
Returns a bitwise OR of this value with the specified value.
The resulting value's size is the minimum of this value's size and the specified value's size.
-
abstract
def
rotateLeft(n: Idx): Repr
Returns a value of the same size with each bit circularly shifted to the left
n
bits. -
abstract
def
rotateRight(n: Idx): Repr
Returns a value of the same size with each bit circularly shifted to the right
n
bits. -
abstract
def
shiftLeft(n: Idx): Repr
Returns a value of the same size with each bit shifted to the left
n
bits. -
abstract
def
shiftRight(n: Idx, signExtension: Boolean): Repr
Returns a value of the same size with each bit shifted to the right
n
bits.Returns a value of the same size with each bit shifted to the right
n
bits.- signExtension
whether the
n
left-msot bits should take on the value of bit 0
-
abstract
def
xor(other: Repr): Repr
Returns a bitwise XOR of this value with the specified value.
Returns a bitwise XOR of this value with the specified value.
The resulting value's size is the minimum of this value's size and the specified value's size.
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
&(other: Repr): Repr
Returns a bitwise AND of this value with the specified value.
Returns a bitwise AND of this value with the specified value.
The resulting value's size is the minimum of this value's size and the specified value's size.
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from BitwiseOperations[Repr, Idx] to any2stringadd[BitwiseOperations[Repr, Idx]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (BitwiseOperations[Repr, Idx], B)
- Implicit
- This member is added by an implicit conversion from BitwiseOperations[Repr, Idx] to ArrowAssoc[BitwiseOperations[Repr, Idx]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
<<(n: Idx): Repr
Returns a value of the same size with each bit shifted to the left
n
bits. -
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
>>(n: Idx): Repr
Returns a value of the same size with each bit shifted to the right
n
bits where then
left-most bits are sign extended. -
final
def
>>>(n: Idx): Repr
Returns a value of the same size with each bit shifted to the right
n
bits where then
left-most bits are low. -
final
def
^(other: Repr): Repr
Returns a bitwise XOR of this value with the specified value.
Returns a bitwise XOR of this value with the specified value.
The resulting value's size is the minimum of this value's size and the specified value's size.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
ensuring(cond: (BitwiseOperations[Repr, Idx]) ⇒ Boolean, msg: ⇒ Any): BitwiseOperations[Repr, Idx]
- Implicit
- This member is added by an implicit conversion from BitwiseOperations[Repr, Idx] to Ensuring[BitwiseOperations[Repr, Idx]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (BitwiseOperations[Repr, Idx]) ⇒ Boolean): BitwiseOperations[Repr, Idx]
- Implicit
- This member is added by an implicit conversion from BitwiseOperations[Repr, Idx] to Ensuring[BitwiseOperations[Repr, Idx]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): BitwiseOperations[Repr, Idx]
- Implicit
- This member is added by an implicit conversion from BitwiseOperations[Repr, Idx] to Ensuring[BitwiseOperations[Repr, Idx]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): BitwiseOperations[Repr, Idx]
- Implicit
- This member is added by an implicit conversion from BitwiseOperations[Repr, Idx] to Ensuring[BitwiseOperations[Repr, Idx]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from BitwiseOperations[Repr, Idx] to StringFormat[BitwiseOperations[Repr, Idx]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
iff(other: Repr): Repr
Returns a bitwise if-and-only-if of this value with the specified value.
Returns a bitwise if-and-only-if of this value with the specified value.
The resulting value's size is the minimum of this value's size and the specified value's size.
-
def
implies(other: Repr): Repr
Returns a bitwise implication of this value with the specified value.
Returns a bitwise implication of this value with the specified value.
The resulting value's size is the minimum of this value's size and the specified value's size.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
nand(other: Repr): Repr
Returns a bitwise NAND of this value with the specified value.
Returns a bitwise NAND of this value with the specified value.
The resulting value's size is the minimum of this value's size and the specified value's size.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
nor(other: Repr): Repr
Returns a bitwise NOR of this value with the specified value.
Returns a bitwise NOR of this value with the specified value.
The resulting value's size is the minimum of this value's size and the specified value's size.
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
unary_~(): Repr
Returns a bitwise complement of this value.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
|(other: Repr): Repr
Returns a bitwise OR of this value with the specified value.
Returns a bitwise OR of this value with the specified value.
The resulting value's size is the minimum of this value's size and the specified value's size.
-
def
→[B](y: B): (BitwiseOperations[Repr, Idx], B)
- Implicit
- This member is added by an implicit conversion from BitwiseOperations[Repr, Idx] to ArrowAssoc[BitwiseOperations[Repr, Idx]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc