Class IndexedQuadraticFaceArrayCPtr


  • public class IndexedQuadraticFaceArrayCPtr
    extends java.lang.Object
    Ptr stores a pointer and optionally takes ownership of the value.
    • Constructor Detail

      • IndexedQuadraticFaceArrayCPtr

        public IndexedQuadraticFaceArrayCPtr​(long cPtr,
                                             boolean cMemoryOwn)
      • IndexedQuadraticFaceArrayCPtr

        public IndexedQuadraticFaceArrayCPtr()
        Default constructor yielding a NULL-pointer.
      • IndexedQuadraticFaceArrayCPtr

        public IndexedQuadraticFaceArrayCPtr​(IndexedQuadraticFaceArray ptr)
        Do not take ownership of ptr.

        ptr can be null.

        The constructor is implicit on purpose.
    • Method Detail

      • delete

        public void delete()
      • isShared

        public boolean isShared()
        check if this Ptr has shared ownership or none
        ownership
        Returns:
        true if Ptr has shared ownership, false if it has no ownership.
      • isNull

        public boolean isNull()
        checks if the pointer is null
        Returns:
        Returns true if the pointer is null
      • size

        public long size()
      • getFace

        public void getFace​(long idx,
                            QuadraticFace dst)
        &) const
      • getIndexedFace

        public void getIndexedFace​(long idx,
                                   IndexedQuadraticFaceArray.QuadIndexedFace dst)
        Get the indexed face.
        Parameters:
        idx - [in] index of indexed face.
        dst - [out] existing object to copy data into.
      • getSubRange

        public IndexedQuadraticFaceArray getSubRange​(long first,
                                                     long last)
        Take out a subrange of faces.
        Parameters:
        first - [in] first index.
        last - [in] last index.
        Returns:
        a new indexed face array.
      • getGlobalIndex

        public long getGlobalIndex​(long idx)
        Get the original face index.
        Parameters:
        idx - [in] the indexed face index.
        Returns:
        the original index.