Class ULongBufferIndexer

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class ULongBufferIndexer
    extends ULongIndexer
    An indexer for a LongBuffer, treated as unsigned.
    • Constructor Summary

      Constructors 
      Constructor Description
      ULongBufferIndexer​(java.nio.LongBuffer buffer)
      Calls ULongBufferIndexer(buffer, Index.create(buffer.limit())).
      ULongBufferIndexer​(java.nio.LongBuffer buffer, long... sizes)
      Calls ULongBufferIndexer(buffer, Index.create(sizes)).
      ULongBufferIndexer​(java.nio.LongBuffer buffer, long[] sizes, long[] strides)
      Calls ULongBufferIndexer(buffer, Index.create(sizes, strides)).
      ULongBufferIndexer​(java.nio.LongBuffer buffer, Index index)
      Constructor to set the buffer and Indexer.index.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.nio.Buffer buffer()
      Returns the backing buffer, or null if none
      java.math.BigInteger get​(long i)
      Returns array/buffer[index(i)]
      java.math.BigInteger get​(long... indices)
      Returns array/buffer[index(indices)]
      ULongIndexer get​(long[] indices, java.math.BigInteger[] l, int offset, int length)
      Returns this where l[offset:offset + length] = array/buffer[index(indices)]
      java.math.BigInteger get​(long i, long j)
      Returns array/buffer[index(i, j)]
      java.math.BigInteger get​(long i, long j, long k)
      Returns array/buffer[index(i, j, k)]
      ULongIndexer get​(long i, long j, java.math.BigInteger[] l, int offset, int length)
      Returns this where l[offset:offset + length] = array/buffer[index(i, j)]
      ULongIndexer get​(long i, java.math.BigInteger[] l, int offset, int length)
      Returns this where l[offset:offset + length] = array/buffer[index(i)]
      ULongIndexer put​(long[] indices, java.math.BigInteger l)
      Returns this where array/buffer[index(indices)] = l
      ULongIndexer put​(long[] indices, java.math.BigInteger[] l, int offset, int length)
      Returns this where array/buffer[index(indices)] = l[offset:offset + length]
      ULongIndexer put​(long i, long j, long k, java.math.BigInteger l)
      Returns this where array/buffer[index(i, j, k)] = l
      ULongIndexer put​(long i, long j, java.math.BigInteger l)
      Returns this where array/buffer[index(i, j)] = l
      ULongIndexer put​(long i, long j, java.math.BigInteger[] l, int offset, int length)
      Returns this where array/buffer[index(i, j)] = l[offset:offset + length]
      ULongIndexer put​(long i, java.math.BigInteger l)
      Returns this where array/buffer[index(i)] = l
      ULongIndexer put​(long i, java.math.BigInteger[] l, int offset, int length)
      Returns this where array/buffer[index(i)] = l[offset:offset + length]
      ULongIndexer reindex​(Index index)
      Returns a new Indexer using the same data, but with a different Index.
      void release()
      Makes sure changes are reflected onto the backing memory and clears any references.
      • Methods inherited from class java.lang.Object

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

      • buffer

        protected java.nio.LongBuffer buffer
        The backing buffer.
    • Constructor Detail

      • ULongBufferIndexer

        public ULongBufferIndexer​(java.nio.LongBuffer buffer)
        Calls ULongBufferIndexer(buffer, Index.create(buffer.limit())).
      • ULongBufferIndexer

        public ULongBufferIndexer​(java.nio.LongBuffer buffer,
                                  long... sizes)
        Calls ULongBufferIndexer(buffer, Index.create(sizes)).
      • ULongBufferIndexer

        public ULongBufferIndexer​(java.nio.LongBuffer buffer,
                                  long[] sizes,
                                  long[] strides)
        Calls ULongBufferIndexer(buffer, Index.create(sizes, strides)).
      • ULongBufferIndexer

        public ULongBufferIndexer​(java.nio.LongBuffer buffer,
                                  Index index)
        Constructor to set the buffer and Indexer.index.
    • Method Detail

      • buffer

        public java.nio.Buffer buffer()
        Description copied from class: Indexer
        Returns the backing buffer, or null if none
        Overrides:
        buffer in class Indexer
      • reindex

        public ULongIndexer reindex​(Index index)
        Description copied from class: Indexer
        Returns a new Indexer using the same data, but with a different Index.
        Specified by:
        reindex in class Indexer
      • get

        public java.math.BigInteger get​(long i)
        Description copied from class: ULongIndexer
        Returns array/buffer[index(i)]
        Specified by:
        get in class ULongIndexer
      • get

        public ULongIndexer get​(long i,
                                java.math.BigInteger[] l,
                                int offset,
                                int length)
        Description copied from class: ULongIndexer
        Returns this where l[offset:offset + length] = array/buffer[index(i)]
        Specified by:
        get in class ULongIndexer
      • get

        public java.math.BigInteger get​(long i,
                                        long j)
        Description copied from class: ULongIndexer
        Returns array/buffer[index(i, j)]
        Specified by:
        get in class ULongIndexer
      • get

        public ULongIndexer get​(long i,
                                long j,
                                java.math.BigInteger[] l,
                                int offset,
                                int length)
        Description copied from class: ULongIndexer
        Returns this where l[offset:offset + length] = array/buffer[index(i, j)]
        Specified by:
        get in class ULongIndexer
      • get

        public java.math.BigInteger get​(long i,
                                        long j,
                                        long k)
        Description copied from class: ULongIndexer
        Returns array/buffer[index(i, j, k)]
        Specified by:
        get in class ULongIndexer
      • get

        public java.math.BigInteger get​(long... indices)
        Description copied from class: ULongIndexer
        Returns array/buffer[index(indices)]
        Specified by:
        get in class ULongIndexer
      • get

        public ULongIndexer get​(long[] indices,
                                java.math.BigInteger[] l,
                                int offset,
                                int length)
        Description copied from class: ULongIndexer
        Returns this where l[offset:offset + length] = array/buffer[index(indices)]
        Specified by:
        get in class ULongIndexer
      • put

        public ULongIndexer put​(long i,
                                java.math.BigInteger l)
        Description copied from class: ULongIndexer
        Returns this where array/buffer[index(i)] = l
        Specified by:
        put in class ULongIndexer
      • put

        public ULongIndexer put​(long i,
                                java.math.BigInteger[] l,
                                int offset,
                                int length)
        Description copied from class: ULongIndexer
        Returns this where array/buffer[index(i)] = l[offset:offset + length]
        Specified by:
        put in class ULongIndexer
      • put

        public ULongIndexer put​(long i,
                                long j,
                                java.math.BigInteger l)
        Description copied from class: ULongIndexer
        Returns this where array/buffer[index(i, j)] = l
        Specified by:
        put in class ULongIndexer
      • put

        public ULongIndexer put​(long i,
                                long j,
                                java.math.BigInteger[] l,
                                int offset,
                                int length)
        Description copied from class: ULongIndexer
        Returns this where array/buffer[index(i, j)] = l[offset:offset + length]
        Specified by:
        put in class ULongIndexer
      • put

        public ULongIndexer put​(long i,
                                long j,
                                long k,
                                java.math.BigInteger l)
        Description copied from class: ULongIndexer
        Returns this where array/buffer[index(i, j, k)] = l
        Specified by:
        put in class ULongIndexer
      • put

        public ULongIndexer put​(long[] indices,
                                java.math.BigInteger l)
        Description copied from class: ULongIndexer
        Returns this where array/buffer[index(indices)] = l
        Specified by:
        put in class ULongIndexer
      • put

        public ULongIndexer put​(long[] indices,
                                java.math.BigInteger[] l,
                                int offset,
                                int length)
        Description copied from class: ULongIndexer
        Returns this where array/buffer[index(indices)] = l[offset:offset + length]
        Specified by:
        put in class ULongIndexer
      • release

        public void release()
        Description copied from class: Indexer
        Makes sure changes are reflected onto the backing memory and clears any references.
        Specified by:
        release in class Indexer