Show
Ignore:
Timestamp:
04/07/08 02:50:33 (8 months ago)
Author:
vossg
Message:

changed: merged some merge changes back to have a running reference

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/Carsten_PtrWork2/Source/System/FieldContainer/Base/OSGRefCountPolicies.h

    r1080 r1138  
    128128}; 
    129129 
     130struct NoRefCountPolicy 
     131{ 
     132    static void addRef(FieldContainerPtrConst) 
     133    { 
     134    } 
     135    static void subRef(FieldContainerPtrConst) 
     136    { 
     137    } 
     138 
     139    template <class StoreT, class SourceT>  
     140    static void setRefd(StoreT  &pTarget, 
     141                        SourceT  pSource) 
     142    { 
     143        pTarget = pSource; 
     144    } 
     145 
     146    template<class T> 
     147    static T *validate(T *pIn) 
     148    { 
     149        return pIn; 
     150    } 
     151 
     152    template<class T> 
     153    static T &deref(T *pIn) 
     154    { 
     155        return *pIn; 
     156    } 
     157 
     158    template<class T, class U> 
     159    static void transitRefd(T *&pOut, T *&pIn) 
     160    { 
     161        OSG_ASSERT(false); 
     162    }  
     163}; 
     164 
    130165OSG_END_NAMESPACE 
    131166