MCPcopy Create free account
hub / github.com/ImageEngine/cortex / isEqualTo

Method isEqualTo

src/IECore/CompoundFrameList.cpp:127–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127bool CompoundFrameList::isEqualTo( ConstFrameListPtr other ) const
128{
129 if ( !FrameList::isEqualTo( other ) )
130 {
131 return false;
132 }
133
134 ConstCompoundFrameListPtr otherF = assertedStaticCast< const CompoundFrameList >( other );
135
136 if ( getFrameLists().size() != otherF->getFrameLists().size() )
137 {
138 return false;
139 }
140
141 for ( std::vector< FrameListPtr >::size_type i = 0; i < getFrameLists().size(); i++ )
142 {
143 if ( !getFrameLists()[i]->isEqualTo( otherF->getFrameLists()[i] ) )
144 {
145 return false;
146 }
147 }
148
149 return true;
150}
151
152FrameListPtr CompoundFrameList::copy() const
153{

Callers

nothing calls this directly

Calls 2

getFrameListsFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected