HierarchyIsA

chisel3.experimental.hierarchy.core.HierarchyIsA
trait HierarchyIsA[+A] extends HierarchyProto[A], Selectable

Attributes

Source
IsA.scala
Graph
Supertypes
trait Selectable
trait HierarchyProto[A]
class Object
trait Matchable
class Any
Known subtypes
trait Hierarchy[A]

Members list

Value members

Concrete methods

def isA[B : ClassTag]: Boolean

Determine whether underlying proto is of type provided.

Determine whether underlying proto is of type provided.

Attributes

Returns

Whether underlying proto is of provided type (with caveats outlined above)

Note

IMPORTANT: this function IGNORES type parameters, akin to normal type erasure.

IMPORTANT: this function relies on Java reflection for underlying proto, but Scala reflection for provided type E.g. isA[List[Int]] will return true, even if underlying proto is of type List[String]

Source
IsA.scala

Inherited methods

transparent inline def applyDynamic(inline name: String)(inline args: Any*): Any

Attributes

Inherited from:
HierarchyProto
Source
IsA.scala
transparent inline def selectDynamic(inline name: String): Any

Attributes

Inherited from:
HierarchyProto
Source
IsA.scala