Module logicng

Class LNGBoundedIntQueue


  • public final class LNGBoundedIntQueue
    extends Object
    A bounded integer queue (for Glucose)
    Since:
    1.0
    Version:
    1.3
    • Constructor Detail

      • LNGBoundedIntQueue

        public LNGBoundedIntQueue()
        Constructs a new bounded int queue.
    • Method Detail

      • initSize

        public void initSize​(int size)
        Initializes the size of this queue.
        Parameters:
        size - the size
      • push

        public void push​(int x)
        Pushes a new element to the queue.
        Parameters:
        x - the new element
      • avg

        public int avg()
        Returns the average value of this queue.
        Returns:
        the average value of this queue