org.omp4j.directive

Barrier

case class Barrier(parent: Directive)(ctx: StatementContext, cmt: Token, line: Int, conf: Config) extends Directive with Product with Serializable

Barrier directive

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

    Implicit information
    This member is added by an implicit conversion from Barrier to ArrowAssoc[Barrier] 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. val barrierVar: String

  13. var captured: Set[OMPVariable]

    The captured variables, initialed later

    The captured variables, initialed later

    Definition Classes
    Directive
  14. var capturedThis: Boolean

    Is 'this' captured?

    Is 'this' captured?

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

    Directly nested directives

    Directly nested directives

    Definition Classes
    Directive
  16. 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
  17. def classDeclar(implicit captured: Set[OMPVariable], capturedThis: Boolean, directiveClass: OMPClass): String

    Class declaration

    Class declaration

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

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

    Definition Classes
    BarrierDirective
  20. lazy val contextVar: String

    Definition Classes
    BarrierDirective
  21. def deleteCmt(implicit rewriter: TokenStreamRewriter): Unit

    Delete directive comment from source code

    Delete directive comment from source code

    Attributes
    protected
    Definition Classes
    Directive
  22. var directiveClass: OMPClass

    Current directive class, initialed later

    Current directive class, initialed later

    Definition Classes
    Directive
  23. def ensuring(cond: (Barrier) ⇒ Boolean, msg: ⇒ Any): Barrier

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

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

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

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

    Definition Classes
    AnyRef
  28. lazy val exceptionName: String

    Definition Classes
    BarrierDirective
  29. lazy val executor: String

    Definition Classes
    BarrierDirective
  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
    Directive
  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 Barrier 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 init(implicit captured: Set[OMPVariable], capturedThis: Boolean): String

    Initialization of captured variables + THAT

    Initialization of captured variables + THAT

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

    Private and firstprivate initialization

    Private and firstprivate initialization

    Attributes
    protected
    Definition Classes
    Directive
  40. def instance: String

    Instance of context class

    Instance of context class

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

    Definition Classes
    Any
  42. lazy val iter: String

    Definition Classes
    BarrierDirective
  43. lazy val iter2: String

    Definition Classes
    BarrierDirective
  44. lazy val iter3: String

    3.

    3. iterator name

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

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

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

    Definition Classes
    AnyRef
  48. val parent: Directive

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

  51. 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
    BarrierDirective
  52. 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
    BarrierDirective
  53. def primitiveAssignments(implicit captured: Set[OMPVariable]): String

    Assign primitive values

    Assign primitive values

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

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

    Register child

    Register child

    Definition Classes
    Directive
  56. implicit val schedule: DirectiveSchedule

    Definition Classes
    Directive
  57. lazy val secondIter: Boolean

    Definition Classes
    BarrierDirective
  58. def secondIterInit: String

    Initialization of 2.

    Initialization of 2. iterator (if required)

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

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

    Declaration of THAT (captured this)

    Declaration of THAT (captured this)

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

    THAT initialization

    THAT initialization

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

    Definition Classes
    BarrierDirective
  63. lazy val threadCount: String

    Definition Classes
    BarrierDirective
  64. implicit val threadNum: String

    Definition Classes
    Directive
  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): 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
    BarrierDirective
  69. 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
  70. 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
  71. 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
    BarrierDirective
    Exceptions thrown
    SyntaxErrorException

    if validation fails

  72. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  75. 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
  76. def [B](y: B): (Barrier, B)

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

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

Deprecated Value Members

  1. def x: Barrier

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

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: Barrier

    Implicit information
    This member is added by an implicit conversion from Barrier to Ensuring[Barrier] 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:
    (barrier: Ensuring[Barrier]).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 Directive

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Barrier to StringAdd

Inherited by implicit conversion any2stringfmt from Barrier to StringFormat

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

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

Ungrouped