|
|
@ -154,13 +154,13 @@ public:
|
|
|
|
template<typename T>
|
|
|
|
template<typename T>
|
|
|
|
SharedPtr<T> GetCopyObject(size_t index) {
|
|
|
|
SharedPtr<T> GetCopyObject(size_t index) {
|
|
|
|
ASSERT(index < copy_objects.size());
|
|
|
|
ASSERT(index < copy_objects.size());
|
|
|
|
return DynamicObjectCast(copy_objects[index]);
|
|
|
|
return DynamicObjectCast<T>(copy_objects[index]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
template<typename T>
|
|
|
|
template<typename T>
|
|
|
|
SharedPtr<T> GetMoveObject(size_t index) {
|
|
|
|
SharedPtr<T> GetMoveObject(size_t index) {
|
|
|
|
ASSERT(index < move_objects.size());
|
|
|
|
ASSERT(index < move_objects.size());
|
|
|
|
return DynamicObjectCast(move_objects[index]);
|
|
|
|
return DynamicObjectCast<T>(move_objects[index]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void AddMoveObject(SharedPtr<Object> object) {
|
|
|
|
void AddMoveObject(SharedPtr<Object> object) {
|
|
|
|