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

Function operator==

src/OpenColorIO/DynamicProperty.cpp:50–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50bool operator==(const DynamicProperty &lhs, const DynamicProperty &rhs)
51{
52 if (lhs.getType() != rhs.getType()) return false;
53
54 DynamicPropertyImpl const * plhs = dynamic_cast<DynamicPropertyImpl const*>(&lhs);
55 DynamicPropertyImpl const * prhs = dynamic_cast<DynamicPropertyImpl const*>(&rhs);
56 if (plhs && prhs)
57 {
58 return plhs->equals(*prhs);
59 }
60 throw Exception("Unknown DynamicProperty implementation.");
61}
62
63DynamicPropertyImpl::DynamicPropertyImpl(DynamicPropertyType type, bool dynamic)
64 : m_type(type)

Callers

nothing calls this directly

Calls 2

getTypeMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected