Thread: Need some help
View Single Post
Old March 10th, 2003, 01:31 PM     #3 (permalink)
Martee
Member
 
Join Date: Feb 2002
Posts: 161
I would recommend taking advantage of the data structures offered by the STL. Specifically, I would store the 'object database' as an STL map, with a string representing the object's name as the key, and a pointer to the object as the value. Using a map would make the three operations you listed fairly trivial.
Martee is offline   Reply With Quote