Indirect Links

Most of the class libraries use indirect links today.
Usually, there is a class representing each container.



Problems with indirect links:

  • small loss of performance
  • much more memory
  • one-way architecture
  • allocation overhead
  • containers still buried in application classes

When to use indirect links:
  • same object in an unknown number of lists
  • objects without a common base class on the same list (bad design)