summaryrefslogtreecommitdiff
path: root/src/api/cpp/cvc5.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/cpp/cvc5.h')
-rw-r--r--src/api/cpp/cvc5.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/api/cpp/cvc5.h b/src/api/cpp/cvc5.h
index 0ee5990da..672ccf8f8 100644
--- a/src/api/cpp/cvc5.h
+++ b/src/api/cpp/cvc5.h
@@ -782,6 +782,8 @@ namespace cvc5::api {
/* Op */
/* -------------------------------------------------------------------------- */
+class Term;
+
/**
* A cvc5 operator.
* An operator is a term that represents certain operators, instantiated
@@ -843,6 +845,14 @@ class CVC5_EXPORT Op
size_t getNumIndices() const;
/**
+ * Get the index at position i.
+ * @param i the position of the index to return
+ * @return the index at position i
+ */
+
+ Term operator[](size_t i) const;
+
+ /**
* Get the indices used to create this Op.
* Supports the following template arguments:
* - string
@@ -892,6 +902,19 @@ class CVC5_EXPORT Op
bool isIndexedHelper() const;
/**
+ * Helper for getNumIndices
+ * @return the number of indices of this op
+ */
+ size_t getNumIndicesHelper() const;
+
+ /**
+ * Helper for operator[](size_t i).
+ * @param i position of the index. Should be less than getNumIndicesHelper().
+ * @return the index at position i
+ */
+ Term getIndexHelper(size_t index) const;
+
+ /**
* The associated solver object.
*/
const Solver* d_solver;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback