#include <uhd/types/ref_vector.hpp>
|
template<typename Ptr > |
| ref_vector (Ptr *ptr) |
|
template<typename Vector > |
| ref_vector (const Vector &vec) |
|
| ref_vector (const T *mem, size_t len) |
|
const T & | operator[] (size_t index) const |
| Index operator gets the value of rv[index]. More...
|
|
size_t | size (void) const |
| The number of elements in this container. More...
|
|
template<typename T>
class uhd::ref_vector< T >
Reference vector:
- Provides a std::vector-like interface for an array.
- Statically sized, and does not manage the memory.
◆ ref_vector() [1/3]
template<typename T >
template<typename Ptr >
Create a reference vector of size 1 from a pointer. Therefore: rv[0] == ptr and rv.size() == 1
- Parameters
-
ptr | a pointer to a chunk of memory |
◆ ref_vector() [2/3]
template<typename T >
template<typename Vector >
Create a reference vector from a std::vector container. Therefore: rv[n] == vec[n] and rv.size() == vec.size()
- Parameters
-
vec | a const reference to an std::vector |
◆ ref_vector() [3/3]
Create a reference vector from a pointer and a length Therefore: rv[n] == mem[n] and rv.size() == len
- Parameters
-
mem | a pointer to an array of pointers |
len | the length of the array of pointers |
◆ operator[]()
Index operator gets the value of rv[index].
◆ size()
The number of elements in this container.
The documentation for this class was generated from the following file: