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::BoundLimitNode Struct Reference
Collaboration diagram for duckdb::BoundLimitNode:

Public Member Functions

 BoundLimitNode (LimitNodeType type, idx_t constant_integer, double constant_percentage, unique_ptr< Expression > expression)
 
LimitNodeType Type () const
 
idx_t GetConstantValue () const
 Returns the constant value, only valid if Type() == CONSTANT_VALUE.
 
double GetConstantPercentage () const
 Returns the constant percentage, only valid if Type() == CONSTANT_PERCENTAGE.
 
const ExpressionGetValueExpression () const
 Returns the constant percentage, only valid if Type() == EXPRESSION_VALUE.
 
const ExpressionGetPercentageExpression () const
 Returns the constant percentage, only valid if Type() == EXPRESSION_PERCENTAGE.
 
unique_ptr< Expression > & GetExpression ()
 
void Serialize (Serializer &serializer) const
 

Static Public Member Functions

static BoundLimitNode ConstantValue (int64_t value)
 
static BoundLimitNode ConstantPercentage (double percentage)
 
static BoundLimitNode ExpressionValue (unique_ptr< Expression > expression)
 
static BoundLimitNode ExpressionPercentage (unique_ptr< Expression > expression)
 
static BoundLimitNode Deserialize (Deserializer &deserializer)
 

Private Member Functions

 BoundLimitNode (int64_t constant_value)
 
 BoundLimitNode (double percentage_value)
 
 BoundLimitNode (unique_ptr< Expression > expression, bool is_percentage)
 

Private Attributes

LimitNodeType type = LimitNodeType::UNSET
 
idx_t constant_integer = 0
 Integer value, if value is a constant non-percentage.
 
double constant_percentage = -1
 Percentage value, if value is a constant percentage.
 
unique_ptr< Expressionexpression
 Expression in case node is not constant.
 

Member Function Documentation

◆ Type()

LimitNodeType duckdb::BoundLimitNode::Type ( ) const
inline
17867 {
17868 return type;
17869 }

◆ GetExpression()

unique_ptr< Expression > & duckdb::BoundLimitNode::GetExpression ( )
inline

Returns a pointer to the expression - should only be used for limit-agnostic optimizations. Prefer using the methods above in other scenarios.

17882 {
17883 return expression;
17884 }
unique_ptr< Expression > expression
Expression in case node is not constant.
Definition duckdb.hpp:17896

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