.. default-domain:: chpl .. module:: Privatization Privatization ============= **Usage** .. code-block:: chapel use Privatization; .. record:: Privatized .. attribute:: type varType .. attribute:: var instance: unmanaged PrivatizedImpl(varType) .. attribute:: var pid: int .. method:: proc init(type varType) .. method:: proc destroy() .. method:: proc _value .. method:: proc readWriteThis(f) .. function:: proc =(x: Privatized(?eltType), y: eltType) .. function:: proc +(x: Privatized(?eltType), y: eltType) .. function:: proc -(x: Privatized(?eltType), y: eltType) .. function:: proc +=(x: Privatized(?eltType), y: eltType) .. function:: proc -=(x: Privatized(?eltType), y: eltType) .. function:: proc *(x: Privatized(?eltType), y: eltType) .. function:: proc *=(x: Privatized(?eltType), y: eltType) .. class:: PrivatizedArray .. attribute:: type varType .. attribute:: var dom = LocaleSpace dmapped Block(boundingBox = LocaleSpace) .. attribute:: var arr: [dom] varType .. class:: PrivatizedImpl .. attribute:: type varType .. attribute:: var pid: int .. attribute:: var privatizedArray: unmanaged PrivatizedArray(varType) .. attribute:: var broadcast = _newArray(privatizedArray.arr._value) .. method:: proc init(type varType) .. method:: proc init(type varType, other, privatizedData) .. method:: proc dsiPrivatize(privatizedData) .. method:: proc dsiGetPrivatizeData() .. method:: proc readWriteThis(f) .. method:: proc get(loc: locale = here) ref .. method:: proc get(locid: int) ref .. method:: proc deinit()