Show
Ignore:
Timestamp:
12/12/07 18:00:42 (9 months ago)
Author:
cneumann
Message:

added: generic interface
changed: factory functions return RefPtr?

The unittests don't pass right now, because of the change
to the factory functions, which leads to containers
being immediately destroyed as they are not assigned to
a RefPtr?.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/Carsten_PtrWork2/Source/Contrib/Manipulators/OSGMoveManipulatorBase.h

    r1020 r1032  
    9292    OSG_GEN_INTERNALPTR(MoveManipulator); 
    9393 
    94     typedef WeakRefCountPtrBuilder<MoveManipulator>::Ptr ObjWeakRefPtr; 
    95     typedef MTRefCountPtrBuilder  <MoveManipulator>::Ptr ObjMTRefPtr; 
    96     typedef RefCountPtrBuilder    <MoveManipulator>::Ptr ObjRefPtr; 
    97     typedef ParentPtrBuilder      <MoveManipulator>::Ptr ObjParentPtr; 
     94    typedef MTRefCountPtrBuilder      <MoveManipulator>::Ptr ObjMTRefPtr; 
     95    typedef RefCountPtrBuilder        <MoveManipulator>::Ptr ObjRefPtr; 
     96    typedef ParentPtrBuilder          <MoveManipulator>::Ptr ObjParentPtr; 
     97    typedef WeakRefCountPtrBuilder    <MoveManipulator>::Ptr ObjWeakRefPtr; 
     98    typedef InternalRefCountPtrBuilder<MoveManipulator>::Ptr ObjInternalRefPtr; 
    9899     
    99100    /*! \}                                                                 */ 
     
    137138    /*! \{                                                                 */ 
    138139 
    139     static  MoveManipulatorPtr create     (void); 
     140    static  ObjRefPtr        create     (void); 
    140141    static  MoveManipulatorPtr createEmpty(void); 
    141142 
     
    145146    /*! \{                                                                 */ 
    146147 
    147     virtual FieldContainerPtr shallowCopy(void) const; 
     148    virtual FieldContainerRefPtr shallowCopy(void) const; 
    148149 
    149150    /*! \}                                                                 */ 
     
    225226}; 
    226227 
    227 typedef MoveManipulatorBase::ObjRefPtr      MoveManipulatorRefPtr; 
    228 typedef MoveManipulatorBase::ObjMTRefPtr    MoveManipulatorMTRefPtr; 
    229 typedef MoveManipulatorBase::ObjWeakRefPtr  MoveManipulatorWeakRefPtr; 
    230 typedef MoveManipulatorBase::ObjParentPtr   MoveManipulatorParentPtr; 
     228typedef MoveManipulatorBase::ObjRefPtr         MoveManipulatorRefPtr; 
     229typedef MoveManipulatorBase::ObjMTRefPtr       MoveManipulatorMTRefPtr; 
     230typedef MoveManipulatorBase::ObjWeakRefPtr     MoveManipulatorWeakRefPtr; 
     231typedef MoveManipulatorBase::ObjParentPtr      MoveManipulatorParentPtr; 
     232typedef MoveManipulatorBase::ObjInternalRefPtr MoveManipulatorInternalPtr; 
    231233 
    232234typedef boost::mpl::if_<