gtsam_points
Loading...
Searching...
No Matches
Public Member Functions | List of all members
gtsam_points::IndexedSlidingWindow< T > Class Template Reference

A sliding window container that allows absolute indexed access. It automatically shrinks by removing leading null elements. More...

#include <indexed_sliding_window.hpp>

Public Member Functions

 IndexedSlidingWindow (bool auto_shrink=true)
 Constructor.
 
bool empty () const
 
size_t size () const
 
size_t inner_size () const
 
void clear ()
 
void push_back (const T &value)
 
void emplace_back (T &&value)
 
void shrink ()
 Remove leading null elements from the container.
 
T & operator[] (size_t index)
 
const T & operator[] (size_t index) const
 
std::deque< T >::iterator inner_begin ()
 
std::deque< T >::iterator inner_end ()
 
std::deque< T >::const_iterator inner_begin () const
 
std::deque< T >::const_iterator inner_end () const
 
T & inner_front ()
 
const T & inner_front () const
 
T & inner_back ()
 
const T & inner_back () const
 
T & back ()
 
const T & back () const
 

Detailed Description

template<typename T>
class gtsam_points::IndexedSlidingWindow< T >

A sliding window container that allows absolute indexed access. It automatically shrinks by removing leading null elements.

Constructor & Destructor Documentation

◆ IndexedSlidingWindow()

template<typename T >
gtsam_points::IndexedSlidingWindow< T >::IndexedSlidingWindow ( bool  auto_shrink = true)
inline

Constructor.

Parameters
auto_shrinkIf true, the container will automatically shrink by removing leading null elements when adding or accessing new elements.

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