comparison engine/core/model/structures/layer.h @ 91:e7b55b2b398f

Corrected Layer::addInstance() to return appropriate bool. Added the function to layer.i for swig
author Sleek@33b003aa-7bff-0310-803a-e67f0ece8222
date Sat, 19 Jul 2008 12:14:51 +0000
parents 9855464762c1
children 64e7fe3d4288
comparison
equal deleted inserted replaced
90:9855464762c1 91:e7b55b2b398f
133 Instance* createInstance(Object* object, const ExactModelCoordinate& p, const std::string& id=""); 133 Instance* createInstance(Object* object, const ExactModelCoordinate& p, const std::string& id="");
134 134
135 /** Add a valid instance at a specific position. This is temporary. It will be moved to a higher level 135 /** Add a valid instance at a specific position. This is temporary. It will be moved to a higher level
136 later so that we can ensure that each Instance only lives in one layer. 136 later so that we can ensure that each Instance only lives in one layer.
137 */ 137 */
138 Instance* Layer::addInstance(Instance* instance, const ExactModelCoordinate& p); 138 bool addInstance(Instance* instance, const ExactModelCoordinate& p);
139 139
140 /** Remove an instance from the layer 140 /** Remove an instance from the layer
141 */ 141 */
142 void deleteInstance(Instance* object); 142 void deleteInstance(Instance* object);
143 143