| 101 | } |
| 102 | |
| 103 | void LookParseResult::reverse() |
| 104 | { |
| 105 | // m_options itself should NOT be reversed. |
| 106 | // The individual looks |
| 107 | // need to be applied in the inverse direction. But, the precedence |
| 108 | // for which option to apply is to be maintained! |
| 109 | |
| 110 | for (unsigned int optionindex=0; optionindex<m_options.size(); ++optionindex) |
| 111 | { |
| 112 | std::reverse(m_options[optionindex].begin(), m_options[optionindex].end()); |
| 113 | |
| 114 | for (unsigned int tokenindex=0; tokenindex<m_options[optionindex].size(); ++tokenindex) |
| 115 | { |
| 116 | m_options[optionindex][tokenindex].dir = |
| 117 | GetInverseTransformDirection(m_options[optionindex][tokenindex].dir); |
| 118 | } |
| 119 | } |
| 120 | } |
| 121 | } // namespace OCIO_NAMESPACE |
| 122 | |