Trait

cogx.api

ImplicitConversions

Related Doc: package api

Permalink

trait ImplicitConversions extends AnyRef

Implicit conversions needed to emulate static typing in Cog.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ImplicitConversions
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

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
    @throws( ... )
  6. implicit def complexToCogComplex(c: cogmath.algebra.complex.Complex): CogComplex

    Permalink

    Implicit conversion of a Complex to a CogComplex which allows for fields to be combined with floating point numbers in a simple way.

    Implicit conversion of a Complex to a CogComplex which allows for fields to be combined with floating point numbers in a simple way. This makes it possible to express commutative operations with a common syntax.

    For example

    Field + Complex

    and

    Complex + Field

    are both legal and compilable with this implicit conversion.

    c

    The Complex to be converted to a CogComplex

    returns

    The CogComplex created from c.

  7. implicit def complexVectorTo0DComplexVectorField(v: cogmath.algebra.complex.ComplexVector): compiler.parser.syntaxtree.ComplexVectorField

    Permalink

    Implicit conversion of a ComplexVector to a 0D constant ComplexVectorField which allows for fields to be combined with ComplexVectors in a simple way.

    Implicit conversion of a ComplexVector to a 0D constant ComplexVectorField which allows for fields to be combined with ComplexVectors in a simple way. This makes it possible to express commutative operations with a common syntax.

    For example

    Field + ComplexVector

    and

    ComplexVector + Field

    are both legal and compilable with this implicit conversion.

    v

    The complex vector to be converted to a 0D complex vector field.

    returns

    A 0D complex vector field initialized to v.

  8. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. implicit def fieldArrayToMatrixFieldArray(a: Array[compiler.parser.syntaxtree.Field]): Array[compiler.parser.syntaxtree.MatrixField]

    Permalink

    Implicit conversion of an array of Fields to an array of ScalarFields.

    Implicit conversion of an array of Fields to an array of ScalarFields.

    a

    An array of Fields.

    returns

    An array of MatrixFields.

  11. implicit def fieldArrayToScalarFieldArray(a: Array[compiler.parser.syntaxtree.Field]): Array[compiler.parser.syntaxtree.ScalarField]

    Permalink

    Implicit conversion of an array of Fields to an array of ScalarFields.

    Implicit conversion of an array of Fields to an array of ScalarFields.

    a

    An array of Fields.

    returns

    An array of ScalarFields.

  12. implicit def fieldArrayToVectorFieldArray(a: Array[compiler.parser.syntaxtree.Field]): Array[compiler.parser.syntaxtree.VectorField]

    Permalink

    Implicit conversion of an array of Fields to an array of ScalarFields.

    Implicit conversion of an array of Fields to an array of ScalarFields.

    a

    An array of Fields.

    returns

    An array of VectorFields.

  13. implicit def fieldToColorField(f: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.ColorField

    Permalink

    Implicit conversion of a Field to a ColorField.

    Implicit conversion of a Field to a ColorField. Field is abstract, so this method will perform the appropriate type coercion if the field is already a ColorField but stored in a Field variable. This method also supports converting a ScalarField or VectorField to a ColorField.

    f

    A field which needs coercion to the ColorField type.

    returns

    The converted field.

  14. implicit def fieldToComplexField(f: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.ComplexField

    Permalink

    Implicit conversion of a Field to a ComplexField.

    Implicit conversion of a Field to a ComplexField. Field is abstract, so this method will perform the appropriate type coercion if the field is already a ComplexField but stored in a Field variable. This method also supports converting a ScalarField to a ComplexField.

    f

    A field which needs coercion to the ComplexField type.

    returns

    The converted field.

  15. implicit def fieldToComplexVectorField(f: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.ComplexVectorField

    Permalink

    Implicit conversion of a Field to a ComplexField.

    Implicit conversion of a Field to a ComplexField. Field is abstract, so this method will perform the appropriate type coercion if the field is already a ComplexField but stored in a Field variable. This method also supports converting a ScalarField to a ComplexField.

    f

    A field which needs coercion to the ComplexVectorField type.

    returns

    The converted field.

  16. implicit def fieldToMatrixField(f: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.MatrixField

    Permalink

    Implicit conversion of a Field to a MatrixField.

    Implicit conversion of a Field to a MatrixField. Since Field is abstract, the only possible conversion is if the field is already a MatrixField but is stored in a Field variable. This merely does the necessary type coercion.

    f

    A field which needs coercion to the MatrixField type.

    returns

    The converted field.

  17. implicit def fieldToScalarField(f: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.ScalarField

    Permalink

    Implicit conversion of a Field to a ScalarField.

    Implicit conversion of a Field to a ScalarField. Since Field is abstract, the only possible conversion is if the field is already a ScalarField but is stored in a Field variable. This merely does the necessary type coercion.

    f

    A field which needs coercion to the ScalarField type.

    returns

    The converted field.

  18. implicit def fieldToVectorField(f: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.VectorField

    Permalink

    Implicit conversion of a Field to a VectorField.

    Implicit conversion of a Field to a VectorField. Field is abstract, so this method will perform the appropriate type coercion if the field is already a VectorField but stored in a Field variable. This method also supports converting a ColorField to a VectorField.

    f

    A field which needs coercion to the VectorField type.

    returns

    The converted field.

  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. implicit def floatToCogFloat(f: Float): CogFloat

    Permalink

    Implicit conversion of a Float to a CogFloat which allows for fields to be combined with floating point numbers in a simple way.

    Implicit conversion of a Float to a CogFloat which allows for fields to be combined with floating point numbers in a simple way. This makes it possible to express commutative operations with a common syntax.

    For example

    Field + Float

    and

    Float + Field

    are both legal and compilable with this implicit conversion.

    f

    The Float to be converted to a CogFloat

    returns

    The CogFloat created from f.

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

    Permalink
    Definition Classes
    AnyRef → Any
  22. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  29. implicit def vectorTo0DVectorField(v: cogmath.algebra.real.Vector): compiler.parser.syntaxtree.VectorField

    Permalink

    Implicit conversion of a Vector to a 0D constant VectorField which allows for fields to be combined with vectors in a simple way.

    Implicit conversion of a Vector to a 0D constant VectorField which allows for fields to be combined with vectors in a simple way. This makes it possible to express commutative operations with a common syntax.

    For example

    Field + Vector

    and

    Vector + Field

    are both legal and compilable with this implicit conversion.

    v

    The vector to be converted to a 0D vector field.

    returns

    A 0D vector field initialized to v.

  30. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped