| 274 | class VectorExternalPtrInput { |
| 275 | public: |
| 276 | explicit VectorExternalPtrInput(SEXP self) : vec_(XLENGTH(self)) { |
| 277 | R_xlen_t i = 0; |
| 278 | for (auto& element : vec_) { |
| 279 | element = *r6_to_pointer<const T*>(VECTOR_ELT(self, i++)); |
| 280 | } |
| 281 | } |
| 282 | operator const std::vector<T>&() const { return vec_; } |
| 283 | |
| 284 | private: |
nothing calls this directly
no outgoing calls
no test coverage detected