| 182 | } |
| 183 | |
| 184 | OptionalUnsigned ObjectOrderBase::indexInOrder(const IddObjectType& type) const { |
| 185 | if (m_orderByIddEnum) { |
| 186 | return static_cast<unsigned>(type.value()); |
| 187 | } |
| 188 | if (m_iddOrder) { |
| 189 | auto it = getIterator(type); |
| 190 | return (unsigned)(it - m_iddOrder->begin()); |
| 191 | } |
| 192 | return boost::none; |
| 193 | } |
| 194 | |
| 195 | // PRIVATE |
| 196 |