CellML Discussion List

Text archives Help


[cellml-discussion] CellML API: clone operation?


Chronological Thread 
  • From: p.nielsen at auckland.ac.nz (Poul Nielsen)
  • Subject: [cellml-discussion] CellML API: clone operation?
  • Date: Mon, 24 Apr 2006 16:36:09 +1200

Dear Andrew

Looks OK to me. It hurts to see 'alternate' as an adjective instead
of 'alternative' - how did that get through?

Best wishes
Poul

On 2006 Apr 24, at 13:08, Andrew Miller wrote:

> Hi all,
>
> It seems that we never defined a clone operation in the CellML API,
> and it seems
> that this would be very useful.
>
> We do have a getAlternateVersion(), which performs a deep clone and
> changes
> namespaces at the same time, which could be (ab/re-)used to perform
> clones, but
> it seems that we still should have a pure clone() on model(or
> perhaps better,
> CellMLElement). It could take a deep parameter, like DOM nodes do...
>
> /**
> * Clones a CellMLElement, and optionally all children.
> * This will not clone the contents of imported models.
> * @param deep If false, only clones the element. It will then have
> no children.
> * If true, clones the element, and its children, which
> are added
> * into the new element.
> */
> CellMLElement clone(bool deep);
>
> Opinions?
>
> Best regards,
> Andrew Miller
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
> _______________________________________________
> cellml-discussion mailing list
> cellml-discussion at cellml.org
> http://www.cellml.org/mailman/listinfo/cellml-discussion





Archive powered by MHonArc 2.6.18.

Top of page