← Back to team overview

dolfin team mailing list archive

Re: Changes in dolfin::FiniteElement interface

 

Aren't conversion operators only supported for builtin types?

Johan

On Thursday May 5 2011 11:18:34 Anders Logg wrote:
> On Thu, May 05, 2011 at 11:13:58AM -0700, Johan Hake wrote:
> > Hello!
> > 
> > Recently we have had a couple of requests to add dolfin::Cell versions of
> > ufc::cell versions of methods in dolfin::FiniteElement. There are quite
> > many of the methods, and I think it looks ugly to have duplicates of all
> > of these.
> > 
> > Would it be OK to remove all dolfin::Cell versions and require C++ users
> > to generate a UFCCell, if they only have a dolfin::Cell, before they
> > call the corresponding method? We could then just add a typemap on the
> > Pythonside making it possible to call these methods using a
> > dolfin::Cell.
> > 
> > What you say?
> 
> Wouldn't it be possible (by some C++ constructor/cast magic) to make
> it work automatically with a DOLFIN Cell argument in place of a
> UFCCell?
> 
> --
> Anders
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~dolfin
> Post to     : dolfin@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dolfin
> More help   : https://help.launchpad.net/ListHelp



References