com.arm.carp.pencil

ArrayType

case class ArrayType(base: Type, range: ScalarExpression) extends Type with Product with Serializable

Array type representation.

An array type is defined by its base element type and the size of the array (as a scalar expression).

Since non-scalar casts are forbidden in PENCIL, the only situation when array conversion is needed is when passing arguments to a function. In that case the only requirement is that base scalar types for both (parameter and argument) array types are compatible.

Linear Supertypes
Serializable, Serializable, Product, Equals, Type, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ArrayType
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Type
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ArrayType(base: Type, range: ScalarExpression)

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. val base: Type

  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. def compatible(t: Type): Boolean

    Check whether this type is the same (except constant qualifier), as the type t.

    Check whether this type is the same (except constant qualifier), as the type t. See below for more details.

    t

    - Type to compare to.

    returns

    true if this type is the same, as t, false otherwise.

    Definition Classes
    ArrayTypeType
  10. val const: Boolean

    Definition Classes
    Type
  11. def convertible(t: Type): Boolean

    Check whether this type can be converted to type t.

    Check whether this type can be converted to type t.

    t

    - Type to convert to.

    returns

    true if this type can be converted to t, false otherwise.

    Definition Classes
    ArrayTypeType
  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. val isBoolean: Boolean

    true for boolean types.

    true for boolean types.

    Definition Classes
    Type
  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. val isInt: Boolean

    true for integer types.

    true for integer types.

    Definition Classes
    Type
  18. val isNumeric: Boolean

    true for numeric (integer and floating point) types.

    true for numeric (integer and floating point) types.

    Definition Classes
    Type
  19. val isScalar: Boolean

    true for scalar types.

    true for scalar types.

    Definition Classes
    Type
  20. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  23. var range: ScalarExpression

  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  25. def updateConst(in: Boolean): ArrayType

    Create a new type by setting constant qualifier of the this type to specific value.

    Create a new type by setting constant qualifier of the this type to specific value.

    in

    - New value of the constant qualifier.

    returns

    New type.

    Definition Classes
    ArrayTypeType
  26. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  27. final def wait(arg0: Long, arg1: Int): Unit

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Type

Inherited from AnyRef

Inherited from Any

Ungrouped