|
libptpmgmt 2.0
libptpmgmt library that provides the functionality of linuxptp pmc
|
#include <vecDef.h>
Public Member Functions | |
| SigComp () | |
| SigComp (size_t size) | |
| SigComp (size_t size, const SLAVE_RX_SYNC_COMPUTED_DATA_rec_t &value) | |
| SigComp (const SigComp &container) | |
| size_t | size () const |
| bool | empty () const |
| void | clear () |
| void | push (const SLAVE_RX_SYNC_COMPUTED_DATA_rec_t &value) |
| SLAVE_RX_SYNC_COMPUTED_DATA_rec_t | pop () |
| void | pop_back () |
| SLAVE_RX_SYNC_COMPUTED_DATA_rec_t | back () |
| SLAVE_RX_SYNC_COMPUTED_DATA_rec_t | front () |
| SLAVE_RX_SYNC_COMPUTED_DATA_rec_t & | get (size_t position) const |
| void | set (size_t position, SLAVE_RX_SYNC_COMPUTED_DATA_rec_t &value) |
| SLAVE_RX_SYNC_COMPUTED_DATA_rec_t & | operator[] (size_t position) |
| size_t | capacity () const |
| void | reserve (size_t new_cap) |
| size_t | max_size () const |
class to handle std::vector<SLAVE_RX_SYNC_COMPUTED_DATA_rec_t> in scripts
| SigComp::SigComp | ( | ) |
Initiate a new empty container
| SigComp::SigComp | ( | size_t | size | ) |
Initiate a new container with size elements
| [in] | size | of the new container |
| SigComp::SigComp | ( | size_t | size, |
| const SLAVE_RX_SYNC_COMPUTED_DATA_rec_t & | value | ||
| ) |
Initiate a new container with size elements and copy value to all elements
| [in] | size | of the new container |
| [in] | value | for all elements in new container |
| SigComp::SigComp | ( | const SigComp & | container | ) |
Copy constructor
| [in] | container | to copy |
| SLAVE_RX_SYNC_COMPUTED_DATA_rec_t SigComp::back | ( | ) |
Get last element from container
| size_t SigComp::capacity | ( | ) | const |
Get current container capacity
| void SigComp::clear | ( | ) |
Remove all elements from container
| bool SigComp::empty | ( | ) | const |
Query if container is empty
| SLAVE_RX_SYNC_COMPUTED_DATA_rec_t SigComp::front | ( | ) |
Get first element from container
| SLAVE_RX_SYNC_COMPUTED_DATA_rec_t & SigComp::get | ( | size_t | position | ) | const |
Get element from the container
| [in] | position | of element to get |
| size_t SigComp::max_size | ( | ) | const |
Get system limitation to container size
| SLAVE_RX_SYNC_COMPUTED_DATA_rec_t & SigComp::operator[] | ( | size_t | position | ) |
Fetch an element from the container The operator can be used for retrieving and setting!
| [in] | position | of the element |
| SLAVE_RX_SYNC_COMPUTED_DATA_rec_t SigComp::pop | ( | ) |
Get last element and removes it from the container
| void SigComp::pop_back | ( | ) |
Removes last element from the container
| void SigComp::push | ( | const SLAVE_RX_SYNC_COMPUTED_DATA_rec_t & | value | ) |
Push a copy of element at the end of the container
| [in] | value | to push |
| void SigComp::reserve | ( | size_t | new_cap | ) |
Reserve more space for further elements
| void SigComp::set | ( | size_t | position, |
| SLAVE_RX_SYNC_COMPUTED_DATA_rec_t & | value | ||
| ) |
Replace element value in the container
| [in] | position | of element to set |
| [in] | value | element with new value |
| size_t SigComp::size | ( | ) | const |
Get the number of elements in container