40 #ifndef HANDLEVECTOR_HPP
41 #define HANDLEVECTOR_HPP 1
46 #include "R_ext/Error.h"
65 template <
typename T, SEXPTYPE ST>
70 typedef typename Vector::const_iterator const_iterator;
81 :
VectorBase(ST, sz), m_data(sz, Handle<T>(init))
95 for (
unsigned int i = 0; i < m_data.size(); ++i) {
97 Handle<T> handle(pattern.m_data[i]);
111 return m_data[index];
123 return m_data[index];
133 return m_data.begin();
141 const_iterator
end()
const
178 friend class ElementProxy;
181 template <
typename T, SEXPTYPE ST>
187 template <
typename T, SEXPTYPE ST>
194 template <
typename T, SEXPTYPE ST>
198 typename Vector::const_iterator end = m_data.end();
199 for (
typename Vector::const_iterator it = m_data.begin();
208 #endif // HANDLEVECTOR_HPP