Bound equivalent of Constraint.
More...
|
| | BoundConstraint (ConstraintType type) |
| template<class TARGET> |
| TARGET & | Cast () |
| template<class TARGET> |
| const TARGET & | Cast () const |
|
virtual unique_ptr< BoundConstraint > | Copy () const =0 |
Bound equivalent of Constraint.
◆ BoundConstraint()
| duckdb::BoundConstraint::BoundConstraint |
( |
ConstraintType | type | ) |
|
|
inlineexplicit |
◆ ~BoundConstraint()
| virtual duckdb::BoundConstraint::~BoundConstraint |
( |
| ) |
|
|
inlinevirtual |
◆ Cast() [1/2]
template<class TARGET>
| TARGET & duckdb::BoundConstraint::Cast |
( |
| ) |
|
|
inline |
1772 {
1773 if (type != TARGET::TYPE) {
1774 throw InternalException("Failed to cast constraint to type - bound constraint type mismatch");
1775 }
1776 return reinterpret_cast<TARGET &>(*this);
1777 }
◆ Cast() [2/2]
template<class TARGET>
| const TARGET & duckdb::BoundConstraint::Cast |
( |
| ) |
const |
|
inline |
1780 {
1781 if (type != TARGET::TYPE) {
1782 throw InternalException("Failed to cast constraint to type - bound constraint type mismatch");
1783 }
1784 return reinterpret_cast<const TARGET &>(*this);
1785 }
The documentation for this class was generated from the following file: