org.omp4j.directive

Single

class Single extends Directive

Single directive

Linear Supertypes
Directive, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Single
  2. Directive
  3. AnyRef
  4. 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 Single(parent: Directive)(implicit 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 Single to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (Single, B)

    Implicit information
    This member is added by an implicit conversion from Single to ArrowAssoc[Single] 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

    Definition Classes
    SingleDirective
  19. lazy val contextVar: String

    Definition Classes
    SingleDirective
  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: (Single) ⇒ Boolean, msg: ⇒ Any): Single

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

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

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

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

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

    Definition Classes
    AnyRef → Any
  28. lazy val exceptionName: String

    Definition Classes
    SingleDirective
  29. lazy val executor: String

    Definition Classes
    SingleDirective
  30. def executorBegin(implicit captured: Set[OMPVariable]): String

    First part of executor

    First part of executor

    Attributes
    protected
    Definition Classes
    Directive
  31. val executorClass: String

    Runtime executor class.

    Runtime executor class.

    Definition Classes
    SingleDirective
  32. def executorEnd: String

    Closing task and executor

    Closing task and executor

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

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

    Definition Classes
    Directive
  35. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from Single to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  36. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  37. 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
  38. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  39. def init(implicit captured: Set[OMPVariable], capturedThis: Boolean): String

    Initialization of captured variables + THAT

    Initialization of captured variables + THAT

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

    Private and firstprivate initialization

    Private and firstprivate initialization

    Attributes
    protected
    Definition Classes
    Directive
  41. def instance: String

    Instance of context class

    Instance of context class

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

    Definition Classes
    Any
  43. lazy val iter: String

    Definition Classes
    SingleDirective
  44. lazy val iter2: String

    Definition Classes
    SingleDirective
  45. lazy val iter3: String

    3.

    3. iterator name

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

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

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

    Definition Classes
    AnyRef
  49. val parent: Directive

    Definition Classes
    SingleDirective
  50. 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
  51. def postTranslate(implicit rewriter: TokenStreamRewriter): Unit

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

    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

    Attributes
    protected
    Definition Classes
    SingleDirective
  53. def preTranslate(implicit rewriter: TokenStreamRewriter, ompFile: OMPFile): Nothing

    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
    SingleDirective
  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
    Directive
  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
    SingleDirective
  59. def secondIterInit: String

    Initialization of 2.

    Initialization of 2. iterator (if required)

    Attributes
    protected
    Definition Classes
    Directive
  60. val singleLock: String

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

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

    Declaration of THAT (captured this)

    Declaration of THAT (captured this)

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

    THAT initialization

    THAT initialization

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

    Definition Classes
    SingleDirective
  65. lazy val threadCount: String

    Definition Classes
    SingleDirective
  66. implicit val threadNum: String

    Definition Classes
    Directive
  67. def toAppend(implicit captured: Set[OMPVariable]): String

    Code to be appended

    Code to be appended

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

    Code to be prepended

    Code to be prepended

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

    Source code line and directive text

    Source code line and directive text

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

    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
    SingleDirective
  71. def translateChildren(captured: Set[OMPVariable], capturedThis: Boolean, directiveClass: OMPClass)(implicit rewriter: TokenStreamRewriter): Unit

    Translate all children that don't have own context.

    Translate all children that don't have own context.

    captured

    captured variables

    capturedThis

    is 'this' captured?

    directiveClass

    class in the hierarchy model

    rewriter

    ANTLR rewriter

    Attributes
    protected
    Definition Classes
    Directive
  72. 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
  73. 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
    SingleDirective
    Exceptions thrown
    SyntaxErrorException

    if validation fails

  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): (Single, B)

    Implicit information
    This member is added by an implicit conversion from Single to ArrowAssoc[Single] 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 Single 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:
    (single: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from Single 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:
    (single: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: Single

    Implicit information
    This member is added by an implicit conversion from Single to ArrowAssoc[Single] 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:
    (single: ArrowAssoc[Single]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: Single

    Implicit information
    This member is added by an implicit conversion from Single to Ensuring[Single] 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:
    (single: Ensuring[Single]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from Directive

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Single to StringAdd

Inherited by implicit conversion any2stringfmt from Single to StringFormat

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

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

Ungrouped