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 TypeClassDescriptionclass
An iterator over the statistics entries maintained by theStatistics
class. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
Free the native resource associated with this pointer.protected void
deletePointer
(long pointer) Delete the native resource associated with the specified pointer.Retrieve the statistic with the given name.long
Return 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 String
toString
(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, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
pointer
protected long pointerThe raw native pointer value.
-
-
Method Details
-
deletePointer
protected void deletePointer(long pointer) Delete the native resource associated with the specified pointer.Subclasses must implement this method to provide resource-specific cleanup logic.
- Parameters:
pointer
- the native pointer to delete
-
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 aCVC5ApiRecoverableException
if 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
ConstIterator
over the matching statistics entries.
-
iterator
-
getPointer
public long getPointer()Return the raw native pointer.- Returns:
- the pointer value
-
deletePointer
public void deletePointer()Free the native resource associated with this pointer.This method should be called to explicitly clean up the underlying native resource. It removes this instance from the
Context
, then invokes the subclass-defineddeletePointer(long)
method to perform the actual cleanup. -
toString
Return a string representation of the pointer.
-