| 338 | } |
| 339 | |
| 340 | OpRcPtrVec OpRcPtrVec::invert() const |
| 341 | { |
| 342 | OpRcPtrVec inverted; |
| 343 | |
| 344 | OpRcPtrVec::const_reverse_iterator iter = m_ops.rbegin(); |
| 345 | OpRcPtrVec::const_reverse_iterator end = m_ops.rend(); |
| 346 | for (; iter!=end; ++iter) |
| 347 | { |
| 348 | ConstOpRcPtr op = *iter; |
| 349 | if (op->isNoOpType()) |
| 350 | { |
| 351 | // Keep track of the information. |
| 352 | inverted.push_back(op->clone()); |
| 353 | } |
| 354 | else |
| 355 | { |
| 356 | ConstOpDataRcPtr data = op->data(); |
| 357 | CreateOpVecFromOpData(inverted, data, TRANSFORM_DIR_INVERSE); |
| 358 | } |
| 359 | } |
| 360 | |
| 361 | return inverted; |
| 362 | } |
| 363 | |
| 364 | void OpRcPtrVec::validate() const |
| 365 | { |