Show
Ignore:
Timestamp:
04/02/08 14:18:07 (8 months ago)
Author:
cneumann
Message:

replaced pointer field implementation
split FieldContainer/Fields? directory into Base and Handle subdir

Status: - ref counting seems to work (mt, cluster)

  • new OSB loader works (well, the unittest does)
  • VRML loader is deactivated
  • get/edit handle for dynamic (pointer) fields missing
  • need to remove some more old files - they get moved in this commit
  • generated (i.e. base) code in following commit
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/Carsten_PtrWork2/Source/System/FieldContainer/Base/OSGRefCountPointer.inl

    r1070 r1072  
    282282template <class LHSObjectT, class LHSRefCountPolicyT, 
    283283          class RHSObjectT, class RHSRefCountPolicyT > 
    284 bool 
    285 operator==(RefCountPointer<LHSObjectT,  
    286                            LHSRefCountPolicyT> const &lhs, 
    287            RefCountPointer<RHSObjectT, 
    288                            RHSRefCountPolicyT> const &rhs) 
     284inline bool 
     285    operator==(RefCountPointer<LHSObjectT,  
     286                               LHSRefCountPolicyT> const &lhs, 
     287               RefCountPointer<RHSObjectT, 
     288                               RHSRefCountPolicyT> const &rhs) 
    289289{ 
    290290    return (lhs.get() == rhs.get()); 
     291} 
     292 
     293template <class LHSObjectT, class LHSRefCountPolicyT, 
     294          class RHSObjectT                           > 
     295inline bool 
     296    operator==(RefCountPointer<LHSObjectT, 
     297                               LHSRefCountPolicyT> const &lhs, 
     298               RHSObjectT *                        const  rhs ) 
     299{ 
     300    return (lhs.get() == rhs); 
     301} 
     302 
     303template <class LHSObjectT,  
     304          class RHSObjectT, class RHSRefCountPolicyT> 
     305inline bool 
     306    operator==(LHSObjectT *                        const  lhs, 
     307               RefCountPointer<RHSObjectT, 
     308                               RHSRefCountPolicyT> const &rhs ) 
     309{ 
     310    return (lhs == rhs.get()); 
    291311} 
    292312 
     
    303323 
    304324template <class LHSObjectT, class LHSRefCountPolicyT, 
     325          class RHSObjectT                           > 
     326bool 
     327    operator!=(RefCountPointer<LHSObjectT, 
     328                               LHSRefCountPolicyT> const &lhs, 
     329               RHSObjectT *                        const  rhs ) 
     330{ 
     331    return !(lhs == rhs); 
     332} 
     333 
     334template <class LHSObjectT,  
     335          class RHSObjectT, class RHSRefCountPolicyT> 
     336bool 
     337    operator!=(LHSObjectT *                        const  lhs, 
     338               RefCountPointer<RHSObjectT, 
     339                               RHSRefCountPolicyT> const &rhs ) 
     340{ 
     341    return !(lhs == rhs); 
     342} 
     343 
     344template <class LHSObjectT, class LHSRefCountPolicyT, 
    305345          class RHSObjectT, class RHSRefCountPolicyT > 
    306346bool