comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Managing several object instances
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Managing several object instances [message #81483 is a reply to message #81481] Wed, 19 September 2012 07:12 Go to previous messageGo to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Hello,

Without addressing the "why are you doing this", what about:

1) using a List, or a Hash, object to store your objects? You can use
their Add (for Lists)
and Remove methods to manage your own object collection.
2) create your own object handling class that inherits the IDL_Container
class - which
also has its own Add and Remove methods

I was also going to suggest extending (2) a bit an generate your own
linked list, but I don't
think your usage requires a linked list.

I would start with (1) since lists are a subclass of IDL_Container already:

IDL> x=list()
IDL> help, x, /object
** Object class LIST, 2 direct superclasses, 1 known method
Superclasses:
COLLECTION <Direct>
IDL_OBJECT
IDL_CONTAINER <Direct>
Known Function Methods:
LIST::INIT


cheers,

paulv
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: evenly spaced vector
Next Topic: Basic cgMap and cgMapPlotS tutorial

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 12:44:45 PDT 2025

Total time taken to generate the page: 1.84043 seconds