![]() |
Galaxis Codebase
1.0.0
Team Galaxis software stack for the Carolo Cup 2023 - ROS2 based software
|
This class holds a pointer onto a vector. Some of the std::vector functions are implemented for thread-safe operations. If a function is not implemented, you can retrieve the raw pointer onto the vector with the unmutexed_get_ptr method. More...
#include <mvector.hpp>
Public Member Functions | |
| MutexedVectorPointer ()=delete | |
| MutexedVectorPointer (std::vector< T > &vec) | |
| MutexedVectorPointer (std::vector< T > *vec) | |
| std::vector< T > * | unmutexed_get_ptr () |
| void | push_back (T const &item) |
Private Attributes | |
| std::vector< T > * | m_data = nullptr |
| std::mutex | m_mutex |
This class holds a pointer onto a vector. Some of the std::vector functions are implemented for thread-safe operations. If a function is not implemented, you can retrieve the raw pointer onto the vector with the unmutexed_get_ptr method.
Definition at line 11 of file mvector.hpp.
|
delete |
|
inline |
Definition at line 19 of file mvector.hpp.
References MutexedVectorPointer< T >::m_data.
|
inline |
Definition at line 23 of file mvector.hpp.
References MutexedVectorPointer< T >::m_data.
|
inline |
Definition at line 31 of file mvector.hpp.
References MutexedVectorPointer< T >::m_data, and MutexedVectorPointer< T >::m_mutex.
|
inline |
Definition at line 27 of file mvector.hpp.
References MutexedVectorPointer< T >::m_data.
|
private |
Definition at line 13 of file mvector.hpp.
Referenced by MutexedVectorPointer< T >::MutexedVectorPointer(), MutexedVectorPointer< T >::push_back(), and MutexedVectorPointer< T >::unmutexed_get_ptr().
|
private |
Definition at line 14 of file mvector.hpp.
Referenced by MutexedVectorPointer< T >::push_back().