| 120 | } |
| 121 | |
| 122 | const_node_iterator node_data::begin() const { |
| 123 | if (!m_isDefined) |
| 124 | return {}; |
| 125 | |
| 126 | switch (m_type) { |
| 127 | case NodeType::Sequence: |
| 128 | return const_node_iterator(m_sequence.begin()); |
| 129 | case NodeType::Map: |
| 130 | return const_node_iterator(m_map.begin(), m_map.end()); |
| 131 | default: |
| 132 | return {}; |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | node_iterator node_data::begin() { |
| 137 | if (!m_isDefined) |