MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / ~enum_

Method ~enum_

inst/include/Rcpp/Module.h:520–523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

518 name(name_), values(), parent_typeinfo_name( typeid(Parent).name() ){
519 }
520 ~enum_(){
521 Rcpp::Module* module = getCurrentScope() ;
522 module->add_enum( parent_typeinfo_name, name, values ) ;
523 }
524
525 self& value( const char* name_, Enum value_ ){
526 values.insert( PAIR( name_, static_cast<int>( value_ ) ) ) ;

Callers

nothing calls this directly

Calls 2

getCurrentScopeFunction · 0.85
add_enumMethod · 0.45

Tested by

no test coverage detected