Package io.github.cvc5
Class Statistics
java.lang.Object
io.github.cvc5.Statistics
Represents a snapshot of the solver statistics.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassAn iterator over the statistics entries maintained by theStatisticsclass. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidFree the native resource associated with this pointer.Retrieve the statistic with the given name.longReturn the raw native pointer.iterator()iterator(boolean internal, boolean defaulted) Begin iteration over the statistics values.toString()Return a string representation of the pointer.protected StringtoString(long pointer) Return a string representation of the specified native pointer.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
pointer
protected long pointerThe raw native pointer value.
-
-
Method Details
-
toString
Return a string representation of the specified native pointer.Subclasses must implement this method to convert the native pointer into a meaningful string.
- Parameters:
pointer- the native pointer- Returns:
- A string representation of this Statistics.
-
get
Retrieve the statistic with the given name. Asserts that a statistic with the given name actually exists and throws aCVC5ApiRecoverableExceptionif it does not.- Parameters:
name- Name of the statistic.- Returns:
- The statistic with the given name.
-
iterator
Begin iteration over the statistics values. By default, only entries that are public (non-internal) and have been set are visible while the others are skipped.- Parameters:
internal- If set totrue, internal statistics are shown as well.defaulted- If set totrue, defaulted statistics are shown as well.- Returns:
- A
ConstIteratorover the matching statistics entries.
-
iterator
-
getPointer
public long getPointer()Return the raw native pointer.Every native call obtains the pointers of the objects it uses through this method, so that using an object after its native resource has been released raises an exception instead of crashing the JVM.
- Returns:
- the pointer value
- Throws:
IllegalStateException- if the native resource of this object has been released, e.g., viadeletePointer()
-
deletePointer
public void deletePointer()Free the native resource associated with this pointer.Native resources are freed automatically once the Java object is no longer reachable. This method frees the native resource immediately instead; afterwards, using the object raises an
IllegalStateException. It must be called from the thread that is using the associated term manager. Calling it more than once has no further effect. -
toString
Return a string representation of the pointer.
-