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
internal::container_buffer< Container > Class Template Reference
Inheritance diagram for internal::container_buffer< Container >:
Collaboration diagram for internal::container_buffer< Container >:

Public Member Functions

 container_buffer (Container &c)
Public Member Functions inherited from internal::buffer< Container::value_type >
void operator= (const buffer &)=delete
Container::value_type * begin () FMT_NOEXCEPT
Container::value_type * end () FMT_NOEXCEPT
std::size_t size () const FMT_NOEXCEPT
std::size_t capacity () const FMT_NOEXCEPT
Container::value_type * data () FMT_NOEXCEPT
void resize (std::size_t new_size)
void clear ()
void reserve (std::size_t new_capacity)
void push_back (const Container::value_type &value)
void append (const U *begin, const U *end)
Container::value_type & operator[] (std::size_t index)

Protected Member Functions

void grow (std::size_t capacity) FMT_OVERRIDE
Protected Member Functions inherited from internal::buffer< Container::value_type >
 buffer (std::size_t sz) FMT_NOEXCEPT
void set (Container::value_type *buf_data, std::size_t buf_capacity) FMT_NOEXCEPT

Private Attributes

Container & container_

Additional Inherited Members

Public Types inherited from internal::buffer< Container::value_type >
using value_type
using const_reference

Constructor & Destructor Documentation

◆ container_buffer()

template<typename Container>
internal::container_buffer< Container >::container_buffer ( Container & c)
inlineexplicit
15486 : buffer<typename Container::value_type>(c.size()), container_(c) {}
std::size_t size() const FMT_NOEXCEPT
Definition duckdb.cpp:15433
Definition duckdb.cpp:15474

Member Function Documentation

◆ grow()

template<typename Container>
void internal::container_buffer< Container >::grow ( std::size_t capacity)
inlineprotectedvirtual

Increases the buffer capacity to hold at least capacity elements.

Implements internal::buffer< Container::value_type >.

15479 {
15480 container_.resize(capacity);
15481 this->set(&container_[0], capacity);
15482 }
void set(Container::value_type *buf_data, std::size_t buf_capacity) FMT_NOEXCEPT
Definition duckdb.cpp:15413
std::size_t capacity() const FMT_NOEXCEPT
Definition duckdb.cpp:15436
Here is the call graph for this function:

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