MCPcopy Create free account
hub / github.com/ImageEngine/cortex / operator ==

Method operator ==

src/IECore/PathMatcher.cpp:113–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113bool 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
141bool PathMatcher::Node::operator != ( const Node &other )
142{

Callers

nothing calls this directly

Calls 4

sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected