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_re2::PatchList Struct Reference

Static Public Member Functions

static PatchList Mk (uint32_t p)
static void Patch (Prog::Inst *inst0, PatchList l, uint32_t p)
static PatchList Append (Prog::Inst *inst0, PatchList l1, PatchList l2)

Public Attributes

uint32_t head
uint32_t tail

Member Function Documentation

◆ Mk()

PatchList duckdb_re2::PatchList::Mk ( uint32_t p)
inlinestatic
460900 {
460901 return {p, p};
460902 }

◆ Patch()

void duckdb_re2::PatchList::Patch ( Prog::Inst * inst0,
PatchList l,
uint32_t p )
inlinestatic
460906 {
460907 while (l.head != 0) {
460908 Prog::Inst* ip = &inst0[l.head>>1];
460909 if (l.head&1) {
460910 l.head = ip->out1();
460911 ip->out1_ = p;
460912 } else {
460913 l.head = ip->out();
460914 ip->set_out(p);
460915 }
460916 }
460917 }

◆ Append()

PatchList duckdb_re2::PatchList::Append ( Prog::Inst * inst0,
PatchList l1,
PatchList l2 )
inlinestatic
460920 {
460921 if (l1.head == 0)
460922 return l2;
460923 if (l2.head == 0)
460924 return l1;
460925 Prog::Inst* ip = &inst0[l1.tail>>1];
460926 if (l1.tail&1)
460927 ip->out1_ = l2.head;
460928 else
460929 ip->set_out(l2.head);
460930 return {l1.head, l2.tail};
460931 }

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