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