MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / get_indices

Method get_indices

inst/include/Rcpp/vector/Subsetter.h:150–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148 }
149
150 void get_indices( traits::identity< traits::int2type<INTSXP> > t ) {
151 indices.reserve(rhs_n);
152 int* ptr = INTEGER(rhs); // ok to use int * here, we'll catch any problems inside check_indices
153 check_indices(ptr, rhs_n, lhs_n);
154 for (R_xlen_t i=0; i < rhs_n; ++i) {
155 indices.push_back( rhs[i] );
156 }
157 indices_n = rhs_n;
158 }
159
160 void get_indices( traits::identity< traits::int2type<REALSXP> > t ) {
161 indices.reserve(rhs_n);

Callers

nothing calls this directly

Calls 4

stopFunction · 0.85
findFunction · 0.85
push_backMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected