| 37 | } |
| 38 | |
| 39 | inline CppClass Module::get_class( const std::string& cl ){ |
| 40 | BEGIN_RCPP |
| 41 | CLASS_MAP::iterator it = classes.find(cl) ; |
| 42 | if( it == classes.end() ) throw std::range_error( "no such class" ) ; |
| 43 | std::string buffer ; |
| 44 | return CppClass( this, it->second, buffer ) ; |
| 45 | END_RCPP |
| 46 | } |
| 47 | |
| 48 | } |
| 49 |