Show
Ignore:
Timestamp:
02/27/08 09:30:29 (9 months ago)
Author:
cneumann
Message:

fixed: Overzealous use of RefPtr? replaced with InternalRefPtr?

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/Carsten_PtrWork2/Source/System/FieldContainer/Node/OSGNode.cpp

    r1060 r1063  
    11711171 */ 
    11721172 
    1173 NodeRefPtr 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) 
     1173NodeTransitPtr 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) 
    11781178{ 
    11791179    std::vector<const ReflexiveContainerType *> cloneTypes; 
     
    12021202 */ 
    12031203 
    1204 NodeRefPtr cloneTree(      NodePtrConstArg      rootNode, 
    1205                      const std::vector<UInt16> &cloneGroupIds, 
    1206                      const std::vector<UInt16> &ignoreGroupIds) 
     1204NodeTransitPtr cloneTree(      NodePtrConstArg      rootNode, 
     1205                         const std::vector<UInt16> &cloneGroupIds, 
     1206                         const std::vector<UInt16> &ignoreGroupIds) 
    12071207{ 
    12081208    std::vector<const ReflexiveContainerType *> cloneTypes; 
     
    12261226 */ 
    12271227 
    1228 NodeRefPtr cloneTree(      NodePtrConstArg  rootNode, 
    1229                      const std::string     &cloneTypesString, 
    1230                      const std::string     &ignoreTypesString) 
     1228NodeTransitPtr cloneTree(      NodePtrConstArg  rootNode, 
     1229                         const std::string     &cloneTypesString, 
     1230                         const std::string     &ignoreTypesString) 
    12311231{ 
    12321232    std::vector<const ReflexiveContainerType *> cloneTypes; 
     
    12561256 */ 
    12571257 
    1258 NodeRefPtr cloneTree(       
     1258NodeTransitPtr cloneTree(       
    12591259          NodePtrConstArg                              rootNode, 
    12601260    const std::vector<const ReflexiveContainerType *> &cloneTypes, 
     
    12631263    const std::vector<UInt16>                         &ignoreGroupIds) 
    12641264{ 
    1265     NodeRefPtr rootClone; 
     1265    NodeInternalRefPtr rootClone; 
    12661266 
    12671267    if(rootNode != NullFC) 
    12681268    { 
    1269         NodeRefPtr  childClone; 
    1270         NodeCorePtr core       = rootNode->getCore(); 
     1269        NodeInternalRefPtr     childClone; 
     1270        NodeCoreInternalRefPtr core      (rootNode->getCore()); 
    12711271 
    12721272        rootClone = Node::create(); 
     
    12791279        if(core != NullFC) 
    12801280        { 
    1281                   NodeCoreRefPtr      coreClone; 
    1282             const FieldContainerType &coreType   = core->getType(); 
     1281                  NodeCoreInternalRefPtr  coreClone; 
     1282            const FieldContainerType     &coreType   = core->getType(); 
    12831283 
    12841284            // test if core type should NOT be ignored 
     
    13251325    } 
    13261326 
    1327     return rootClone
     1327    return NodeTransitPtr(rootClone)
    13281328} 
    13291329 
     
    13421342 */ 
    13431343 
    1344 NodeRefPtr 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) 
     1344NodeTransitPtr 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) 
    13491349{ 
    13501350    std::vector<const ReflexiveContainerType *> shareTypes; 
     
    13731373 */ 
    13741374 
    1375 NodeRefPtr deepCloneTree(      NodePtrConstArg      rootNode, 
    1376                          const std::vector<UInt16> &shareGroupIds, 
    1377                          const std::vector<UInt16> &ignoreGroupIds) 
     1375NodeTransitPtr deepCloneTree(      NodePtrConstArg      rootNode, 
     1376                             const std::vector<UInt16> &shareGroupIds, 
     1377                             const std::vector<UInt16> &ignoreGroupIds) 
    13781378{ 
    13791379    std::vector<const ReflexiveContainerType *> shareTypes; 
     
    13971397 */ 
    13981398 
    1399 NodeRefPtr deepCloneTree(      NodePtrConstArg  rootNode, 
    1400                          const std::string     &shareTypesString, 
    1401                          const std::string     &ignoreTypesString) 
     1399NodeTransitPtr deepCloneTree(      NodePtrConstArg  rootNode, 
     1400                             const std::string     &shareTypesString, 
     1401                             const std::string     &ignoreTypesString) 
    14021402{ 
    14031403    std::vector<const ReflexiveContainerType *> shareTypes; 
     
    14271427 */ 
    14281428 
    1429 NodeRefPtr deepCloneTree(       
     1429NodeTransitPtr deepCloneTree(       
    14301430          NodePtrConstArg                              rootNode, 
    14311431    const std::vector<const ReflexiveContainerType *> &shareTypes, 
     
    14341434    const std::vector<UInt16>                         &ignoreGroupIds) 
    14351435{ 
    1436     NodeRefPtr rootClone; 
     1436    NodeInternalRefPtr rootClone; 
    14371437 
    14381438    if(rootNode != NullFC) 
    14391439    { 
    1440         NodeRefPtr  childClone; 
    1441         NodeCorePtr core       = rootNode->getCore(); 
     1440        NodeInternalRefPtr     childClone; 
     1441        NodeCoreInternalRefPtr core      (rootNode->getCore()); 
    14421442 
    14431443        rootClone = Node::create(); 
     
    14501450        if(core != NullFC) 
    14511451        { 
    1452                   NodeCoreRefPtr      coreClone; 
    1453             const FieldContainerType &coreType   = core->getType(); 
     1452                  NodeCoreInternalRefPtr  coreClone; 
     1453            const FieldContainerType     &coreType   = core->getType(); 
    14541454 
    14551455            // test if core type should NOT be ignored 
     
    14961496    } 
    14971497 
    1498     return rootClone
     1498    return NodeTransitPtr(rootClone)
    14991499} 
    15001500