| 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 |
nothing calls this directly
no test coverage detected