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

Method methods_voidness

inst/include/Rcpp/module/class.h:361–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359 }
360
361 Rcpp::LogicalVector methods_voidness(){
362 size_t n = 0 ;
363 size_t s = vec_methods.size() ;
364 typename map_vec_signed_method::iterator it = vec_methods.begin( ) ;
365 for( size_t i=0; i<s; i++, ++it){
366 n += (it->second)->size() ;
367 }
368 Rcpp::CharacterVector mnames(n) ;
369 Rcpp::LogicalVector res(n) ;
370 it = vec_methods.begin() ;
371 size_t k = 0 ;
372 for( size_t i=0; i<s; i++, ++it){
373 n = (it->second)->size() ;
374 std::string name = it->first ;
375 typename vec_signed_method::iterator m_it = (it->second)->begin() ;
376 for( size_t j=0; j<n; j++, k++, ++m_it){
377 mnames[k] = name ;
378 res[k] = (*m_it)->is_void() ;
379 }
380 }
381 res.names( ) = mnames ;
382 return res ;
383 }
384
385
386 Rcpp::CharacterVector property_names(){

Callers 1

RCPP_FUN_1Function · 0.45

Calls 4

namesMethod · 0.80
sizeMethod · 0.45
beginMethod · 0.45
is_voidMethod · 0.45

Tested by

no test coverage detected