Skip to content
Snippets Groups Projects

Resolve "ProcessorLoopClosureBase class"

Merged Joan Vallvé Navarro requested to merge 220-processor-loop-closure-base into devel
1 file
+ 12
0
Compare changes
  • Side-by-side
  • Inline
@@ -70,6 +70,12 @@ public:
*/
void add(const T& _element, const TimeStamp& _time_stamp); //const Scalar& _time_tolerance);
/** \brief returns the container with elements of the buffer
*
* elements are ordered from most recent to oldest
*/
std::map<TimeStamp,T> getContainer();
/**\brief Remove all packs in the buffer with a time stamp older than the specified
*
*/
@@ -400,6 +406,12 @@ void Buffer<T>::add(const T& _element, const TimeStamp& _time_stamp)
container_.emplace(_time_stamp, _element);
}
template <typename T>
std::map<TimeStamp,T> Buffer<T>::getContainer()
{
return container_;
}
template <typename T>
inline void Buffer<T>::clear()
{
Loading