| 43 | } |
| 44 | |
| 45 | Layer* Layer::getPrevious() const |
| 46 | { |
| 47 | if (m_parent != NULL) { |
| 48 | LayerConstIterator it = |
| 49 | std::find(m_parent->getLayerBegin(), |
| 50 | m_parent->getLayerEnd(), this); |
| 51 | |
| 52 | if (it != m_parent->getLayerEnd() && |
| 53 | it != m_parent->getLayerBegin()) { |
| 54 | it--; |
| 55 | return *it; |
| 56 | } |
| 57 | } |
| 58 | return NULL; |
| 59 | } |
| 60 | |
| 61 | Layer* Layer::getNext() const |
| 62 | { |
no test coverage detected