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

base changes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/Carsten_PtrWork2/Source/System/NodeCores/Drawables/Base/OSGDrawableStatsAttachmentFields.h

    r1070 r1073  
    5858#include "OSGSystemDef.h" 
    5959 
     60#include "OSGContainerForwards.h" 
    6061#include "OSGRefCountPointer.h" 
    61 #include "OSGParentPtrWrapper.h" 
    6262 
    6363#include "OSGStatsAttachmentFields.h" 
     
    7575typedef MTRefCountPtrBuilder      <DrawableStatsAttachment>::Ptr DrawableStatsAttachmentMTRefPtr; 
    7676typedef WeakRefCountPtrBuilder    <DrawableStatsAttachment>::Ptr DrawableStatsAttachmentWeakRefPtr; 
    77 typedef ParentPtrBuilder          <DrawableStatsAttachment>::Ptr DrawableStatsAttachmentParentPtr; 
    7877typedef InternalRefCountPtrBuilder<DrawableStatsAttachment>::Ptr DrawableStatsAttachmentInternalRefPtr; 
    7978typedef TransitPtrBuilder         <DrawableStatsAttachment>::Ptr DrawableStatsAttachmentTransitPtr; 
     
    8988 
    9089template <> 
    91 struct FieldTraits<DrawableStatsAttachmentPtr> 
    92     : public FieldTraitsPointerFieldBase<DrawableStatsAttachmentPtr> 
     90struct FieldTraits<DrawableStatsAttachmentPtr> : public PointerFieldTraitsBase<0> 
    9391{ 
    9492  private: 
     
    9896    typedef FieldTraits<DrawableStatsAttachmentPtr>            Self; 
    9997 
    100     typedef MChildFCPointerField   < DrawableStatsAttachment > HandledMChildField; 
    101     typedef MInternalFCPointerField< DrawableStatsAttachment > HandledMInternalField; 
    102     typedef MWeakFCPointerField    < DrawableStatsAttachment > HandledMWeakField; 
    103      
    104     typedef SChildFCPointerField   < DrawableStatsAttachment > HandledSChildField; 
    105     typedef SInternalFCPointerField< DrawableStatsAttachment > HandledSInternalField; 
    106     typedef SWeakFCPointerField    < DrawableStatsAttachment > HandledSWeakField; 
     98    typedef ChildPointerMField     < DrawableStatsAttachment > ChildMField; 
     99    typedef ParentPointerMField    < DrawableStatsAttachment > ParentMField; 
     100    typedef UnrecordedPointerMField< DrawableStatsAttachment > UnrecordedMField; 
     101    typedef WeakPointerMField      < DrawableStatsAttachment > WeakMField; 
     102     
     103    typedef ChildPointerSField     < DrawableStatsAttachment > ChildSField; 
     104    typedef ParentPointerSField    < DrawableStatsAttachment > ParentSField; 
     105    typedef UnrecordedPointerSField< DrawableStatsAttachment > UnrecordedSField; 
     106    typedef WeakPointerSField      < DrawableStatsAttachment > WeakSField; 
    107107     
    108108    enum { Convertible = NotConvertible }; 
     
    110110    static OSG_SYSTEM_DLLMAPPING DataType &getType(void); 
    111111 
    112     static Char8 const *getSChildName(void) 
    113     { 
    114         return "SFDrawableStatsAttachmentChildPtr"; 
    115     } 
    116      
    117     static Char8 const *getSInternalName(void) 
    118     { 
    119         return "SFDrawableStatsAttachmentInternalPtr"; 
    120     } 
    121      
    122     static Char8 const *getSWeakName(void) 
    123     { 
    124         return "SFDrawableStatsAttachmentWeakPtr"; 
    125     } 
    126      
    127     static Char8 const *getMChildName(void) 
    128     { 
    129         return "MFDrawableStatsAttachmentChildPtr"; 
    130     } 
    131      
    132     static Char8 const *getMInternalName(void) 
    133     { 
    134         return "MFDrawableStatsAttachmentInternalPtr"; 
    135     } 
    136      
    137     static Char8 const *getMWeakName(void) 
    138     { 
    139         return "MFDrawableStatsAttachmentWeakPtr"; 
    140     } 
     112    template <enum FieldType::Class> 
     113    static Char8 const *getSName(void); 
     114     
     115    template <enum FieldType::Class> 
     116    static Char8 const *getMName(void); 
    141117     
    142118}; 
    143119 
    144 /*! \ingroup GrpSystemFieldTraits 
    145  */ 
    146 #if !defined(OSG_DOC_DEV_TRAITS) 
    147 /*! \hideinhierarchy */ 
    148 #endif 
    149  
    150 template <> 
    151 struct FieldTraits<DrawableStatsAttachmentParentPtr> 
    152     : public FieldTraitsParentPointerFieldBase<DrawableStatsAttachmentParentPtr> 
    153 
    154   private: 
    155     static DataType _type; 
    156  
    157   public: 
    158  
    159     typedef FieldTraits<DrawableStatsAttachmentParentPtr>  Self; 
    160  
    161     typedef MParentFCPointerField< DrawableStatsAttachment > HandledMParentField; 
    162     typedef SParentFCPointerField< DrawableStatsAttachment > HandledSParentField;     
    163      
    164     enum { Convertible = NotConvertible }; 
    165  
    166     static OSG_SYSTEM_DLLMAPPING DataType &getType(void); 
    167  
    168     static Char8 const *getSParentName(void) 
    169     { 
    170         return "SFDrawableStatsAttachmentParentPtr"; 
    171     } 
    172     static Char8 const *getMParentName(void) 
    173     { 
    174         return "MFDrawableStatsAttachmentParentPtr"; 
    175     } 
    176 }; 
    177  
    178 #if !defined(OSG_DOC_DEV_TRAITS) 
    179 /*! \class  FieldTraitsParentPointerFieldBase<DrawableStatsAttachmentParentPtr, 0> 
    180     \hideinhierarchy 
    181  */ 
    182 #endif 
     120template <> 
     121inline Char8 const * 
     122    FieldTraits<DrawableStatsAttachmentPtr>::getSName<FieldType::CHILD_POINTER_FIELD>( 
     123        void) 
     124
     125    return "SFDrawableStatsAttachmentChildPtr"; 
     126
     127 
     128template <> 
     129inline Char8 const * 
     130    FieldTraits<DrawableStatsAttachmentPtr>::getSName<FieldType::PARENT_POINTER_FIELD>( 
     131        void) 
     132
     133    return "SFDrawableStatsAttachmentParentPtr"; 
     134
     135 
     136template <> 
     137inline Char8 const * 
     138    FieldTraits<DrawableStatsAttachmentPtr>::getSName<FieldType::UNRECORDED_POINTER_FIELD>( 
     139        void) 
     140
     141    return "SFDrawableStatsAttachmentUnrecPtr"; 
     142
     143 
     144template <> 
     145inline Char8 const * 
     146    FieldTraits<DrawableStatsAttachmentPtr>::getSName<FieldType::WEAK_POINTER_FIELD>( 
     147        void) 
     148
     149    return "SFDrawableStatsAttachmentWeakPtr"; 
     150
     151 
     152template <> 
     153inline Char8 const * 
     154    FieldTraits<DrawableStatsAttachmentPtr>::getMName<FieldType::CHILD_POINTER_FIELD>( 
     155        void) 
     156
     157    return "MFDrawableStatsAttachmentChildPtr"; 
     158
     159 
     160template <> 
     161inline Char8 const * 
     162    FieldTraits<DrawableStatsAttachmentPtr>::getMName<FieldType::PARENT_POINTER_FIELD>( 
     163        void) 
     164
     165    return "MFDrawableStatsAttachmentParentPtr"; 
     166
     167 
     168template <> 
     169inline Char8 const * 
     170    FieldTraits<DrawableStatsAttachmentPtr>::getMName<FieldType::UNRECORDED_POINTER_FIELD>( 
     171        void) 
     172
     173    return "MFDrawableStatsAttachmentUnrecPtr"; 
     174
     175 
     176template <> 
     177inline Char8 const * 
     178    FieldTraits<DrawableStatsAttachmentPtr>::getMName<FieldType::WEAK_POINTER_FIELD>( 
     179        void) 
     180
     181    return "MFDrawableStatsAttachmentWeakPtr"; 
     182
    183183 
    184184#endif // !defined(OSG_DO_DOC) || (OSG_DOC_LEVEL >= 3) 
     
    187187/*! \ingroup GrpSystemFieldSingle */ 
    188188 
    189 typedef SChildFCPointerField   < DrawableStatsAttachment > SFDrawableStatsAttachmentChildPtr; 
    190 typedef SInternalFCPointerField< DrawableStatsAttachment > SFDrawableStatsAttachmentInternalPtr; 
    191 typedef SParentFCPointerField  < DrawableStatsAttachment > SFDrawableStatsAttachmentParentPtr; 
    192 typedef SWeakFCPointerField    < DrawableStatsAttachment > SFDrawableStatsAttachmentWeakPtr; 
     189typedef ChildPointerSField     < DrawableStatsAttachment > SFDrawableStatsAttachmentChildPtr; 
     190typedef ParentPointerSField    < DrawableStatsAttachment > SFDrawableStatsAttachmentParentPtr; 
     191typedef UnrecordedPointerSField< DrawableStatsAttachment > SFDrawableStatsAttachmentUnrecPtr; 
     192typedef WeakPointerSField      < DrawableStatsAttachment > SFDrawableStatsAttachmentWeakPtr; 
    193193     
    194194#endif 
     
    198198/*! \ingroup GrpSystemFieldMulti */ 
    199199 
    200 typedef MChildFCPointerField   < DrawableStatsAttachment > MFDrawableStatsAttachmentChildPtr; 
    201 typedef MInternalFCPointerField< DrawableStatsAttachment > MFDrawableStatsAttachmentInternalPtr; 
    202 typedef MParentFCPointerField  < DrawableStatsAttachment > MFDrawableStatsAttachmentParentPtr; 
    203 typedef MWeakFCPointerField    < DrawableStatsAttachment > MFDrawableStatsAttachmentWeakPtr; 
     200typedef ChildPointerMField     < DrawableStatsAttachment > MFDrawableStatsAttachmentChildPtr; 
     201typedef ParentPointerMField    < DrawableStatsAttachment > MFDrawableStatsAttachmentParentPtr; 
     202typedef UnrecordedPointerMField< DrawableStatsAttachment > MFDrawableStatsAttachmentUnrecPtr; 
     203typedef WeakPointerMField      < DrawableStatsAttachment > MFDrawableStatsAttachmentWeakPtr; 
    204204     
    205205#endif