Class OneIndex


  • public class OneIndex
    extends Index
    An Index that supports only one size (a single dimension).
    • Field Summary

      • Fields inherited from class org.bytedeco.javacpp.indexer.Index

        sizes
    • Constructor Summary

      Constructors 
      Constructor Description
      OneIndex​(long size)
      Constructor to set the Index.sizes.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long index​(long i)
      Returns i.
      long index​(long... indices)
      Returns indices[0] if indices.length == 1 or throws new UnsupportedOperationException().
      long index​(long i, long j)
      Throws new UnsupportedOperationException().
      long index​(long i, long j, long k)
      Throws new UnsupportedOperationException().
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OneIndex

        public OneIndex​(long size)
        Constructor to set the Index.sizes.
    • Method Detail

      • index

        public long index​(long i)
        Returns i.
        Overrides:
        index in class Index
      • index

        public long index​(long i,
                          long j)
        Throws new UnsupportedOperationException().
        Overrides:
        index in class Index
      • index

        public long index​(long i,
                          long j,
                          long k)
        Throws new UnsupportedOperationException().
        Overrides:
        index in class Index
      • index

        public long index​(long... indices)
        Returns indices[0] if indices.length == 1 or throws new UnsupportedOperationException().
        Specified by:
        index in class Index
        Parameters:
        indices - of each dimension
        Returns:
        index to access array or buffer