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

Method doOperation

include/IECorePython/OpBinding.h:81–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79 }
80
81 IECore::ObjectPtr doOperation( const IECore::CompoundObject * operands ) override
82 {
83 ScopedGILLock gilLock;
84 boost::python::object o = this->methodOverride( "doOperation" );
85 if( o )
86 {
87 IECore::ObjectPtr r = boost::python::extract<IECore::ObjectPtr>( o( IECore::CompoundObjectPtr( const_cast<IECore::CompoundObject *>( operands ) ) ) );
88 if( !r )
89 {
90 throw IECore::Exception( "doOperation() python method didn't return an Object." );
91 }
92 return r;
93 }
94 else
95 {
96 throw IECore::Exception( "doOperation() python method not defined" );
97 }
98 }
99
100};
101

Callers

nothing calls this directly

Calls 1

methodOverrideMethod · 0.80

Tested by

no test coverage detected