[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vtk-developers
Subject:    Re: [vtk-developers] Matrix3x3 and Matrix4x4 ShallowCopy
From:       David Doria <daviddoria+vtk () gmail ! com>
Date:       2009-11-28 23:28:58
Message-ID: c19fcadc0911281528md0ba9e2tfafaeb827386d6b4 () mail ! gmail ! com
[Download RAW message or body]

> What is the shallow copy doing differently to the deep copy? The main
> difference seems to be that Updated() is not called when appropriate with
> ShallowCopy and it uses function calls (that would be slower) to copy each
> elements value. Wouldn't s true ShallowCopy copy the pointer to the data?
> If it would be useful I could add a ShallowCopy method, but as these classes
> declare double[4][4] and double[3][3] I am not sure ShallowCopy makes sense.
> Marcus
> --
> Marcus D. Hanwell, Ph.D.
> R&D Engineer, Kitware Inc.
> (518) 881-4937

Marcus -

DeepCopy is fine - I just didn't notice it as I never need to use it.
The only reason I added ShallowCopy is that I thought there was no
copy function at all. Case closed.

David
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtk-developers

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic