Show
Ignore:
Timestamp:
12/12/07 18:00:42 (1 year 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/System/FieldContainer/Fields/OSGSInternalFCPointerField.h

    r1030 r1032  
    4545#include "OSGContainerForwards.h" 
    4646#include "OSGSFCPointerFieldBase.h" 
    47  
     47#include "OSGInternalFCPointerFieldDescription.h" 
    4848#include "OSGEditSFCPointerFieldHandle.h" 
    4949#include "OSGGetSFCPointerFieldHandle.h" 
     
    7171    class ReferenceProxy; 
    7272     
    73     typedef SFCPointerFieldBase<ObjectT *, 
    74                                 NamespaceI >             Inherited; 
     73    typedef SFCPointerFieldBase    <ObjectT *, 
     74                                    NamespaceI >         Inherited; 
    7575    typedef SInternalFCPointerField<ObjectT, 
    76                                 NamespaceI >             Self; 
     76                                    NamespaceI >         Self; 
    7777     
    7878    typedef          ObjectT                             Object; 
     
    8383     
    8484    typedef FieldTraits     <ValueType, 
    85                              NamespaceI          >       SFieldTraits; 
    86     typedef FieldDescription<SFieldTraits, 
    87                              SingleField
    88                              InternalPointerField>       Description; 
     85                             NamespaceI              >   SFieldTraits; 
     86    typedef InternalFCPointerFieldDescription< 
     87                             SFieldTraits
     88                             FieldType::SINGLE_FIELD>    Description; 
    8989         
    9090    typedef          ValueType                          *pointer; 
     
    9797    typedef GetSFCPointerFieldHandle <Self      >        GetHandle; 
    9898    typedef boost::shared_ptr        <GetHandle >        GetHandlePtr; 
     99     
     100    /*! \}                                                                 */ 
     101    /*---------------------------------------------------------------------*/ 
     102    /*! \name Constants                                                    */ 
     103    /*! \{                                                                 */ 
     104     
     105    static const FieldType::Category fieldCat = FieldType::INTERNAL_POINTER_FIELD; 
    99106     
    100107    /*! \}                                                                 */