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::MetaBlockPointer Struct Reference

Public Member Functions

 MetaBlockPointer (idx_t block_pointer, uint32_t offset_p)
bool IsValid () const
block_id_t GetBlockId () const
uint32_t GetBlockIndex () const
bool operator== (const MetaBlockPointer &rhs) const
void Serialize (Serializer &serializer) const

Static Public Member Functions

static MetaBlockPointer Deserialize (Deserializer &source)

Public Attributes

idx_t block_pointer
uint32_t offset
uint32_t unused_padding {0}

Friends

std::ostream & operator<< (std::ostream &os, const MetaBlockPointer &obj)

Constructor & Destructor Documentation

◆ MetaBlockPointer() [1/2]

duckdb::MetaBlockPointer::MetaBlockPointer ( idx_t block_pointer,
uint32_t offset_p )
inline
23060 : block_pointer(block_pointer), offset(offset_p) {
23061 }

◆ MetaBlockPointer() [2/2]

duckdb::MetaBlockPointer::MetaBlockPointer ( )
inline
23062 : block_pointer(DConstants::INVALID_INDEX), offset(0) {
23063 }
static constexpr const idx_t INVALID_INDEX
The value used to signify an invalid index entry.
Definition duckdb.hpp:1117

Member Function Documentation

◆ IsValid()

bool duckdb::MetaBlockPointer::IsValid ( ) const
inline
23069 {
23070 return block_pointer != DConstants::INVALID_INDEX;
23071 }

◆ GetBlockId()

block_id_t duckdb::MetaBlockPointer::GetBlockId ( ) const
414464 {
414465 return block_id_t(block_pointer & ~(idx_t(0xFF) << 56ULL));
414466}
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237

◆ GetBlockIndex()

uint32_t duckdb::MetaBlockPointer::GetBlockIndex ( ) const
414468 {
414469 return block_pointer >> 56ULL;
414470}

◆ operator==()

bool duckdb::MetaBlockPointer::operator== ( const MetaBlockPointer & rhs) const
inline
23075 {
23076 return block_pointer == rhs.block_pointer && offset == rhs.offset;
23077 }

◆ Serialize()

void duckdb::MetaBlockPointer::Serialize ( Serializer & serializer) const
419389 {
419390 serializer.WritePropertyWithDefault<idx_t>(100, "block_pointer", block_pointer);
419391 serializer.WritePropertyWithDefault<uint32_t>(101, "offset", offset);
419392}
::uint32_t uint32_t

◆ Deserialize()

MetaBlockPointer duckdb::MetaBlockPointer::Deserialize ( Deserializer & source)
static
419394 {
419395 auto block_pointer = deserializer.ReadPropertyWithDefault<idx_t>(100, "block_pointer");
419396 auto offset = deserializer.ReadPropertyWithDefault<uint32_t>(101, "offset");
419397 MetaBlockPointer result(block_pointer, offset);
419398 return result;
419399}

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
const MetaBlockPointer & obj )
friend
23079 {
23080 return os << "{block_id: " << obj.GetBlockId() << " index: " << obj.GetBlockIndex() << " offset: " << obj.offset
23081 << "}";
23082 }

Member Data Documentation

◆ unused_padding

uint32_t duckdb::MetaBlockPointer::unused_padding {0}
23067{0};

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