Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::Constraint Class Referenceabstract

Constraint is the base class of any type of table constraint. More...

#include <duckdb.hpp>

Inheritance diagram for duckdb::Constraint:

Public Member Functions

DUCKDB_API Constraint (ConstraintType type)
 
virtual DUCKDB_API string ToString () const =0
 
DUCKDB_API void Print () const
 
virtual DUCKDB_API unique_ptr< ConstraintCopy () const =0
 
virtual DUCKDB_API void Serialize (Serializer &serializer) const
 
template<class TARGET >
TARGETCast ()
 
template<class TARGET >
const TARGETCast () const
 

Static Public Member Functions

static DUCKDB_API unique_ptr< ConstraintDeserialize (Deserializer &deserializer)
 

Public Attributes

ConstraintType type
 

Detailed Description

Constraint is the base class of any type of table constraint.

Member Function Documentation

◆ Cast() [1/2]

template<class TARGET >
TARGET & duckdb::Constraint::Cast ( )
inline
28420 {
28421 if (type != TARGET::TYPE) {
28422 throw InternalException("Failed to cast constraint to type - constraint type mismatch");
28423 }
28424 return reinterpret_cast<TARGET &>(*this);
28425 }

◆ Cast() [2/2]

template<class TARGET >
const TARGET & duckdb::Constraint::Cast ( ) const
inline
28428 {
28429 if (type != TARGET::TYPE) {
28430 throw InternalException("Failed to cast constraint to type - constraint type mismatch");
28431 }
28432 return reinterpret_cast<const TARGET &>(*this);
28433 }

The documentation for this class was generated from the following file: