Nav2 Navigation Stack - rolling  main
ROS 2 Navigation Stack
Public Member Functions | List of all members
nav2_costmap_2d::MemoryBuffer Class Reference

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...
 

Detailed Description

A memory buffer that can grow to an upper-bounded capacity.

Definition at line 46 of file image_processing.hpp.

Member Function Documentation

◆ get()

template<class T >
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.

Template Parameters
Ttype of element
Parameters
countnumber of elements
Exceptions
std::bad_allocor any other exception thrown by allocator

Definition at line 139 of file image_processing.hpp.


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