return ss.str();
}
-// !!! This is only temporarily available until the parser is fully migrated
-// to the new API. !!!
-const CVC4::DTypeConstructor& DatatypeConstructorDecl::getDatatypeConstructor(
- void) const
-{
- return *d_ctor;
-}
-
std::ostream& operator<<(std::ostream& out,
const DatatypeConstructorDecl& ctordecl)
{
bool DatatypeDecl::isNull() const { return isNullHelper(); }
-// !!! This is only temporarily available until the parser is fully migrated
-// to the new API. !!!
-CVC4::DType& DatatypeDecl::getDatatype(void) const { return *d_dtype; }
-
std::ostream& operator<<(std::ostream& out, const DatatypeDecl& dtdecl)
{
out << dtdecl.toString();
return out;
}
+CVC4::DType& DatatypeDecl::getDatatype(void) const { return *d_dtype; }
+
/* DatatypeSelector --------------------------------------------------------- */
DatatypeSelector::DatatypeSelector() : d_solver(nullptr), d_stor(nullptr) {}
return ss.str();
}
-// !!! This is only temporarily available until the parser is fully migrated
-// to the new API. !!!
-CVC4::DTypeSelector DatatypeSelector::getDatatypeConstructorArg(void) const
-{
- return *d_stor;
-}
-
std::ostream& operator<<(std::ostream& out, const DatatypeSelector& stor)
{
out << stor.toString();
return ss.str();
}
-// !!! This is only temporarily available until the parser is fully migrated
-// to the new API. !!!
-const CVC4::DTypeConstructor& DatatypeConstructor::getDatatypeConstructor(
- void) const
-{
- return *d_ctor;
-}
-
DatatypeSelector DatatypeConstructor::getSelectorForName(
const std::string& name) const
{
return Datatype::const_iterator(d_solver, *d_dtype, false);
}
-// !!! This is only temporarily available until the parser is fully migrated
-// to the new API. !!!
-const CVC4::DType& Datatype::getDatatype(void) const { return *d_dtype; }
-
DatatypeConstructor Datatype::getConstructorForName(
const std::string& name) const
{
friend class Solver;
public:
- /**
- * Nullary constructor for Cython.
- */
+ /** Constructor. */
DatatypeConstructorDecl();
/**
*/
std::string toString() const;
- // !!! This is only temporarily available until the parser is fully migrated
- // to the new API. !!!
- const CVC4::DTypeConstructor& getDatatypeConstructor(void) const;
-
private:
/**
* Constructor.
friend class Grammar;
public:
- /**
- * Nullary constructor for Cython.
- */
+ /** Constructor. */
DatatypeDecl();
/**
/** @return the name of this datatype declaration. */
std::string getName() const;
- // !!! This is only temporarily available until the parser is fully migrated
- // to the new API. !!!
- CVC4::DType& getDatatype(void) const;
-
private:
/**
* Constructor.
const std::vector<Sort>& params,
bool isCoDatatype = false);
+ /** @return the internal wrapped Dtype of this datatype declaration. */
+ CVC4::DType& getDatatype(void) const;
+
/**
* Helper for isNull checks. This prevents calling an API function with
* CVC4_API_CHECK_NOT_NULL
*/
DatatypeSelector();
- // !!! This constructor is only temporarily public until the parser is fully
- // migrated to the new API. !!!
- /**
- * Constructor.
- * @param slv the associated solver object
- * @param stor the internal datatype selector to be wrapped
- * @return the DatatypeSelector
- */
- DatatypeSelector(const Solver* slv, const CVC4::DTypeSelector& stor);
-
/**
* Destructor.
*/
*/
std::string toString() const;
- // !!! This is only temporarily available until the parser is fully migrated
- // to the new API. !!!
- CVC4::DTypeSelector getDatatypeConstructorArg(void) const;
-
private:
+ /**
+ * Constructor.
+ * @param slv the associated solver object
+ * @param stor the internal datatype selector to be wrapped
+ * @return the DatatypeSelector
+ */
+ DatatypeSelector(const Solver* slv, const CVC4::DTypeSelector& stor);
+
/**
* The associated solver object.
*/
*/
DatatypeConstructor();
- // !!! This constructor is only temporarily public until the parser is fully
- // migrated to the new API. !!!
- /**
- * Constructor.
- * @param ctor the internal datatype constructor to be wrapped
- * @return the DatatypeConstructor
- */
- DatatypeConstructor(const Solver* slv, const CVC4::DTypeConstructor& ctor);
-
/**
* Destructor.
*/
*/
const_iterator end() const;
- // !!! This is only temporarily available until the parser is fully migrated
- // to the new API. !!!
- const CVC4::DTypeConstructor& getDatatypeConstructor(void) const;
-
private:
+ /**
+ * Constructor.
+ * @param ctor the internal datatype constructor to be wrapped
+ * @return the DatatypeConstructor
+ */
+ DatatypeConstructor(const Solver* slv, const CVC4::DTypeConstructor& ctor);
+
/**
* Return selector for name.
* @param name The name of selector to find
friend class Sort;
public:
- // !!! This constructor is only temporarily public until the parser is fully
- // migrated to the new API. !!!
- /**
- * Constructor.
- * @param dtype the internal datatype to be wrapped
- * @return the Datatype
- */
- Datatype(const Solver* slv, const CVC4::DType& dtype);
-
- // Nullary constructor for Cython
+ /** Constructor. */
Datatype();
/**
*/
const_iterator end() const;
- // !!! This is only temporarily available until the parser is fully migrated
- // to the new API. !!!
- const CVC4::DType& getDatatype(void) const;
-
private:
+ /**
+ * Constructor.
+ * @param dtype the internal datatype to be wrapped
+ * @return the Datatype
+ */
+ Datatype(const Solver* slv, const CVC4::DType& dtype);
+
/**
* Return constructor for name.
* @param name The name of constructor to find