18 #ifndef INCLUDED_UHD_TYPES_REF_VECTOR_HPP 19 #define INCLUDED_UHD_TYPES_REF_VECTOR_HPP 38 _ptr(T(ptr)), _mem(_mem_t(&_ptr)), _size(1)
48 template <
typename Vector>
ref_vector(
const Vector &vec):
49 _ptr(T()), _mem(_mem_t(&vec.front())), _size(vec.size())
61 _ptr(T()), _mem(_mem_t(mem)), _size(len)
ref_vector(Ptr *ptr)
Definition: ref_vector.hpp:37
size_t size(void) const
The number of elements in this container.
Definition: ref_vector.hpp:72
ref_vector(const T *mem, size_t len)
Definition: ref_vector.hpp:60
Definition: convert.hpp:28
Definition: ref_vector.hpp:30
ref_vector(const Vector &vec)
Definition: ref_vector.hpp:48
#define UHD_API
Definition: config.h:66
const T & operator[](size_t index) const
Index operator gets the value of rv[index].
Definition: ref_vector.hpp:67