Class BooleanRawIndexer

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class BooleanRawIndexer
    extends BooleanIndexer
    An indexer for a BooleanPointer using the Raw instance.
    • Field Detail

      • RAW

        protected static final Raw RAW
        The instance for the raw memory interface.
      • base

        final long base
        Base address and number of elements accessible.
      • size

        final long size
        Base address and number of elements accessible.
    • Constructor Detail

      • BooleanRawIndexer

        public BooleanRawIndexer​(BooleanPointer pointer)
        Calls BooleanRawIndexer(pointer, Index.create(pointer.limit() - pointer.position())).
      • BooleanRawIndexer

        public BooleanRawIndexer​(BooleanPointer pointer,
                                 long... sizes)
        Calls BooleanRawIndexer(pointer, Index.create(sizes)).
      • BooleanRawIndexer

        public BooleanRawIndexer​(BooleanPointer pointer,
                                 long[] sizes,
                                 long[] strides)
        Calls BooleanRawIndexer(pointer, Index.create(sizes, strides)).
    • Method Detail

      • pointer

        public Pointer pointer()
        Description copied from class: Indexer
        Returns the backing pointer, or null if none
        Overrides:
        pointer in class Indexer
      • reindex

        public BooleanIndexer 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
      • getRaw

        public boolean getRaw​(long i)
      • get

        public boolean get​(long i)
        Description copied from class: BooleanIndexer
        Returns array/buffer[index(i)]
        Specified by:
        get in class BooleanIndexer
      • get

        public BooleanIndexer get​(long i,
                                  boolean[] b,
                                  int offset,
                                  int length)
        Description copied from class: BooleanIndexer
        Returns this where b[offset:offset + length] = array/buffer[index(i)]
        Specified by:
        get in class BooleanIndexer
      • get

        public boolean get​(long i,
                           long j)
        Description copied from class: BooleanIndexer
        Returns array/buffer[index(i, j)]
        Specified by:
        get in class BooleanIndexer
      • get

        public BooleanIndexer get​(long i,
                                  long j,
                                  boolean[] b,
                                  int offset,
                                  int length)
        Description copied from class: BooleanIndexer
        Returns this where b[offset:offset + length] = array/buffer[index(i, j)]
        Specified by:
        get in class BooleanIndexer
      • get

        public boolean get​(long i,
                           long j,
                           long k)
        Description copied from class: BooleanIndexer
        Returns array/buffer[index(i, j, k)]
        Specified by:
        get in class BooleanIndexer
      • get

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

        public BooleanIndexer get​(long[] indices,
                                  boolean[] b,
                                  int offset,
                                  int length)
        Description copied from class: BooleanIndexer
        Returns this where b[offset:offset + length] = array/buffer[index(indices)]
        Specified by:
        get in class BooleanIndexer
      • put

        public BooleanIndexer put​(long i,
                                  boolean[] b,
                                  int offset,
                                  int length)
        Description copied from class: BooleanIndexer
        Returns this where array/buffer[index(i)] = b[offset:offset + length]
        Specified by:
        put in class BooleanIndexer
      • put

        public BooleanIndexer put​(long i,
                                  long j,
                                  boolean[] b,
                                  int offset,
                                  int length)
        Description copied from class: BooleanIndexer
        Returns this where array/buffer[index(i, j)] = b[offset:offset + length]
        Specified by:
        put in class BooleanIndexer
      • put

        public BooleanIndexer put​(long[] indices,
                                  boolean[] b,
                                  int offset,
                                  int length)
        Description copied from class: BooleanIndexer
        Returns this where array/buffer[index(indices)] = b[offset:offset + length]
        Specified by:
        put in class BooleanIndexer
      • 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