Buffer contains info about a buffer of type T and it is used to exchange information with yarp::dev::impl::FixedSizeBuffersManager. More...
#include <yarp/dev/impl/FixedSizeBuffersManager.h>
Public Member Functions | |
| Buffer () | |
| Constructor. More... | |
| ~Buffer () | |
| Destructor.Note that the memory will not deallocated. More... | |
| T * | getData () |
| Return the data pointer. More... | |
| uint32_t | getSize () |
| Return the number of element of buffer. More... | |
| T | getValue (uint32_t index) |
Return the value contained in the buffer at index index. More... | |
| void | setValue (uint32_t index, T value) |
Set the value @value in the buffer at index index. More... | |
| T & | operator[] (uint32_t index) |
| Access specified element. More... | |
Public Attributes | |
| uint32_t | key |
| T * | dataPtr |
| uint32_t | numOfElements |
Buffer contains info about a buffer of type T and it is used to exchange information with yarp::dev::impl::FixedSizeBuffersManager.
Definition at line 26 of file FixedSizeBuffersManager.h.
| yarp::dev::impl::Buffer< T >::Buffer |
Constructor.
Definition at line 16 of file FixedSizeBuffersManager-inl.h.
| yarp::dev::impl::Buffer< T >::~Buffer |
Destructor.Note that the memory will not deallocated.
Definition at line 23 of file FixedSizeBuffersManager-inl.h.
| T * yarp::dev::impl::Buffer< T >::getData |
Return the data pointer.
Definition at line 29 of file FixedSizeBuffersManager-inl.h.
| uint32_t yarp::dev::impl::Buffer< T >::getSize |
Return the number of element of buffer.
Definition at line 36 of file FixedSizeBuffersManager-inl.h.
| T yarp::dev::impl::Buffer< T >::getValue | ( | uint32_t | index | ) |
Return the value contained in the buffer at index index.
If index is not minor of size of buffer than a std::out_of_range is thrown.
Definition at line 43 of file FixedSizeBuffersManager-inl.h.
| T & yarp::dev::impl::Buffer< T >::operator[] | ( | uint32_t | index | ) |
Access specified element.
Definition at line 65 of file FixedSizeBuffersManager-inl.h.
| void yarp::dev::impl::Buffer< T >::setValue | ( | uint32_t | index, |
| T | value | ||
| ) |
Set the value @value in the buffer at index index.
If index is not minor of size of buffer than a std::out_of_range is thrown.
Definition at line 54 of file FixedSizeBuffersManager-inl.h.
| T* yarp::dev::impl::Buffer< T >::dataPtr |
Definition at line 30 of file FixedSizeBuffersManager.h.
| uint32_t yarp::dev::impl::Buffer< T >::key |
Definition at line 29 of file FixedSizeBuffersManager.h.
| uint32_t yarp::dev::impl::Buffer< T >::numOfElements |
Definition at line 31 of file FixedSizeBuffersManager.h.