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. | |
~Buffer () | |
Destructor.Note that the memory will not deallocated. | |
T * | getData () |
Return the data pointer. | |
uint32_t | getSize () |
Return the number of element of buffer. | |
T | getValue (uint32_t index) |
Return the value contained in the buffer at index index . | |
void | setValue (uint32_t index, T value) |
Set the value @value in the buffer at index index . | |
T & | operator[] (uint32_t index) |
Access specified element. | |
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 21 of file FixedSizeBuffersManager.h.
yarp::dev::impl::Buffer< T >::Buffer | ( | ) |
Constructor.
Definition at line 13 of file FixedSizeBuffersManager-inl.h.
yarp::dev::impl::Buffer< T >::~Buffer | ( | ) |
Destructor.Note that the memory will not deallocated.
Definition at line 20 of file FixedSizeBuffersManager-inl.h.
T * yarp::dev::impl::Buffer< T >::getData | ( | ) |
Return the data pointer.
Definition at line 26 of file FixedSizeBuffersManager-inl.h.
uint32_t yarp::dev::impl::Buffer< T >::getSize | ( | ) |
Return the number of element of buffer.
Definition at line 33 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 40 of file FixedSizeBuffersManager-inl.h.
T & yarp::dev::impl::Buffer< T >::operator[] | ( | uint32_t | index | ) |
Access specified element.
Definition at line 62 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 51 of file FixedSizeBuffersManager-inl.h.
T* yarp::dev::impl::Buffer< T >::dataPtr |
Definition at line 25 of file FixedSizeBuffersManager.h.
uint32_t yarp::dev::impl::Buffer< T >::key |
Definition at line 24 of file FixedSizeBuffersManager.h.
uint32_t yarp::dev::impl::Buffer< T >::numOfElements |
Definition at line 26 of file FixedSizeBuffersManager.h.