dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #20833
Re: GenericTensor and shared_ptr
On Wednesday January 19 2011 12:25:24 Garth N. Wells wrote:
> 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.
True!
We just need to keep our eyes open for places where this might screw the
interface.
Johan
> 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
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dolfin
> Post to : dolfin@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dolfin
> More help : https://help.launchpad.net/ListHelp
References