Packages

object BitSet

Source
BitPat.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BitSet
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def apply(bitpats: BitPat*): BitSet

    Construct a BitSet from a sequence of BitPat. All BitPat must have the same width.

  2. val empty: BitSet

    Empty BitSet.

  3. def fromRange(start: BigInt, length: BigInt, width: Int): BitSet

    Construct a BitSet matching a range of value

    Construct a BitSet matching a range of value

    start

    The smallest matching value

    length

    The length of the matching range

    width

    The width of the constructed BitSet. If not given, the returned BitSet have the width of the maximum possible matching value.

    returns

    A BitSet matcing exactly all inputs in range [start, start + length)

  4. def fromRange(start: BigInt, length: BigInt): BitSet

    Construct a BitSet matching a range of value automatically infer width by the bit length of (start + length - 1)

    Construct a BitSet matching a range of value automatically infer width by the bit length of (start + length - 1)

    start

    The smallest matching value

    length

    The length of the matching range

    returns

    A BitSet matching exactly all inputs in range [start, start + length)

  5. def fromString(str: String): BitSet

    Construct a BitSet from String.

    Construct a BitSet from String. each line should be a valid BitPat string with the same width.