Class UIntIndexer

java.lang.Object
org.bytedeco.javacpp.indexer.Indexer
org.bytedeco.javacpp.indexer.UIntIndexer
All Implemented Interfaces:
AutoCloseable
Direct Known Subclasses:
UIntArrayIndexer, UIntBufferIndexer, UIntRawIndexer

public abstract class UIntIndexer extends Indexer
Abstract indexer for the int primitive type, treated as unsigned.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The number of bytes used to represent an int.

    Fields inherited from class org.bytedeco.javacpp.indexer.Indexer

    index, indexable, sizes, strides
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    UIntIndexer(long[] sizes, long[] strides)
     
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    create(int[] array)
    Returns new UIntArrayIndexer(array)
    create(int[] array, long... sizes)
    Returns new UIntArrayIndexer(array, sizes)
    create(int[] array, long[] sizes, long[] strides)
    Returns new UIntArrayIndexer(array, sizes, strides)
    create(int[] array, Index index)
    Returns new UIntArrayIndexer(array, index)
    create(IntBuffer buffer)
    Returns new UIntBufferIndexer(buffer)
    create(IntBuffer buffer, long... sizes)
    Returns new UIntBufferIndexer(buffer, sizes)
    create(IntBuffer buffer, long[] sizes, long[] strides)
    Returns new UIntBufferIndexer(buffer, sizes, strides)
    create(IntBuffer buffer, Index index)
    Returns new UIntBufferIndexer(buffer, index)
    create(IntPointer pointer)
    Returns new UIntRawIndexer(pointer)
    create(IntPointer pointer, long... sizes)
    Returns new UIntRawIndexer(pointer, sizes)
    create(IntPointer pointer, long[] sizes, long[] strides)
    Returns new UIntRawIndexer(pointer, sizes, strides)
    create(IntPointer pointer, long[] sizes, long[] strides, boolean direct)
    Returns create(pointer, Index.create(sizes, strides), direct)
    create(IntPointer pointer, Index index)
    Returns new UIntRawIndexer(pointer, index)
    create(IntPointer pointer, Index index, boolean direct)
    Creates a int indexer to access efficiently the data of a pointer.
    abstract long
    get(long i)
    Returns array/buffer[index(i)]
    abstract long
    get(long... indices)
    Returns array/buffer[index(indices)]
    get(long[] indices, long[] n)
    Returns this where n = array/buffer[index(indices)]
    abstract UIntIndexer
    get(long[] indices, long[] n, int offset, int length)
    Returns this where n[offset:offset + length] = array/buffer[index(indices)]
    abstract long
    get(long i, long j)
    Returns array/buffer[index(i, j)]
    get(long i, long[] n)
    Returns this where n = array/buffer[index(i)]
    abstract UIntIndexer
    get(long i, long[] n, int offset, int length)
    Returns this where n[offset:offset + length] = array/buffer[index(i)]
    abstract long
    get(long i, long j, long k)
    Returns array/buffer[index(i, j, k)]
    get(long i, long j, long[] n)
    Returns this where n = array/buffer[index(i, j)]
    abstract UIntIndexer
    get(long i, long j, long[] n, int offset, int length)
    Returns this where n[offset:offset + length] = array/buffer[index(i, j)]
    double
    getDouble(long... indices)
    Calls get(int...indices) and returns the value as a double.
    abstract UIntIndexer
    put(long[] indices, long n)
    Returns this where array/buffer[index(indices)] = n
    put(long[] indices, long... n)
    Returns this where array/buffer[index(indices)] = n
    abstract UIntIndexer
    put(long[] indices, long[] n, int offset, int length)
    Returns this where array/buffer[index(indices)] = n[offset:offset + length]
    abstract UIntIndexer
    put(long i, long n)
    Returns this where array/buffer[index(i)] = n
    put(long i, long... n)
    Returns this where array/buffer[index(i)] = n
    abstract UIntIndexer
    put(long i, long[] n, int offset, int length)
    Returns this where array/buffer[index(i)] = n[offset:offset + length]
    abstract UIntIndexer
    put(long i, long j, long n)
    Returns this where array/buffer[index(i, j)] = n
    put(long i, long j, long... n)
    Returns this where array/buffer[index(i, j)] = n
    abstract UIntIndexer
    put(long i, long j, long[] n, int offset, int length)
    Returns this where array/buffer[index(i, j)] = n[offset:offset + length]
    abstract UIntIndexer
    put(long i, long j, long k, long n)
    Returns this where array/buffer[index(i, j, k)] = n
    putDouble(long[] indices, double n)
    Casts value to primitive type and calls put(long[] indices, <type> value).

    Methods inherited from class org.bytedeco.javacpp.indexer.Indexer

    array, buffer, channels, checkIndex, close, cols, height, index, index, index, index, indexable, indexable, pointer, rank, reindex, release, rows, size, sizes, stride, strides, strides, toString, width

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • VALUE_BYTES

      public static final int VALUE_BYTES
      The number of bytes used to represent an int.
      See Also:
  • Constructor Details

    • UIntIndexer

      protected UIntIndexer(Index index)
    • UIntIndexer

      protected UIntIndexer(long[] sizes, long[] strides)
  • Method Details

    • create

      public static UIntIndexer create(int[] array)
      Returns new UIntArrayIndexer(array)
    • create

      public static UIntIndexer create(IntBuffer buffer)
      Returns new UIntBufferIndexer(buffer)
    • create

      public static UIntIndexer create(IntPointer pointer)
      Returns new UIntRawIndexer(pointer)
    • create

      public static UIntIndexer create(int[] array, Index index)
      Returns new UIntArrayIndexer(array, index)
    • create

      public static UIntIndexer create(IntBuffer buffer, Index index)
      Returns new UIntBufferIndexer(buffer, index)
    • create

      public static UIntIndexer create(IntPointer pointer, Index index)
      Returns new UIntRawIndexer(pointer, index)
    • create

      public static UIntIndexer create(int[] array, long... sizes)
      Returns new UIntArrayIndexer(array, sizes)
    • create

      public static UIntIndexer create(IntBuffer buffer, long... sizes)
      Returns new UIntBufferIndexer(buffer, sizes)
    • create

      public static UIntIndexer create(IntPointer pointer, long... sizes)
      Returns new UIntRawIndexer(pointer, sizes)
    • create

      public static UIntIndexer create(int[] array, long[] sizes, long[] strides)
      Returns new UIntArrayIndexer(array, sizes, strides)
    • create

      public static UIntIndexer create(IntBuffer buffer, long[] sizes, long[] strides)
      Returns new UIntBufferIndexer(buffer, sizes, strides)
    • create

      public static UIntIndexer create(IntPointer pointer, long[] sizes, long[] strides)
      Returns new UIntRawIndexer(pointer, sizes, strides)
    • create

      public static UIntIndexer create(IntPointer pointer, long[] sizes, long[] strides, boolean direct)
      Returns create(pointer, Index.create(sizes, strides), direct)
    • create

      public static UIntIndexer create(IntPointer pointer, Index index, boolean direct)
      Creates a int indexer to access efficiently the data of a pointer.
      Parameters:
      pointer - data to access via a buffer or to copy to an array
      index - to use
      direct - true to use a direct buffer, see Indexer for details
      Returns:
      the new int indexer backed by the raw memory interface, a buffer, or an array
    • get

      public abstract long get(long i)
      Returns array/buffer[index(i)]
    • get

      public UIntIndexer get(long i, long[] n)
      Returns this where n = array/buffer[index(i)]
    • get

      public abstract UIntIndexer get(long i, long[] n, int offset, int length)
      Returns this where n[offset:offset + length] = array/buffer[index(i)]
    • get

      public abstract long get(long i, long j)
      Returns array/buffer[index(i, j)]
    • get

      public UIntIndexer get(long i, long j, long[] n)
      Returns this where n = array/buffer[index(i, j)]
    • get

      public abstract UIntIndexer get(long i, long j, long[] n, int offset, int length)
      Returns this where n[offset:offset + length] = array/buffer[index(i, j)]
    • get

      public abstract long get(long i, long j, long k)
      Returns array/buffer[index(i, j, k)]
    • get

      public abstract long get(long... indices)
      Returns array/buffer[index(indices)]
    • get

      public UIntIndexer get(long[] indices, long[] n)
      Returns this where n = array/buffer[index(indices)]
    • get

      public abstract UIntIndexer get(long[] indices, long[] n, int offset, int length)
      Returns this where n[offset:offset + length] = array/buffer[index(indices)]
    • put

      public abstract UIntIndexer put(long i, long n)
      Returns this where array/buffer[index(i)] = n
    • put

      public UIntIndexer put(long i, long... n)
      Returns this where array/buffer[index(i)] = n
    • put

      public abstract UIntIndexer put(long i, long[] n, int offset, int length)
      Returns this where array/buffer[index(i)] = n[offset:offset + length]
    • put

      public abstract UIntIndexer put(long i, long j, long n)
      Returns this where array/buffer[index(i, j)] = n
    • put

      public UIntIndexer put(long i, long j, long... n)
      Returns this where array/buffer[index(i, j)] = n
    • put

      public abstract UIntIndexer put(long i, long j, long[] n, int offset, int length)
      Returns this where array/buffer[index(i, j)] = n[offset:offset + length]
    • put

      public abstract UIntIndexer put(long i, long j, long k, long n)
      Returns this where array/buffer[index(i, j, k)] = n
    • put

      public abstract UIntIndexer put(long[] indices, long n)
      Returns this where array/buffer[index(indices)] = n
    • put

      public UIntIndexer put(long[] indices, long... n)
      Returns this where array/buffer[index(indices)] = n
    • put

      public abstract UIntIndexer put(long[] indices, long[] n, int offset, int length)
      Returns this where array/buffer[index(indices)] = n[offset:offset + length]
    • getDouble

      public double getDouble(long... indices)
      Description copied from class: Indexer
      Calls get(int...indices) and returns the value as a double.
      Specified by:
      getDouble in class Indexer
    • putDouble

      public UIntIndexer putDouble(long[] indices, double n)
      Description copied from class: Indexer
      Casts value to primitive type and calls put(long[] indices, <type> value).
      Specified by:
      putDouble in class Indexer