MCPcopy Create free account
hub / github.com/alembic/alembic / getPythonArray

Function getPythonArray

python/PyAlembic/PyIArrayProperty.cpp:45–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43
44template<class TPTraits>
45static object getPythonArray( AbcA::ArraySamplePtr& iSampPtr )
46{
47 typedef Abc::TypedArraySample<TPTraits> samp_type;
48 typedef AbcU::shared_ptr<samp_type> samp_type_ptr;
49
50 samp_type_ptr typedSampPtr =
51 AbcU::static_pointer_cast<samp_type>( iSampPtr );
52
53 typename return_by_value::apply<samp_type_ptr>::type converter;
54
55 return object( handle<>( converter( typedSampPtr ) ) );
56}
57
58//-*****************************************************************************
59#define CASE_RETURN_ARRAY_VALUE( TPTraits, iSampPtr ) \

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected