org.omp4j.directive

For

case class For(parent: Directive, privateVars: List[String], firstPrivateVars: List[String])(implicit threadNum: String, ctx: StatementContext, cmt: Token, line: Int, conf: Config) extends Directive with ForCycle with Product with Serializable

For

Linear Supertypes
Serializable, Serializable, Product, Equals, ForCycle, Directive, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. For
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. ForCycle
  7. Directive
  8. AnyRef
  9. Any
Implicitly
  1. by any2stringadd
  2. by any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new For(parent: Directive, privateVars: List[String], firstPrivateVars: List[String])(implicit threadNum: String, ctx: StatementContext, cmt: Token, line: Int, conf: Config)

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. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from For to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (For, B)

    Implicit information
    This member is added by an implicit conversion from For to ArrowAssoc[For] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  8. def addAtomicBool(baseName: String): String

    Transitive registration of an atomic boolean variable.

    Transitive registration of an atomic boolean variable.

    This method should be overridden with LockMemory trait in directives that support singles.

    baseName

    the first string that is tried

    returns

    the actual variable name

    Definition Classes
    Directive
  9. var additionalItems: Set[String]

    Storage for some additional elements

    Storage for some additional elements

    Attributes
    protected
    Definition Classes
    Directive
  10. def allChildren: List[Directive]

    Transitive closure

    Transitive closure

    Definition Classes
    Directive
  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. var captured: Set[OMPVariable]

    The captured variables, initialed later

    The captured variables, initialed later

    Definition Classes
    Directive
  13. var capturedThis: Boolean

    Is 'this' captured?

    Is 'this' captured?

    Definition Classes
    Directive
  14. def children: List[Directive]

    Directly nested directives

    Directly nested directives

    Definition Classes
    Directive
  15. def childrenOfType[T <: Directive](implicit arg0: ClassTag[T]): List[T]

    Extract children of type T and return them as list of T

    Extract children of type T and return them as list of T

    Definition Classes
    Directive
  16. def classDeclar(implicit captured: Set[OMPVariable], capturedThis: Boolean, directiveClass: OMPClass): String

    Class declaration

    Class declaration

    Attributes
    protected
    Definition Classes
    Directive
  17. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. lazy val contextClass: String

    Context class name

    Context class name

    Definition Classes
    Directive
  19. lazy val contextVar: String

    Context variable name

    Context variable name

    Definition Classes
    Directive
  20. def deleteCmt(implicit rewriter: TokenStreamRewriter): Unit

    Delete directive comment from source code

    Delete directive comment from source code

    Attributes
    protected
    Definition Classes
    Directive
  21. var directiveClass: OMPClass

    Current directive class, initialed later

    Current directive class, initialed later

    Definition Classes
    Directive
  22. def ensuring(cond: (For) ⇒ Boolean, msg: ⇒ Any): For

    Implicit information
    This member is added by an implicit conversion from For to Ensuring[For] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  23. def ensuring(cond: (For) ⇒ Boolean): For

    Implicit information
    This member is added by an implicit conversion from For to Ensuring[For] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  24. def ensuring(cond: Boolean, msg: ⇒ Any): For

    Implicit information
    This member is added by an implicit conversion from For to Ensuring[For] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  25. def ensuring(cond: Boolean): For

    Implicit information
    This member is added by an implicit conversion from For to Ensuring[For] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  26. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  27. lazy val exceptionName: String

    Definition Classes
    ForDirective
  28. lazy val executor: String

    Definition Classes
    ForDirective
  29. def executorBegin(implicit captured: Set[OMPVariable]): String

    First part of executor

    First part of executor

    Attributes
    protected
    Definition Classes
    Directive
  30. val executorClass: String

    Runtime executor class.

    Runtime executor class.

    Definition Classes
    ForDirective
  31. def executorEnd: String

    Closing task and executor

    Closing task and executor

    Attributes
    protected
    Definition Classes
    Directive
  32. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  33. val firstPrivateVars: List[String]

    Definition Classes
    ForDirective
  34. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from For to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  35. def getBasicForStatement(ctx: StatementContext): BasicForStatementContext

    Extract basicForStatement or throw ParseException giving the reason of failure

    Extract basicForStatement or throw ParseException giving the reason of failure

    ctx

    statement

    returns

    basicForStatement

    Definition Classes
    ForCycle
    Exceptions thrown
    ParseException

    if basicForStatement couldn't be extracted

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

    Definition Classes
    AnyRef → Any
  37. def getInit(basicForStatement: BasicForStatementContext)(implicit rewriter: TokenStreamRewriter): (String, ExpressionContext)

    Extract init.

    Extract init. part of the for-loop

    basicForStatement

    basicForStatement

    rewriter

    ANTLR rewriter

    returns

    tuple of iterator name and for-loop init. context

    Definition Classes
    ForCycle
    Exceptions thrown
    ParseException

    if init. couldn't be extracted

  38. def getRewrittenText(ctx: SyntaxTree)(implicit rewriter: TokenStreamRewriter): String

    Wrapper of TokenStreamRewriter.

    Wrapper of TokenStreamRewriter.getText(SyntaxTree) until it is officially supported

    Attributes
    protected
    Definition Classes
    Directive
  39. def getUpdate(basicForStatement: BasicForStatementContext): StatementExpressionContext

    Extract update part of the for-loop

    Extract update part of the for-loop

    basicForStatement

    basicForStatement

    returns

    for-loop update context

    Definition Classes
    ForCycle
    Exceptions thrown
    ParseException

    if update context doesn't meet the requirements

  40. def init(implicit captured: Set[OMPVariable], capturedThis: Boolean): String

    Initialization of captured variables + THAT

    Initialization of captured variables + THAT

    Attributes
    protected
    Definition Classes
    Directive
  41. def initPrivates(implicit captured: Set[OMPVariable]): String

    Private and firstprivate initialization

    Private and firstprivate initialization

    Attributes
    protected
    Definition Classes
    Directive
  42. def instance: String

    Instance of context class

    Instance of context class

    Attributes
    protected
    Definition Classes
    Directive
  43. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  44. lazy val iter: String

    Definition Classes
    ForDirective
  45. lazy val iter2: String

    Definition Classes
    ForDirective
  46. lazy val iter3: String

    3.

    3. iterator name

    Definition Classes
    Directive
  47. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  50. val parent: Directive

    Definition Classes
    ForDirective
  51. val parentOmpParallel: Directive

    Closest omp-parallel directive above (in the hierarchy) or null if none exists

    Closest omp-parallel directive above (in the hierarchy) or null if none exists

    Definition Classes
    Directive
  52. def postTranslate(captured: Set[OMPVariable], capturedThis: Boolean, directiveClass: OMPClass)(implicit rewriter: TokenStreamRewriter): Unit

    Second phase of the translation.

    Second phase of the translation.

    This method must be overridden by all extending classes. The real parallel invocation is created in this method.

    captured

    captured variables

    capturedThis

    is 'this' captured?

    directiveClass

    class in the hierarchy model

    rewriter

    ANTLR rewriter

    Definition Classes
    ForDirective
  53. def preTranslate(implicit rewriter: TokenStreamRewriter, ompFile: OMPFile): (Set[OMPVariable], Boolean, OMPClass)

    The first phase of the translation.

    The first phase of the translation.

    Capture all used variables and prepend them with context variable name via TranslationVisitor

    rewriter

    ANTLR rewriter

    ompFile

    class hierarchy model

    returns

    tuple of captured variables, captured this and directive class

    Attributes
    protected
    Definition Classes
    Directive
  54. def primitiveAssignments(implicit captured: Set[OMPVariable]): String

    Assign primitive values

    Assign primitive values

    Attributes
    protected
    Definition Classes
    Directive
  55. val privateVars: List[String]

    Definition Classes
    ForDirective
  56. def registerChild(child: Directive): ListBuffer[Directive]

    Register child

    Register child

    Definition Classes
    Directive
  57. implicit val schedule: DirectiveSchedule

    Definition Classes
    Directive
  58. lazy val secondIter: Boolean

    Definition Classes
    ForDirective
  59. def secondIterInit: String

    Initialization of 2.

    Initialization of 2. iterator (if required)

    Attributes
    protected
    Definition Classes
    Directive
  60. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  61. def thatDecl(implicit capturedThis: Boolean, directiveClass: OMPClass): String

    Declaration of THAT (captured this)

    Declaration of THAT (captured this)

    Attributes
    protected
    Definition Classes
    Directive
  62. def thatInit(implicit capturedThis: Boolean): String

    THAT initialization

    THAT initialization

    Attributes
    protected
    Definition Classes
    Directive
  63. lazy val threadArr: String

    Definition Classes
    ForDirective
  64. lazy val threadCount: String

    Definition Classes
    ForDirective
  65. def toAppend(implicit captured: Set[OMPVariable]): String

    Code to be appended

    Code to be appended

    Attributes
    protected
    Definition Classes
    Directive
  66. def toPrepend(implicit captured: Set[OMPVariable], capturedThis: Boolean, directiveClass: OMPClass): String

    Code to be prepended

    Code to be prepended

    Attributes
    protected
    Definition Classes
    Directive
  67. def toString(): String

    Source code line and directive text

    Source code line and directive text

    Definition Classes
    Directive → AnyRef → Any
  68. def translate(implicit rewriter: TokenStreamRewriter, ompFile: OMPFile, directives: DirectiveMap): Unit

    Translate this directive and delete the directive comment

    Translate this directive and delete the directive comment

    Invoke validation, preTranslate and postTranslate, in this particular order. Additionally, delete the comment and translate all nested directives that don't create their own context.

    rewriter

    ANTLR rewriter

    ompFile

    class hierarchy model

    directives

    all known directives mapped by their context

    Definition Classes
    Directive
  69. def translateChildren(captured: Set[OMPVariable], capturedThis: Boolean, directiveClass: OMPClass)(implicit rewriter: TokenStreamRewriter): Unit

    Translate directives of type Master, Single

    Translate directives of type Master, Single

    captured

    captured variables

    capturedThis

    is 'this' captured?

    directiveClass

    class in the hierarchy model

    rewriter

    ANTLR rewriter

    Attributes
    protected
    Definition Classes
    ForDirective
  70. def translateFor(iter2: String, threadCount: String)(implicit ctx: StatementContext, rewriter: TokenStreamRewriter): Unit

    Translate the for-loop.

    Translate the for-loop.

    Make for-loop run in parallel given the number of threads.

    iter2

    thread-iterator variable name

    threadCount

    number of threads

    ctx

    ANTLR context

    rewriter

    ANTLR rewriter

    Definition Classes
    ForCycle
    Exceptions thrown
    ParseException

    if an error occurs

  71. def uniqueName(baseName: String): String

    Generate an unique name (different from every token used and every loadable class)

    Generate an unique name (different from every token used and every loadable class)

    baseName

    this string is tried at firsl

    returns

    new unique token, that is now registred

    Definition Classes
    Directive
  72. def validate(directives: DirectiveMap): Unit

    Directive validation.

    Directive validation.

    For valid directives returns nothing, for invalid ones throws an exception.

    directives

    all directives mapped by context

    Definition Classes
    Directive
    Exceptions thrown
    SyntaxErrorException

    if validation fails

  73. def validateBasicForStatement(basicForStatement: BasicForStatementContext): Unit

    Check whether the statement is break/continue-free

    Check whether the statement is break/continue-free

    basicForStatement

    basicForStatement

    Definition Classes
    ForCycle
    Exceptions thrown
    ParseException

    if break or continue is presented

  74. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  77. def wrap(rewriter: TokenStreamRewriter)(implicit captured: Set[OMPVariable], capturedThis: Boolean, directiveClass: OMPClass): Unit

    Modify code according to toPrepend and toAppend

    Modify code according to toPrepend and toAppend

    Definition Classes
    Directive
  78. def [B](y: B): (For, B)

    Implicit information
    This member is added by an implicit conversion from For to ArrowAssoc[For] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from For to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (for: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from For to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (for: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: For

    Implicit information
    This member is added by an implicit conversion from For to ArrowAssoc[For] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (for: ArrowAssoc[For]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: For

    Implicit information
    This member is added by an implicit conversion from For to Ensuring[For] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (for: Ensuring[For]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ForCycle

Inherited from Directive

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from For to StringAdd

Inherited by implicit conversion any2stringfmt from For to StringFormat

Inherited by implicit conversion any2ArrowAssoc from For to ArrowAssoc[For]

Inherited by implicit conversion any2Ensuring from For to Ensuring[For]

Ungrouped