binding for items method
| 240 | |
| 241 | /// binding for items method |
| 242 | static list |
| 243 | items( CompoundData &x ) |
| 244 | { |
| 245 | list newList; |
| 246 | const CompoundDataMap &xData = x.readable(); |
| 247 | CompoundDataMap::const_iterator iterX = xData.begin(); |
| 248 | while ( iterX != xData.end() ) |
| 249 | { |
| 250 | newList.append( boost::python::make_tuple( iterX->first.value(), iterX->second ) ); |
| 251 | iterX++; |
| 252 | } |
| 253 | return newList; |
| 254 | } |
| 255 | |
| 256 | /// binding for keys method |
| 257 | static list |