| 111 | } |
| 112 | |
| 113 | bool PathMatcher::Node::operator == ( const Node &other ) const |
| 114 | { |
| 115 | if( terminator != other.terminator ) |
| 116 | { |
| 117 | return false; |
| 118 | } |
| 119 | |
| 120 | if( children.size() != other.children.size() ) |
| 121 | { |
| 122 | return false; |
| 123 | } |
| 124 | |
| 125 | for( ConstChildMapIterator it = children.begin(), eIt = children.end(); it != eIt; it++ ) |
| 126 | { |
| 127 | ConstChildMapIterator oIt = other.children.find( it->first ); |
| 128 | if( oIt == other.children.end() ) |
| 129 | { |
| 130 | return false; |
| 131 | } |
| 132 | if( !(*(it->second) == *(oIt->second) ) ) |
| 133 | { |
| 134 | return false; |
| 135 | } |
| 136 | } |
| 137 | |
| 138 | return true; |
| 139 | } |
| 140 | |
| 141 | bool PathMatcher::Node::operator != ( const Node &other ) |
| 142 | { |