| 65 | } ; |
| 66 | |
| 67 | class const_NamesProxy : public GenericProxy<const_NamesProxy>{ |
| 68 | public: |
| 69 | const_NamesProxy( const CLASS& v) : parent(v){} ; |
| 70 | |
| 71 | template <typename T> operator T() const; |
| 72 | |
| 73 | private: |
| 74 | const CLASS& parent; |
| 75 | |
| 76 | SEXP get() const { |
| 77 | return RCPP_GET_NAMES(parent.get__()) ; |
| 78 | } |
| 79 | |
| 80 | } ; |
| 81 | |
| 82 | NamesProxy names() { |
| 83 | return NamesProxy( static_cast<CLASS&>(*this) ) ; |