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

Method copyFrom

src/IECore/ObjectMatrix.cpp:79–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79void ObjectMatrix::copyFrom( const Object *other, CopyContext *context )
80{
81 Object::copyFrom( other, context );
82 const ObjectMatrix *tOther = static_cast<const ObjectMatrix *>( other );
83 m_members.resize( tOther->m_members.size() );
84 for( MemberContainer::size_type i = 0; i < m_members.size(); ++i )
85 {
86 if( !tOther->m_members[i] )
87 {
88 m_members[i] = nullptr;
89 }
90 else
91 {
92 m_members[i] = context->copy<Object>( tOther->m_members[i].get() );
93 }
94 }
95 m_rows = tOther->m_rows;
96 m_columns = tOther->m_columns;
97}
98
99void ObjectMatrix::save( Object::SaveContext *context ) const
100{

Callers

nothing calls this directly

Calls 3

resizeMethod · 0.45
sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected