Basic vector class, cloning std::vector<T>.
More...
#include <PstVector.h>
template<typename T>
class PSTech::Utils::PstVector< T >
This class can safely be passed across the DLL boundary.
PstVector<T> has been defined for the following types:
- Examples:
- trackingtarget.cpp.
◆ const_iterator
◆ const_pointer
◆ const_reference
◆ iterator
◆ pointer
◆ reference
◆ size_type
◆ value_type
◆ PstVector() [1/5]
Default constructor creates empty PstVector of size 0
◆ PstVector() [2/5]
Construct a PstVector of size size, using the default constructor of T
◆ PstVector() [3/5]
Construct a PstVector of size size and filling it with copies of data
◆ PstVector() [4/5]
◆ PstVector() [5/5]
◆ ~PstVector()
◆ assign()
Fill the PstVector with `count' copies of `data'. Resize the vector if `count' differs from the current PstVector size.
◆ at() [1/2]
◆ at() [2/2]
◆ back() [1/2]
Get a const reference to the last element in the PstVector.
◆ back() [2/2]
Get a reference to the last element in the PstVector.
◆ begin() [1/2]
Get a const iterator to the beginning of the PstVector.
◆ begin() [2/2]
Get an iterator to the beginning of the PstVector.
◆ capacity()
Get the number of elements for which memory has been allocated.
- Note
- This is not the number of initialized elements in the PstVector.
- See also
- PstVector::size()
◆ cbegin()
Get a const iterator to the beginning of the PstVector.
◆ cend()
Get a const iterator to the end of the PstVector.
◆ check_bounds()
◆ clear()
Destroy all elements of the PstVector and set its size to 0.
- Note
- This does not deallocate the memory allocated for this PstVector.
◆ empty()
◆ end() [1/2]
Get a const iterator to the end of the PstVector.
◆ end() [2/2]
◆ front() [1/2]
Get a const reference to the first element in the PstVector.
◆ front() [2/2]
Get a reference to the first element in the PstVector.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ operator[]() [1/2]
Get a const reference to the item stored at position `índex' in the PstVector.
◆ operator[]() [2/2]
Get a reference to the item stored at position `índex' in the PstVector.
◆ pop_back()
Destroy the last element from the back of the PstVector, decreasing its size by one.
◆ push_back() [1/2]
Add a copy of `data' to the back of the PstVector, increasing its size by one. If not enough memory has been allocated to store the extra element, double the Pstvector size.
◆ push_back() [2/2]
Move `data' to the back of the PstVector, increasing its size by one. If not enough memory has been allocated to store the extra element, double the Pstvector size.
◆ reserve()
◆ resize() [1/2]
◆ resize() [2/2]
◆ resize_internal()
◆ size()
◆ swap()
Swaps the contents of the Pstvector with vector.
◆ m_allocated
◆ m_allocator
◆ m_array
◆ m_size
The documentation for this class was generated from the following file:
- C:/CI/builds/c149454a/0/ps-tech/pst-distributor/pstsdk/cpp/include/PstVector.h