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

Method keys

inst/include/Rcpp/hash/IndexHash.h:111–117  ·  view source on GitHub ↗

keys, in the order they appear in the data

Source from the content-addressed store, hash-verified

109
110 // keys, in the order they appear in the data
111 inline Vector<RTYPE> keys() const{
112 Vector<RTYPE> res = no_init(size_) ;
113 for( int i=0, j=0; j<size_; i++){
114 if( data[i] ) res[j++] = src[data[i]-1] ;
115 }
116 return res ;
117 }
118
119 int n, m, k ;
120 STORAGE* src ;

Callers 1

uniqueFunction · 0.80

Calls 1

no_initFunction · 0.85

Tested by

no test coverage detected