← Back to team overview

dolfin team mailing list archive

Re: GenericTensor and shared_ptr

 


On 19/01/11 20:16, Johan Hake wrote:
> Hello!
> 
> GenericTensors and its derived classes are now stored using shared_ptr. SWIG 
> provides dereference typemaps to all reference and value calls. 
> 

Very nice. This should provide a smooth experience in Python since
standard Python objects are more or less shared pointers.

Garth

> It should now be straight forward to add shared_ptr functions in the C++ 
> interface, like the one Garth implemented for BlockFoo. 
> 
> If the interface is extended with shared_ptr version of a method, remember to 
> %ignore the reference version (if excisting).
> 
> Johan
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~dolfin
> Post to     : dolfin@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dolfin
> More help   : https://help.launchpad.net/ListHelp



Follow ups

References