Show
Ignore:
Timestamp:
04/18/08 04:05:46 (6 months ago)
Author:
vossg
Message:

changed: cleanup old pointer typedefs

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Source/System/Action/Base/OSGAction.h

    r1160 r1177  
    9191    //----------------------------------------------------------------------- 
    9292 
    93     typedef boost::function<ResultE(NodeCorePtrConstArg,  
    94                                     Action             *)> Functor; 
    95     typedef boost::function<ResultE(NodePtrConstArg,    
    96                                     Action             *)> NodeFunctor;  
     93    typedef boost::function<ResultE(const NodeCorePtr,  
     94                                          Action     *)> Functor; 
     95    typedef boost::function<ResultE(const NodePtr,    
     96                                          Action     *)> NodeFunctor;  
    9797 
    9898    typedef ActionBase::ResultE (NodeCore::*Callback)(Action *); 
     
    144144    // application 
    145145 
    146     virtual ResultE apply(std::vector<NodePtr>::iterator begin,  
    147                           std::vector<NodePtr>::iterator end  ); 
    148  
    149     virtual ResultE apply(NodePtrConstArg                node ); 
     146    virtual ResultE apply(      std::vector<NodePtr>::iterator begin,  
     147                                std::vector<NodePtr>::iterator end  ); 
     148 
     149    virtual ResultE apply(const NodePtr                        node ); 
    150150 
    151151    /*------------------------- your_category -------------------------------*/ 
     
    159159    // after the graph traversal 
    160160     
    161     void setActNode(NodePtrConstArg node); 
     161    void setActNode(const NodePtr node); 
    162162 
    163163    /*------------------------- your_category -------------------------------*/ 
     
    175175    // only the added nodes will be traversed. 
    176176     
    177     void         addNode    (NodePtrConstArg node); 
     177    void         addNode    (const NodePtr node); 
    178178 
    179179    // Common case: going through the children list and picking up some of  
     
    192192 
    193193    // recurse through the node 
    194     ResultE recurse(NodePtrConstArg node); 
     194    ResultE recurse(const NodePtr node); 
    195195 
    196196    /*------------------------- comparison ----------------------------------*/ 
     
    233233    // call the single node. used for cascading actions 
    234234     
    235     inline ResultE callEnter(NodeCorePtrConstArg core);    
    236     inline ResultE callLeave(NodeCorePtrConstArg core); 
     235    inline ResultE callEnter(const NodeCorePtr core);    
     236    inline ResultE callLeave(const NodeCorePtr core); 
    237237 
    238238    // start/stop functions for the action. 
     
    256256    // default function 
    257257     
    258     static ResultE _defaultEnterFunction(NodeCorePtrConstArg  node,  
    259                                          Action              *action); 
    260     static ResultE _defaultLeaveFunction(NodeCorePtrConstArg  node,  
    261                                          Action              *action); 
     258    static ResultE _defaultEnterFunction(const NodeCorePtr  node,  
     259                                               Action      *action); 
     260    static ResultE _defaultLeaveFunction(const NodeCorePtr  node,  
     261                                               Action      *action); 
    262262 
    263263    // functors 
     
    346346 
    347347typedef boost::function< 
    348           Action::ResultE (NodePtrConstArg)> TraverseEnterFunctor; 
     348          Action::ResultE (const NodePtr        )> TraverseEnterFunctor; 
    349349typedef boost::function< 
    350           Action::ResultE (NodePtrConstArg,  
    351                            Action::ResultE)> TraverseLeaveFunctor; 
     350          Action::ResultE (const NodePtr,  
     351                                 Action::ResultE)> TraverseLeaveFunctor; 
    352352 
    353353 
     
    363363 
    364364OSG_SYSTEM_DLLMAPPING 
    365 ActionBase::ResultE traverse(NodePtrConstArg       root,  
    366                              TraverseEnterFunctor  func); 
     365ActionBase::ResultE traverse(const NodePtr               root,  
     366                                   TraverseEnterFunctor  func); 
    367367OSG_SYSTEM_DLLMAPPING 
    368368ActionBase::ResultE traverse(const std::vector<NodePtr> &nodeList,  
     
    374374                             
    375375OSG_SYSTEM_DLLMAPPING 
    376 ActionBase::ResultE traverse(NodePtrConstArg       root,  
    377                              TraverseEnterFunctor  enter,  
    378                              TraverseLeaveFunctor  leave); 
     376ActionBase::ResultE traverse(const NodePtr               root,  
     377                                   TraverseEnterFunctor  enter,  
     378                                   TraverseLeaveFunctor  leave); 
    379379OSG_SYSTEM_DLLMAPPING 
    380380ActionBase::ResultE traverse(const std::vector<NodePtr> &nodeList,