Class Bitset_cxx_0x2967d1e0

    • Nested Class Summary

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()
      Clear this bitset.
      void copy​(Bitset other)  
      long count()
      The number of bits set to true.
      void delete()  
      boolean empty()
      Check empty.
      boolean equals​(Object o)  
      long get_word​(long i)
      Get the underlying representation word at index i.
      @com.alibaba.fastffi.FFINameAlias("get_bit") boolean getBit​(long i)
      Get the flag at index i.
      int hashCode()  
      void init​(long size)
      Init the bitset with a initial size.
      static void nativeClear​(long ptr)  
      static void nativeCopy​(long ptr, long other0)  
      static long nativeCount​(long ptr)  
      static long nativeCreateFactory0()  
      static void nativeDelete​(long ptr)  
      static boolean nativeEmpty​(long ptr)  
      static long nativeGet_word​(long ptr, long i0)  
      static @com.alibaba.fastffi.FFINameAlias("get_bit") boolean nativeGetBit​(long ptr, long i0)  
      static void nativeInit​(long ptr, long size0)  
      static long nativePartial_count​(long ptr, long begin0, long end1)  
      static @com.alibaba.fastffi.FFINameAlias("partial_empty") boolean nativePartialEmpty​(long ptr, long begin0, long end1)  
      static void nativeResetBit​(long ptr, long i0)  
      static @com.alibaba.fastffi.FFINameAlias("reset_bit_with_ret") boolean nativeResetBitWithRet​(long ptr, long i0)  
      static void nativeSetBit​(long ptr, long i0)  
      static @com.alibaba.fastffi.FFINameAlias("set_bit_with_ret") boolean nativeSetBitWithRet​(long ptr, long i0)  
      static void nativeSwap​(long ptr, long other0)  
      long partial_count​(long begin, long end)
      The number of bits set to true, in a specified range
      @com.alibaba.fastffi.FFINameAlias("partial_empty") boolean partialEmpty​(long begin, long end)
      Check empty or not in parallel.
      void resetBit​(long i)
      Reset bit at index i.
      @com.alibaba.fastffi.FFINameAlias("reset_bit_with_ret") boolean resetBitWithRet​(long i)
      Reset with return value.
      void setBit​(long i)
      Set the flag for index i to true
      @com.alibaba.fastffi.FFINameAlias("set_bit_with_ret") boolean setBitWithRet​(long i)
      Set the bit at index i with returned result.
      void swap​(Bitset other)
      Swap the underlying storage with another BitSet
      String toString()  
      • Methods inherited from interface com.alibaba.fastffi.FFIPointer

        getAddress
    • Field Detail

      • SIZE

        public static final int SIZE
      • HASH_SHIFT

        public static final int HASH_SHIFT
    • Constructor Detail

      • Bitset_cxx_0x2967d1e0

        public Bitset_cxx_0x2967d1e0​(long address)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • clear

        public void clear()
        Description copied from interface: Bitset
        Clear this bitset.
        Specified by:
        clear in interface Bitset
      • nativeClear

        public static void nativeClear​(long ptr)
      • copy

        public void copy​(Bitset other)
        Specified by:
        copy in interface Bitset
      • nativeCopy

        public static void nativeCopy​(long ptr,
                                      long other0)
      • count

        public long count()
        Description copied from interface: Bitset
        The number of bits set to true.
        Specified by:
        count in interface Bitset
        Returns:
        the number of trues.
      • nativeCount

        public static long nativeCount​(long ptr)
      • delete

        public void delete()
        Specified by:
        delete in interface com.alibaba.fastffi.CXXPointer
      • nativeDelete

        public static void nativeDelete​(long ptr)
      • empty

        public boolean empty()
        Description copied from interface: Bitset
        Check empty.
        Specified by:
        empty in interface Bitset
        Returns:
        true if empty.
      • nativeEmpty

        public static boolean nativeEmpty​(long ptr)
      • getBit

        public @com.alibaba.fastffi.FFINameAlias("get_bit") boolean getBit​(long i)
        Description copied from interface: Bitset
        Get the flag at index i.
        Specified by:
        getBit in interface Bitset
        Parameters:
        i - index
        Returns:
        true if index i has been set to true.
      • nativeGetBit

        public static @com.alibaba.fastffi.FFINameAlias("get_bit") boolean nativeGetBit​(long ptr,
                                                                                        long i0)
      • get_word

        public long get_word​(long i)
        Description copied from interface: Bitset
        Get the underlying representation word at index i.
        Specified by:
        get_word in interface Bitset
        Parameters:
        i - index
        Returns:
        64-bit long
      • nativeGet_word

        public static long nativeGet_word​(long ptr,
                                          long i0)
      • init

        public void init​(long size)
        Description copied from interface: Bitset
        Init the bitset with a initial size.
        Specified by:
        init in interface Bitset
        Parameters:
        size - initial size.
      • nativeInit

        public static void nativeInit​(long ptr,
                                      long size0)
      • partialEmpty

        public @com.alibaba.fastffi.FFINameAlias("partial_empty") boolean partialEmpty​(long begin,
                                                                                       long end)
        Description copied from interface: Bitset
        Check empty or not in parallel.
        Specified by:
        partialEmpty in interface Bitset
        Parameters:
        begin - starting index.
        end - ending index.
        Returns:
        true if empty.
      • nativePartialEmpty

        public static @com.alibaba.fastffi.FFINameAlias("partial_empty") boolean nativePartialEmpty​(long ptr,
                                                                                                    long begin0,
                                                                                                    long end1)
      • partial_count

        public long partial_count​(long begin,
                                  long end)
        Description copied from interface: Bitset
        The number of bits set to true, in a specified range
        Specified by:
        partial_count in interface Bitset
        Parameters:
        begin - begin index.
        end - end index.
        Returns:
        the count value.
      • nativePartial_count

        public static long nativePartial_count​(long ptr,
                                               long begin0,
                                               long end1)
      • resetBit

        public void resetBit​(long i)
        Description copied from interface: Bitset
        Reset bit at index i.
        Specified by:
        resetBit in interface Bitset
        Parameters:
        i - index.
      • nativeResetBit

        public static void nativeResetBit​(long ptr,
                                          long i0)
      • resetBitWithRet

        public @com.alibaba.fastffi.FFINameAlias("reset_bit_with_ret") boolean resetBitWithRet​(long i)
        Description copied from interface: Bitset
        Reset with return value.
        Specified by:
        resetBitWithRet in interface Bitset
        Parameters:
        i - index
        Returns:
        return value.
      • nativeResetBitWithRet

        public static @com.alibaba.fastffi.FFINameAlias("reset_bit_with_ret") boolean nativeResetBitWithRet​(long ptr,
                                                                                                            long i0)
      • setBit

        public void setBit​(long i)
        Description copied from interface: Bitset
        Set the flag for index i to true
        Specified by:
        setBit in interface Bitset
        Parameters:
        i - index
      • nativeSetBit

        public static void nativeSetBit​(long ptr,
                                        long i0)
      • setBitWithRet

        public @com.alibaba.fastffi.FFINameAlias("set_bit_with_ret") boolean setBitWithRet​(long i)
        Description copied from interface: Bitset
        Set the bit at index i with returned result.
        Specified by:
        setBitWithRet in interface Bitset
        Parameters:
        i - index
        Returns:
        result
      • nativeSetBitWithRet

        public static @com.alibaba.fastffi.FFINameAlias("set_bit_with_ret") boolean nativeSetBitWithRet​(long ptr,
                                                                                                        long i0)
      • swap

        public void swap​(Bitset other)
        Description copied from interface: Bitset
        Swap the underlying storage with another BitSet
        Specified by:
        swap in interface Bitset
        Parameters:
        other - the other bitset.
      • nativeSwap

        public static void nativeSwap​(long ptr,
                                      long other0)
      • nativeCreateFactory0

        public static long nativeCreateFactory0()