MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / AsDouble

Function AsDouble

src/OpenColorIO/DynamicProperty.cpp:18–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16namespace DynamicPropertyValue
17{
18DynamicPropertyDoubleRcPtr AsDouble(DynamicPropertyRcPtr & prop)
19{
20 auto res = OCIO_DYNAMIC_POINTER_CAST<DynamicPropertyDouble>(prop);
21 if (res) return res;
22 throw Exception("Dynamic property value is not a double.");
23}
24DynamicPropertyGradingPrimaryRcPtr AsGradingPrimary(DynamicPropertyRcPtr & prop)
25{
26 auto res = OCIO_DYNAMIC_POINTER_CAST<DynamicPropertyGradingPrimary>(prop);

Callers 7

getDoubleFunction · 0.85
setDoubleFunction · 0.85
AddPropertyFunction · 0.85
ECRetestMethod · 0.85
OCIO_ADD_TESTFunction · 0.85
OCIO_ADD_TESTFunction · 0.85

Calls

no outgoing calls

Tested by 4

ECRetestMethod · 0.68
OCIO_ADD_TESTFunction · 0.68
OCIO_ADD_TESTFunction · 0.68