comparison engine/core/model/structures/instance.h @ 99:64e7fe3d4288

- added possibility to change instance ids - speedup instances by removing uniqueness check for ids, that means the client has to provide unique ids or live with on unique ids - added possibility to list all instances with a given id
author spq@33b003aa-7bff-0310-803a-e67f0ece8222
date Tue, 22 Jul 2008 10:04:16 +0000
parents 90005975cdbb
children 56ac89189bc4
comparison
equal deleted inserted replaced
98:214e3eb81eb2 99:64e7fe3d4288
87 virtual ~Instance(); 87 virtual ~Instance();
88 88
89 /** Get the identifier for this instance; possibly null. 89 /** Get the identifier for this instance; possibly null.
90 */ 90 */
91 const std::string& getId() { return m_id; } 91 const std::string& getId() { return m_id; }
92
93 /** Set the identifier for this instance.
94 */
95 void setId(const std::string& identifier="");
92 96
93 /** Gets object where this instance is instantiated from 97 /** Gets object where this instance is instantiated from
94 */ 98 */
95 Object* getObject() { return m_object; } 99 Object* getObject() { return m_object; }
96 100