57 _objectsByID.insert(std::make_pair(
object.getID(), &
object));
58 _objectsByTag.insert(std::make_pair(
object.getTag(), &
object));
67 std::pair<ObjectTagMap::iterator, ObjectTagMap::iterator> tag =
70 for (ObjectTagMap::iterator o = tag.first; o != tag.second; ++o) {
71 if (o->second == &
object) {
A class holding an UTF-8 string.
ObjectTagMap _objectsByTag
Object * getFirstObject() const
Return the first object.
Basic exceptions to throw.
ObjectSearch * findObjectsByTag(const Common::UString &tag) const
Return a search context to iterate over all objects with this tag.
ObjectSearch * findObjects() const
Return a search context to iterate over all objects.
void removeObject(Object &object)
Remove an object from this container.
Object * get()
Return the current object in the search context.
Convenience class that locks a mutex on creation and unlocks it on destruction.
Basic type definitions to handle files used in BioWare's Aurora engine.
Object * getObjectByID(uint32 id) const
Find a specific object by ID.
An NWScript object container.
Object * getFirstObjectByTag(const Common::UString &tag) const
Return the first object with this tag.
void addObject(Object &object)
Add an object to this container.