Class Algorithm

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected long nativeObj  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Algorithm​(long addr)  
    • Field Detail

      • nativeObj

        protected final long nativeObj
    • Constructor Detail

      • Algorithm

        protected Algorithm​(long addr)
    • Method Detail

      • getNativeObjAddr

        public long getNativeObjAddr()
      • __fromPtr__

        public static Algorithm __fromPtr__​(long addr)
      • getDefaultName

        public java.lang.String getDefaultName()
        Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
        Returns:
        automatically generated
      • empty

        public boolean empty()
        Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
        Returns:
        automatically generated
      • clear

        public void clear()
        Clears the algorithm state
      • save

        public void save​(java.lang.String filename)
        Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
        Parameters:
        filename - automatically generated
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable