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

Method operator==

src/IECoreScene/PrimitiveVariable.cpp:73–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73bool PrimitiveVariable::operator==( const PrimitiveVariable &other ) const
74{
75 if( interpolation != other.interpolation )
76 {
77 return false;
78 }
79
80 if( data && other.data )
81 {
82 if( !data->isEqualTo( other.data.get() ) )
83 {
84 return false;
85 }
86 }
87 else if( data || other.data )
88 {
89 return false;
90 }
91
92 if( indices && other.indices )
93 {
94 if( !indices->isEqualTo( other.indices.get() ) )
95 {
96 return false;
97 }
98 }
99 else if( indices || other.indices )
100 {
101 return false;
102 }
103
104 return true;
105}
106
107bool PrimitiveVariable::operator!=( const PrimitiveVariable &other ) const
108{

Callers

nothing calls this directly

Calls 2

isEqualToMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected