Tabnine Logo
IntHeapSemiIndirectPriorityQueue.front
Code IndexAdd Tabnine to your IDE (free)

How to use
front
method
in
it.unimi.dsi.fastutil.ints.IntHeapSemiIndirectPriorityQueue

Best Java code snippets using it.unimi.dsi.fastutil.ints.IntHeapSemiIndirectPriorityQueue.front (Showing top 3 results out of 315)

origin: it.unimi.dsi/mg4j

/** Forces computation of the current front, returning the number of indices it contains.
 * 
 * <p>After a call to this method, 
 * the first elements of {@link #front} contain
 * the indices of the {@linkplain AbstractCompositeDocumentIterator#documentIterator component document iterators}
 * that are positioned on the current document. If the front has already been
 * computed for the current document, this method has no side effects.
 * 
 * @return the size of the current front (the number of valid entries in {@link #front}).
 */

protected int computeFront() {
  if ( frontSize == -1 ) frontSize = queue.front( front );
  return frontSize;
}
origin: it.unimi.dsi/mg4j

public void intervalTerms( final IntSet terms ) {
  final int frontSize = positionQueue.front( positionFront );
  final int[] positionFront = this.positionFront;
  for( int i = frontSize; i-- != 0; ) terms.add( indexIterator[ positionFront[ i ] ].termNumber() );
}

origin: it.unimi.dsi/mg4j-big

public void intervalTerms( final LongSet terms ) {
  final int frontSize = positionQueue.front( positionFront );
  final int[] positionFront = this.positionFront;
  for( int i = frontSize; i-- != 0; ) terms.add( indexIterator[ positionFront[ i ] ].termNumber() );
}
it.unimi.dsi.fastutil.intsIntHeapSemiIndirectPriorityQueuefront

Javadoc

Writes in the provided array the front of the queue, that is, the set of indices whose elements have the same priority as the top.

Popular methods of IntHeapSemiIndirectPriorityQueue

  • <init>
    Wraps a given array in a queue using a given comparator. The queue returned by this method will be b
  • changed
    The caller must guarantee that when this method is called the index of the first element appears ju
  • enqueue
  • first
  • clear
  • dequeue
  • isEmpty
  • ensureElement
    Ensures that the given index is a valid reference.
  • size

Popular in Java

  • Creating JSON documents from java classes using gson
  • getExternalFilesDir (Context)
  • startActivity (Activity)
  • getResourceAsStream (ClassLoader)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Runner (org.openjdk.jmh.runner)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now