- Timestamp:
- 02/27/08 09:30:29 (9 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/Carsten_PtrWork2/Source/System/FieldContainer/Node/OSGNode.cpp
r1060 r1063 1171 1171 */ 1172 1172 1173 Node RefPtr cloneTree( NodePtrConstArg rootNode,1174 const std::vector<std::string> &cloneTypeNames,1175 const std::vector<std::string> &ignoreTypeNames,1176 const std::vector<std::string> &cloneGroupNames,1177 const std::vector<std::string> &ignoreGroupNames)1173 NodeTransitPtr cloneTree( NodePtrConstArg rootNode, 1174 const std::vector<std::string> &cloneTypeNames, 1175 const std::vector<std::string> &ignoreTypeNames, 1176 const std::vector<std::string> &cloneGroupNames, 1177 const std::vector<std::string> &ignoreGroupNames) 1178 1178 { 1179 1179 std::vector<const ReflexiveContainerType *> cloneTypes; … … 1202 1202 */ 1203 1203 1204 Node RefPtr cloneTree( NodePtrConstArg rootNode,1205 const std::vector<UInt16> &cloneGroupIds,1206 const std::vector<UInt16> &ignoreGroupIds)1204 NodeTransitPtr cloneTree( NodePtrConstArg rootNode, 1205 const std::vector<UInt16> &cloneGroupIds, 1206 const std::vector<UInt16> &ignoreGroupIds) 1207 1207 { 1208 1208 std::vector<const ReflexiveContainerType *> cloneTypes; … … 1226 1226 */ 1227 1227 1228 Node RefPtr cloneTree( NodePtrConstArg rootNode,1229 const std::string &cloneTypesString,1230 const std::string &ignoreTypesString)1228 NodeTransitPtr cloneTree( NodePtrConstArg rootNode, 1229 const std::string &cloneTypesString, 1230 const std::string &ignoreTypesString) 1231 1231 { 1232 1232 std::vector<const ReflexiveContainerType *> cloneTypes; … … 1256 1256 */ 1257 1257 1258 Node RefPtr cloneTree(1258 NodeTransitPtr cloneTree( 1259 1259 NodePtrConstArg rootNode, 1260 1260 const std::vector<const ReflexiveContainerType *> &cloneTypes, … … 1263 1263 const std::vector<UInt16> &ignoreGroupIds) 1264 1264 { 1265 Node RefPtr rootClone;1265 NodeInternalRefPtr rootClone; 1266 1266 1267 1267 if(rootNode != NullFC) 1268 1268 { 1269 Node RefPtrchildClone;1270 NodeCore Ptr core = rootNode->getCore();1269 NodeInternalRefPtr childClone; 1270 NodeCoreInternalRefPtr core (rootNode->getCore()); 1271 1271 1272 1272 rootClone = Node::create(); … … 1279 1279 if(core != NullFC) 1280 1280 { 1281 NodeCore RefPtrcoreClone;1282 const FieldContainerType &coreType = core->getType();1281 NodeCoreInternalRefPtr coreClone; 1282 const FieldContainerType &coreType = core->getType(); 1283 1283 1284 1284 // test if core type should NOT be ignored … … 1325 1325 } 1326 1326 1327 return rootClone;1327 return NodeTransitPtr(rootClone); 1328 1328 } 1329 1329 … … 1342 1342 */ 1343 1343 1344 Node RefPtr deepCloneTree( NodePtrConstArg rootNode,1345 const std::vector<std::string> &shareTypeNames,1346 const std::vector<std::string> &ignoreTypeNames,1347 const std::vector<std::string> &shareGroupNames,1348 const std::vector<std::string> &ignoreGroupNames)1344 NodeTransitPtr deepCloneTree( NodePtrConstArg rootNode, 1345 const std::vector<std::string> &shareTypeNames, 1346 const std::vector<std::string> &ignoreTypeNames, 1347 const std::vector<std::string> &shareGroupNames, 1348 const std::vector<std::string> &ignoreGroupNames) 1349 1349 { 1350 1350 std::vector<const ReflexiveContainerType *> shareTypes; … … 1373 1373 */ 1374 1374 1375 Node RefPtr deepCloneTree( NodePtrConstArg rootNode,1376 const std::vector<UInt16> &shareGroupIds,1377 const std::vector<UInt16> &ignoreGroupIds)1375 NodeTransitPtr deepCloneTree( NodePtrConstArg rootNode, 1376 const std::vector<UInt16> &shareGroupIds, 1377 const std::vector<UInt16> &ignoreGroupIds) 1378 1378 { 1379 1379 std::vector<const ReflexiveContainerType *> shareTypes; … … 1397 1397 */ 1398 1398 1399 Node RefPtr deepCloneTree( NodePtrConstArg rootNode,1400 const std::string &shareTypesString,1401 const std::string &ignoreTypesString)1399 NodeTransitPtr deepCloneTree( NodePtrConstArg rootNode, 1400 const std::string &shareTypesString, 1401 const std::string &ignoreTypesString) 1402 1402 { 1403 1403 std::vector<const ReflexiveContainerType *> shareTypes; … … 1427 1427 */ 1428 1428 1429 Node RefPtr deepCloneTree(1429 NodeTransitPtr deepCloneTree( 1430 1430 NodePtrConstArg rootNode, 1431 1431 const std::vector<const ReflexiveContainerType *> &shareTypes, … … 1434 1434 const std::vector<UInt16> &ignoreGroupIds) 1435 1435 { 1436 Node RefPtr rootClone;1436 NodeInternalRefPtr rootClone; 1437 1437 1438 1438 if(rootNode != NullFC) 1439 1439 { 1440 Node RefPtrchildClone;1441 NodeCore Ptr core = rootNode->getCore();1440 NodeInternalRefPtr childClone; 1441 NodeCoreInternalRefPtr core (rootNode->getCore()); 1442 1442 1443 1443 rootClone = Node::create(); … … 1450 1450 if(core != NullFC) 1451 1451 { 1452 NodeCore RefPtrcoreClone;1453 const FieldContainerType &coreType = core->getType();1452 NodeCoreInternalRefPtr coreClone; 1453 const FieldContainerType &coreType = core->getType(); 1454 1454 1455 1455 // test if core type should NOT be ignored … … 1496 1496 } 1497 1497 1498 return rootClone;1498 return NodeTransitPtr(rootClone); 1499 1499 } 1500 1500
