Class VolatileUnsignedLongType

    • Constructor Detail

      • VolatileUnsignedLongType

        public VolatileUnsignedLongType​(VolatileLongAccess access)
      • VolatileUnsignedLongType

        public VolatileUnsignedLongType​(long value)
      • VolatileUnsignedLongType

        public VolatileUnsignedLongType()
    • Method Detail

      • set

        public void set​(long value)
      • updateContainer

        public void updateContainer​(java.lang.Object c)
        Description copied from interface: NativeType
        This method is used by an accessor (e.g., a Cursor) to request an update of the current data array.

        As an example consider a CellCursor moving on a CellImg. The cursor maintains a NativeType which provides access to the image data. When the cursor moves from one cell to the next, the underlying data array of the NativeType must be switched to the data array of the new cell.

        To achieve this, the CellCursor calls updateContainer() with itself as the argument. updateContainer() in turn will call NativeImg.update(Object) on it's container, passing along the reference to the cursor. In this example, the container would be a CellImg. While the NativeType does not know about the type of the cursor, the container does. CellImg knows that it is passed a CellCursor instance, which can be used to figure out the current cell and the underlying data array, which is then returned to the NativeType.

        The idea behind this concept is maybe not obvious. The NativeType knows which basic type is used (float, int, byte, ...). However, it does not know how the data is stored (ArrayImg, CellImg, ...). This prevents the need for multiple implementations of NativeType .

        Parameters:
        c - reference to an accessor which can be passed on to the container (which will know what to do with it).
      • createVariable

        public VolatileUnsignedLongType createVariable()
        Description copied from interface: Type
        Creates a new Type variable which can only store one value.
        Returns:
        a new Type variable