Top "Deep-copy" questions

A deep copy of an object is a separate, fully independent duplicate of that object, such that any references / pointers it holds to other objects refer to deep copies of those to which the original's refer.

Creating a shallow copy of structures in C#

I tried to search for my answer and found them in regards to C and not C# so thought of …

c# .net clone deep-copy shallow-copy
How can I create a deep clone of a DB object in Django?

I am trying to create a complete copy of a survey instance, which has several sections, and each section has …

mysql django deep-copy
deep copying a graph structure

I have a graph class with Node's, where each Node can connect to others: public class Node { List<Node&…

java data-structures clone deep-copy
Create a Deep Copy in C#

I want to make a deep copy of an object so I could change the the new copy and still …

c# deep-copy
Deep copy of PHP array of references

So $array is an array of which all elements are references. I want to append this array to another array …

php deep-copy
Call default copy constructor from within overloaded copy constructor

I need to write a copy constructor that deep copies the contents of a std::shared_ptr. However, there are …

c++ constructor shared-ptr copy-constructor deep-copy
System.arrayCopy() copies object or reference to object?

I am having a final class NameAndValue. I copied an array of NameAndValue objects using System.arrayCopy() and when I …

java arrays object copy deep-copy
Python: Implementation of shallow and deep copy constructors

It is in most of the situations easy to implement copy constructors (or overloaded assignment operator) in C++ since there …

python copy-constructor deep-copy
Shallow copy for arrays, why can't simply do newArr = oldArr?

Let's say I have an array of integers, "orig" I want to shallow copy it, so can't I just do …

java deep-copy shallow-copy
Perl: How to deep copy a blessed object?

I'm looking to do a deep (at this point, shallow may suffice) copy of a blessed object. Foo Class package …

perl oop deep-copy bless