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

Function repr

src/IECorePython/RampDataBinding.cpp:60–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58
59template<class T>
60std::string repr( T &x )
61{
62 std::stringstream s;
63
64 s << "IECore." << x.typeName() << "( ";
65
66 object item( x.readable() );
67
68 assert( item.attr( "__repr__" ) != object() );
69
70 s << call_method< std::string >( item.ptr(), "__repr__" );
71
72 s << " )";
73
74 return s.str();
75}
76
77template<class T>
78static void setValue( T &that, const typename T::ValueType &v )

Callers 15

rampReprFunction · 0.70
repr<BoolVectorData>Function · 0.70
__repr__Method · 0.50
_serialiseUsingReprFunction · 0.50
__repr__Method · 0.50
testParameterMethod · 0.50
testConnectionMethod · 0.50
testReprMethod · 0.50
runPointAtVTestMethod · 0.50
testReprMethod · 0.50
testReprMethod · 0.50

Calls 2

typeNameMethod · 0.80
readableMethod · 0.80

Tested by 15

testParameterMethod · 0.40
testConnectionMethod · 0.40
testReprMethod · 0.40
runPointAtVTestMethod · 0.40
testReprMethod · 0.40
testReprMethod · 0.40
testReprMethod · 0.40
testReprMethod · 0.40
testReprMethod · 0.40
testReprMethod · 0.40
testReprMethod · 0.40