Show
Ignore:
Timestamp:
10/05/07 19:12:52 (1 year ago)
Author:
cneumann
Message:

added: typedefs for Parent@!Classname!@Ptr fields
removed: calls to ref counting functions

Still does NOT compile :(

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/Carsten_PtrWork/Source/System/Cluster/Window/Base/OSGClusterWindowFields.h

    r965 r969  
    5858#include "OSGClusterDef.h" 
    5959 
     60#include "OSGParentContainer.h" 
    6061#include "OSGInternalRefPtr.h" 
    6162 
     
    6970 
    7071class ClusterWindow; 
     72 
     73OSG_GEN_CONTAINERPTR(ClusterWindow); 
    7174 
    7275typedef RefPtr<ClusterWindow>         ClusterWindowRefPtr; 
     
    7679typedef InternalRefPtr<ClusterWindow> const ClusterWindowInternalRefPtrConst; 
    7780typedef InternalRefPtr<ClusterWindow> const ClusterWindowInternalRefPtrConstArg; 
     81 
     82typedef PtrWrapper<ClusterWindow, 
     83                   ClusterWindowPtr>        ParentClusterWindowPtr; 
     84typedef PtrWrapper<ClusterWindow, 
     85                   ClusterWindowPtr> const  ParentClusterWindowPtrConst; 
    7886 
    7987#if !defined(OSG_DO_DOC) // created as a dummy class, remove to prevent doubles 
     
    143151 
    144152    static const char *getSName(void) { return "SFClusterWindowInternalRefPtr"; } 
    145     static const char *getMName(void) { return "MFClusterWindowInetrnalRefPtr"; } 
     153    static const char *getMName(void) { return "MFClusterWindowInternalRefPtr"; } 
    146154}; 
    147155 
     
    154162#endif // !defined(OSG_DO_DOC) || (OSG_DOC_LEVEL >= 3) 
    155163 
     164#if !defined(OSG_DO_DOC) || (OSG_DOC_LEVEL >= 3) 
     165/*! \ingroup GrpClusterFieldTraits 
     166 */ 
     167#if !defined(OSG_DOC_DEV_TRAITS) 
     168/*! \hideinhierarchy */ 
     169#endif 
     170 
     171template <> 
     172struct FieldTraits<ParentClusterWindowPtr> : 
     173    public FieldTraitsFCPtrBase<ParentClusterWindowPtr> 
     174{ 
     175  private: 
     176 
     177    static DataType             _type; 
     178 
     179  public: 
     180 
     181    typedef FieldTraits<ParentClusterWindowPtr>  Self; 
     182 
     183    enum                        { Convertible = NotConvertible }; 
     184 
     185    static OSG_CLUSTER_DLLMAPPING DataType &getType(void); 
     186 
     187    static const char *getSName(void) { return "SFParentClusterWindowPtr"; } 
     188    static const char *getMName(void) { return "MFParentClusterWindowPtr"; } 
     189}; 
     190 
     191#if !defined(OSG_DOC_DEV_TRAITS) 
     192/*! \class  FieldTraitsTemplateBase<ClusterWindowPtr, 0> 
     193    \hideinhierarchy 
     194 */ 
     195#endif 
     196 
     197#endif // !defined(OSG_DO_DOC) || (OSG_DOC_LEVEL >= 3) 
     198 
    156199#if !defined(OSG_DO_DOC) || defined(OSG_DOC_FIELD_TYPEDEFS) 
    157200/*! \ingroup GrpClusterFieldSingle */ 
     
    160203 
    161204typedef SFieldAdaptor<ClusterWindowInternalRefPtr, SFFieldContainerPtr> SFClusterWindowInternalRefPtr; 
     205 
     206typedef SFieldAdaptor<ParentClusterWindowPtr, SFParentFieldContainerPtr> SFParentClusterWindowPtr; 
    162207#endif 
    163208 
     
    169214 
    170215typedef MFieldAdaptor<ClusterWindowInternalRefPtr, MFFieldContainerPtr> MFClusterWindowInternalRefPtr; 
    171 #endif 
    172  
     216 
     217typedef MFieldAdaptor<ParentClusterWindowPtr, MFParentFieldContainerPtr> MFParentClusterWindowPtr; 
     218#endif 
    173219 
    174220OSG_END_NAMESPACE