MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/Imath / operator ==

Function operator ==

src/python/PyImath/PyImathStringArray.cpp:219–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217
218template<class T>
219FixedArray<int> operator == (const StringArrayT<T> &a0, const StringArrayT<T> &a1) {
220 size_t len = a0.match_dimension(a1);
221 FixedArray<int> f(len);
222 const StringTableT<T> &t0 = a0.stringTable();
223 const StringTableT<T> &t1 = a1.stringTable();
224 for (size_t i=0;i<len;++i) {
225 f[i] = t0.lookup(a0[i])==t1.lookup(a1[i]);
226 }
227 return f;
228}
229
230template<class T>
231FixedArray<int> operator == (const StringArrayT<T> &a0, const T &v1) {

Callers

nothing calls this directly

Calls 4

lookupMethod · 0.80
hasStringMethod · 0.80
match_dimensionMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected