| 118 | VECTOR& parent ; |
| 119 | std::string name; |
| 120 | void set( const std::string& rhs ){ |
| 121 | R_xlen_t index = 0 ; |
| 122 | try{ |
| 123 | index = parent.offset(name) ; |
| 124 | parent[ index ] = rhs ; |
| 125 | } catch( const index_out_of_bounds& ex ){ |
| 126 | parent.push_back( rhs, name ); |
| 127 | } |
| 128 | } |
| 129 | char* get() const { |
| 130 | return parent[ parent.offset(name) ]; |
| 131 | } |