gambitproject / gambit

Gambit: The package for computation in game theory
http://www.gambit-project.org
GNU General Public License v2.0
400 stars 150 forks source link

Standardise interfaces for collections in game representation. #426

Closed tturocy closed 9 months ago

tturocy commented 9 months ago

This implements a standard convention for accessing collections of game elements. Where appropriate, this provides GetXXXs() functions which, at present, return Arrays of the corresponding GameObjectPtr. Similar functions are provided for support profiles.

With these changes, iterator-type access for game members is now possible consistently across using code, and this is preferred style.