Copying objects within cyclic relationship
From: Wallace Highsmith (wallyh010_at_adelphia.net)
Date: 10/30/04
- Next message: Daniel T.: "Re: Opinions on the Law Of Demeter"
- Previous message: Wallace Highsmith: "General OO Question"
- Next in thread: Rich MacDonald: "Re: Copying objects within cyclic relationship"
- Reply: Rich MacDonald: "Re: Copying objects within cyclic relationship"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 30 Oct 2004 16:44:41 -0400
What is a pattern for copying several objects in a cyclic relationship?
DrawObject has a list of connections
each connection has a line and its drawobject
each line has a connection on each end.
(drawobject) 1----* (connection) 2-----1 (line)
line has connection1 and connection2
Copying a drawobject, copies each connection
Copying each connection, copies a line
Copying the line, copies connection1 and connection2
Copying connection1 and connection2, copies drawObject
so i'm back where i started.
What is the best way to get out of this cyclic copy?
- Next message: Daniel T.: "Re: Opinions on the Law Of Demeter"
- Previous message: Wallace Highsmith: "General OO Question"
- Next in thread: Rich MacDonald: "Re: Copying objects within cyclic relationship"
- Reply: Rich MacDonald: "Re: Copying objects within cyclic relationship"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|