Class StratVector

java.lang.Object
es.ucm.maude.bindings.StratVector

public class StratVector extends Object
Internal Maude vector.
  • Constructor Details

    • StratVector

      public StratVector(long length)
      Construct a vector.

      Parameters:
      length - The initial length.
    • StratVector

      public StratVector()
      Construct a vector.

  • Method Details

    • delete

      public void delete()
    • empty

      public boolean empty()
      Is the vector empty?
    • size

      public long size()
      Size of the vector.
    • capacity

      public long capacity()
      Reserved capacity of the vector.
    • swap

      public void swap(StratVector other)
      Swap this vector's contents with another.

      Parameters:
      other - The other vector.
    • get

      public RewriteStrategy get(long n)
      Get a vector position value.

      Parameters:
      n - Vector position from zero.
    • set

      public void set(long n, RewriteStrategy value)
      Set a vector position value.

      Parameters:
      n - Vector position from zero.
      value - Value to be set.
    • append

      public void append(RewriteStrategy value)
      Append a new element to the vector.
    • clear

      public void clear()
      Set the vector length to zero.
    • resize

      public void resize(long new_size)
      Resize the vector.

      Parameters:
      new_size - New size.