Changeset 2958
- Timestamp:
- 04/27/06 18:35:57 (3 years ago)
- Files:
-
- hydranode/hnbase/object.cpp (modified) (1 diff)
- hydranode/hnbase/object.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
hydranode/hnbase/object.cpp
r2956 r2958 266 266 } 267 267 268 Object* Object::findChild(ObjectId id) const { 269 if (m_children) { 270 CIter i = m_children->find(id); 271 if (i != m_children->end()) { 272 return (*i).second; 273 } 274 } 275 return 0; 276 } 277 268 278 // Convenience functions 269 279 void Object::onChildAdded(ObjectId) {} hydranode/hnbase/object.h
r2956 r2958 217 217 */ 218 218 boost::signal<void (Object*, ObjectEvent)> objectNotify; 219 220 /** 221 * Searches this objects children for an object. This is faster than 222 * using the static findObject() method due to the smaller size of the 223 * map. 224 * 225 * @param id Id to search for 226 * @returns Pointer to object if found, null if not found 227 */ 228 Object* findChild(ObjectId id) const; 219 229 220 230 //! Static accessors for locating an object with a specific identifier
