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