Nav2 Navigation Stack - rolling
main
ROS 2 Navigation Stack
|
A memory buffer that can grow to an upper-bounded capacity. More...
#include <nav2_costmap_2d/include/nav2_costmap_2d/denoise/image_processing.hpp>
Public Member Functions | |
~MemoryBuffer () | |
Free memory allocated for the buffer. | |
template<class T > | |
T * | get (std::size_t count) |
Return a pointer to an uninitialized array of count elements Delete the old block of memory and allocates a new one if the size of the old is too small. The returned pointer is valid until the next call to get() or destructor. More... | |
A memory buffer that can grow to an upper-bounded capacity.
Definition at line 46 of file image_processing.hpp.
T * nav2_costmap_2d::MemoryBuffer::get | ( | std::size_t | count | ) |
Return a pointer to an uninitialized array of count elements Delete the old block of memory and allocates a new one if the size of the old is too small. The returned pointer is valid until the next call to get() or destructor.
T | type of element |
count | number of elements |
std::bad_alloc | or any other exception thrown by allocator |
Definition at line 139 of file image_processing.hpp.