![]() |
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.
|
Forward reference. More...

Classes | |
| struct | _Pool |
Public Member Functions | |
| Node (const T &value, _Compare _cmp, _Pool &pool) | |
| const T & | value () const |
| Returns the node value. | |
| bool | has (const T &value) const |
| const Node< T, _Compare > * | at (size_t idx) const |
| bool | index (const T &value, size_t &idx, size_t level) const |
| size_t | height () const |
| Number of linked lists that this node engages in, minimum 1. | |
| const Node< T, _Compare > * | next () const |
| size_t | width (size_t level) const |
| const Node< T, _Compare > * | pNode (size_t level) const |
| SwappableNodeRefStack< T, _Compare > & | nodeRefs () |
| Get a reference to the node references. | |
| const SwappableNodeRefStack< T, _Compare > & | nodeRefs () const |
| Get a reference to the node references. | |
| Node< T, _Compare > * | insert (const T &value) |
| Node< T, _Compare > * | remove (size_t call_level, const T &value) |
| size_t | size_of () const |
| IntegrityCheck | lacksIntegrity (size_t headnode_height) const |
| IntegrityCheck | lacksIntegrityRefsInSet (const std::set< const Node< T, _Compare > * > &nodeSet) const |
Protected Member Functions | |
| Node< T, _Compare > * | _adjRemoveRefs (size_t level, Node< T, _Compare > *pNode) |
| void | Initialize (const T &value) |
Protected Attributes | |
| T | _value |
| SwappableNodeRefStack< T, _Compare > | _nodeRefs |
| _Compare | _compare |
| _Pool & | _pool |
Private Member Functions | |
| Node (const Node &that) | |
| Node & | operator= (const Node &that) const |
Forward reference.
A single node in a Skip List containing a value and references to other downstream Node objects.
| T | The type of the Skip List Node values. |
| _Compare | A comparison function for type T. |
| duckdb_skiplistlib::skip_list::Node< T, _Compare >::Node | ( | const T & | value, |
| _Compare | _cmp, | ||
| _Pool & | pool ) |
Constructor. This also creates a SwappableNodeRefStack of random height by tossing a virtual coin.
| T | The type of the Skip List Node values. |
| _Compare | A comparison function for type T. |
| value | The value of the Node. |
| _cmp | The comparison function. |


|
inline |
Returns the node value.

| bool duckdb_skiplistlib::skip_list::Node< T, _Compare >::has | ( | const T & | value | ) | const |
Returns true if the value is present in the skip list from this node onwards.
| T | The type of the Skip List Node values. |
| _Compare | A comparison function for type T. |
| value | The value to look for. |

| const Node< T, _Compare > * duckdb_skiplistlib::skip_list::Node< T, _Compare >::at | ( | size_t | idx | ) | const |
Return a pointer to the n'th node. Start (or continue) from the highest level, drop down a level if not found. Return nullptr if not found at level 0.
| T | The type of the Skip List Node values. |
| _Compare | A comparison function for type T. |
| idx | The index from hereon. If zero return this. |

| bool duckdb_skiplistlib::skip_list::Node< T, _Compare >::index | ( | const T & | value, |
| size_t & | idx, | ||
| size_t | level ) const |
Computes index of the first occurrence of a value.
| T | The type of the Skip List Node values. |
| _Compare | A comparison function for type T. |
| value | The value to find. |
| idx | The current index, this will be updated. |
| level | The current level to search from. |

|
inline |
Number of linked lists that this node engages in, minimum 1.

| const Node< T, _Compare > * duckdb_skiplistlib::skip_list::Node< T, _Compare >::next | ( | ) | const |
Return the pointer to the next node at level 0.
| T | The type of the Skip List Node values. |
| _Compare | A comparison function for type T. |


| size_t duckdb_skiplistlib::skip_list::Node< T, _Compare >::width | ( | size_t | level | ) | const |
Return the width at given level.
| T | The type of the Skip List Node values. |
| _Compare | A comparison function for type T. |
| level | The requested level. |

| const Node< T, _Compare > * duckdb_skiplistlib::skip_list::Node< T, _Compare >::pNode | ( | size_t | level | ) | const |
Return the node pointer at given level, only used for HeadNode integrity checks.
| T | The type of the Skip List Node values. |
| _Compare | A comparison function for type T. |
| level | The requested level. |


|
inline |
Get a reference to the node references.

|
inline |
Get a reference to the node references.
| Node< T, _Compare > * duckdb_skiplistlib::skip_list::Node< T, _Compare >::insert | ( | const T & | value | ) |
Insert a new node with a value.
| T | The type of the Skip List Node values. |
| _Compare | A comparison function for type T. |
| value | The value of the Node to insert. |

| Node< T, _Compare > * duckdb_skiplistlib::skip_list::Node< T, _Compare >::remove | ( | size_t | call_level, |
| const T & | value ) |
Remove a Node with the given value to be removed. The return value must be deleted, the other Nodes have been adjusted as required.
| T | The type of the Skip List Node values. |
| _Compare | A comparison function for type T. |

| size_t duckdb_skiplistlib::skip_list::Node< T, _Compare >::size_of | ( | ) | const |
Returns an estimate of the memory usage of an instance.
| T | The type of the Skip List Node values. |
| _Compare | A comparison function for type T. |

| IntegrityCheck duckdb_skiplistlib::skip_list::Node< T, _Compare >::lacksIntegrity | ( | size_t | headnode_height | ) | const |
This checks the internal consistency of a Node. It returns 0 if successful, non-zero on error. The tests are:
| T | The type of the Skip List Node values. |
| _Compare | A comparison function for type T. |
| headnode_height | Height of HeadNode. |


| IntegrityCheck duckdb_skiplistlib::skip_list::Node< T, _Compare >::lacksIntegrityRefsInSet | ( | const std::set< const Node< T, _Compare > * > & | nodeSet | ) | const |
Checks that this Node is in the set held by the HeadNode.
| T | The type of the Skip List Node values. |
| _Compare | A comparison function for type T. |
| nodeSet | Set of Nodes held by the HeadNode. |


|
protected |
Adjust the Node references.
| T | The type of the Skip List Node values. |
| _Compare | A comparison function for type T. |
| level | The level of the caller's node. |
| pNode | The Node to swap references with. |


|
inlineprotected |