0.2.0
|
Vector Utility functions. More...
Go to the source code of this file.
Functions | |
template<typename Scalar > | |
std::vector< Scalar > | NAV::genRangeVector (Scalar start, Scalar stepSize, Scalar end) |
Returns a container filled with the given range. | |
template<typename T > | |
void | NAV::move (std::vector< T > &v, size_t sourceIdx, size_t targetIdx) |
Moves an element within a vector to a new position. | |
Vector Utility functions.
std::vector< Scalar > NAV::genRangeVector | ( | Scalar | start, |
Scalar | stepSize, | ||
Scalar | end ) |
Returns a container filled with the given range.
start | Inclusive start value of the range |
stepSize | Step size of the range |
end | Exclusive end value of the range |
void NAV::move | ( | std::vector< T > & | v, |
size_t | sourceIdx, | ||
size_t | targetIdx ) |
Moves an element within a vector to a new position.
[in,out] | v | Vector with the elements |
[in] | sourceIdx | Old index which will be moved |
[in] | targetIdx | New index which is the target |