Trait/Object

firrtl.fuzzer

GenMonad

Related Docs: object GenMonad | package fuzzer

Permalink

trait GenMonad[Gen[_]] extends AnyRef

Monads that represent a random value generator

Source
GenMonad.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GenMonad
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def choose(min: Int, max: Int): Gen[Int]

    Permalink

    Creates a generator that produces values uniformly distributed across the range

    Creates a generator that produces values uniformly distributed across the range

    The generated values are inclusive of both min and max.

  2. abstract def const[A](c: A): Gen[A]

    Permalink

    Creates a generator that always returns the same value

  3. abstract def flatMap[A, B](a: Gen[A])(f: (A) ⇒ Gen[B]): Gen[B]

    Permalink

    Creates a new generator that applies the function to the output of the first generator and flattens the result

  4. abstract def generate[A](ga: Gen[A]): A

    Permalink

    Runs the given generator and returns the generated value

  5. abstract def map[A, B](a: Gen[A])(f: (A) ⇒ B): Gen[B]

    Permalink

    Creates a new generator that applies the function to the output of the first generator

  6. abstract def oneOf[A](items: A*): Gen[A]

    Permalink

    Creates a generator that uniformly selects from a list of items

  7. abstract def widen[A, B >: A](ga: Gen[A]): Gen[B]

    Permalink

    Returns the same generator but with a wider type parameter

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def flatten[A](gga: Gen[Gen[A]]): Gen[A]

    Permalink

    Flattens a nested generator into a single generator

  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  14. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  15. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  16. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped