• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. [SKILL++] get the list of instances of a Class

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 13720
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

[SKILL++] get the list of instances of a Class

GiuseppeGreco
GiuseppeGreco over 5 years ago

Hello,

is there a way to retrieve the list of instances of a Class?

Le'ts suppose:

defclass( A() ())

i1 = makeInstance('A)

i2 = makeInstance('A)

How can I get the object defined in i1 and i2 without using support variables?

Best regards,

Giuseppe

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 5 years ago

    Hi Giuseppe,

    I don't believe there is any function to do this. You could write an initializeInstance method to collect a list of all instances as they are allocated, but the problem with doing this is that it would prevent garbage collection of the objects. So not a good idea.

    Why would you need to do this?

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 5 years ago

    Hi Giuseppe,

    I don't believe there is any function to do this. You could write an initializeInstance method to collect a list of all instances as they are allocated, but the problem with doing this is that it would prevent garbage collection of the objects. So not a good idea.

    Why would you need to do this?

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • GiuseppeGreco
    GiuseppeGreco over 5 years ago in reply to Andrew Beckett

    Hello Andrew, 

    actually, as you suggest,  now I'm collecting instances in a list and manage it in a proper way. I was curios to understand if it was there an alternative way to do that. There is not a specific need behind this request, I'm just trying to learn something about Skll++..

    As usual, thank you for your fast feedback!  :-)

    Giuseppe

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information