Show
Ignore:
Timestamp:
10/04/07 19:11:34 (1 year ago)
Author:
cneumann
Message:

Work in progress commit.

NOTE: it does NOT compile at this point.

Files:

Legend:

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

    r864 r965  
    9191 
    9292    /*==========================  PUBLIC  =================================*/ 
    93  
    9493  public: 
    9594 
     
    112111 
    113112    /*---------------------------------------------------------------------*/ 
    114     /*! \name                    Class Get                                 */ 
     113    /*! \name Class Get                                                    */ 
    115114    /*! \{                                                                 */ 
    116115 
     
    121120    /*! \}                                                                 */ 
    122121    /*---------------------------------------------------------------------*/ 
    123     /*! \name                FieldContainer Get                            */ 
     122    /*! \name FieldContainer Get                                           */ 
    124123    /*! \{                                                                 */ 
    125124 
     
    131130    /*! \}                                                                 */ 
    132131    /*---------------------------------------------------------------------*/ 
    133     /*! \name                    Field Get                                 */ 
    134     /*! \{                                                                 */ 
    135  
    136             const MFNodePtr           *getMFGroupNodes      (void) const; 
    137  
     132    /*! \name Field MFGroupNodes                                           */ 
     133    /*! \{                                                                 */ 
     134     
     135            MFNodePtr const *getMFGroupNodes(void) const; 
     136            MFNodePtr const &getGroupNodes  (void) const; 
     137            NodePtrConst getGroupNodes(UInt32 const index) const; 
     138     
     139    void addGroupNodes(NodePtrConstArg value); 
     140    void assignGroupNodes(MFNodePtr const &value); 
     141    void insertGroupNodes( 
     142            UInt32 const uiIndex, 
     143            NodePtrConstArg value); 
     144    void replaceGroupNodes( 
     145            UInt32 const uiIndex, 
     146            NodePtrConstArg value); 
     147    void replaceGroupNodes( 
     148            NodePtrConstArg pOldElem, 
     149            NodePtrConstArg pNewElem); 
     150    void subGroupNodes(UInt32 const uiIndex); 
     151    void subGroupNodes(NodePtrConstArg value); 
     152    void clearGroupNodes(void); 
     153     
     154    /*! \}                                                                 */ 
     155    /*---------------------------------------------------------------------*/ 
     156    /*! \name Field MFGroupLengths                                         */ 
     157    /*! \{                                                                 */ 
     158     
     159            MFUInt32       *editMFGroupLengths(void); 
     160            MFUInt32 const *getMFGroupLengths (void) const; 
    138161#ifdef OSG_1_GET_COMPAT 
    139                   MFUInt32            *getMFGroupLengths    (void); 
    140 #endif 
    141                   MFUInt32            *editMFGroupLengths   (void); 
    142             const MFUInt32            *getMFGroupLengths    (void) const; 
    143  
     162            MFUInt32       *getMFGroupLengths (void); 
     163#endif 
     164            MFUInt32       &editGroupLengths(void); 
     165            MFUInt32 const &getGroupLengths (void) const; 
     166            UInt32       &editGroupLengths(UInt32 const index); 
     167            UInt32 const &getGroupLengths (UInt32 const index) const; 
    144168#ifdef OSG_1_GET_COMPAT 
    145                   SFBool              *getSFGroupsChanged   (void); 
    146 #endif 
    147                   SFBool              *editSFGroupsChanged  (void); 
    148             const SFBool              *getSFGroupsChanged   (void) const; 
    149  
    150  
    151                   NodePtrConst getGroupNodes     (const UInt32 index) const; 
    152             const MFNodePtr           &getGroupNodes     (void) const; 
    153  
     169            UInt32       &getGroupLengths (UInt32 const index); 
     170            MFUInt32 &getGroupLengths(void); 
     171#endif 
     172    void addGroupLengths(UInt32 const &value); 
     173    void assignGroupLengths(MFUInt32 const &value); 
     174    void insertGroupLengths( 
     175            UInt32 const uiIndex, 
     176            UInt32 const &value); 
     177    void replaceGroupLengths( 
     178            UInt32 const uiIndex, 
     179            UInt32 const &value); 
     180    void replaceGroupLengths( 
     181            UInt32 const &pOldElem, 
     182            UInt32 const &pNewElem); 
     183    void subGroupLengths(UInt32 const uiIndex); 
     184    void subGroupLengths(UInt32 const &value); 
     185    void clearGroupLengths(void); 
     186     
     187    /*! \}                                                                 */ 
     188    /*---------------------------------------------------------------------*/ 
     189    /*! \name Field SFGroupsChanged                                        */ 
     190    /*! \{                                                                 */ 
     191     
     192            SFBool       *editSFGroupsChanged(void); 
     193            SFBool const *getSFGroupsChanged (void) const; 
    154194#ifdef OSG_1_GET_COMPAT 
    155                   UInt32              &getGroupLengths    (const UInt32 index); 
    156                   MFUInt32            &getGroupLengths   (void); 
    157 #endif 
    158                   UInt32              &editGroupLengths   (const UInt32 index); 
    159             const UInt32              &getGroupLengths    (const UInt32 index) const; 
    160                   MFUInt32            &editGroupLengths   (void); 
    161             const MFUInt32            &getGroupLengths   (void) const; 
    162  
     195            SFBool       *getSFGroupsChanged (void); 
     196#endif 
     197            bool       &editGroupsChanged(void); 
     198            bool const &getGroupsChanged (void) const; 
    163199#ifdef OSG_1_GET_COMPAT 
    164                   bool                &getGroupsChanged   (void); 
    165 #endif 
    166                   bool                &editGroupsChanged  (void); 
    167             const bool                &getGroupsChanged   (void) const; 
    168  
    169     /*! \}                                                                 */ 
    170     /*---------------------------------------------------------------------*/ 
    171     /*! \name                    Field Set                                 */ 
    172     /*! \{                                                                 */ 
    173  
    174             void setGroupsChanged  (const bool &value); 
    175  
    176     /*! \}                                                                 */ 
    177     /*---------------------------------------------------------------------*/ 
    178     /*! \name                Ptr Field Set                                 */ 
    179     /*! \{                                                                 */ 
    180  
    181     /*! \}                                                                 */ 
    182     /*---------------------------------------------------------------------*/ 
    183     /*! \name                Ptr MField Set                                */ 
    184     /*! \{                                                                 */ 
    185  
    186     void pushToGroupNodes           (NodePtrConstArg value   ); 
    187     void assignGroupNodes           (const MFNodePtr         &value); 
    188     void insertIntoGroupNodes      (UInt32                uiIndex, 
    189                                              NodePtrConstArg value   ); 
    190     void replaceInGroupNodes  (UInt32                uiIndex, 
    191                                              NodePtrConstArg value   ); 
    192     void replaceInGroupNodes (NodePtrConstArg pOldElem, 
    193                                              NodePtrConstArg pNewElem); 
    194     void removeFromGroupNodes (UInt32                uiIndex ); 
    195     void removeFromGroupNodes(NodePtrConstArg value   ); 
    196     void clearGroupNodes            (void                          ); 
    197  
    198  
    199  
    200     void pushToGroupLengths                (const UInt32    &value   ); 
    201     void insertIntoGroupLengths            (      UInt32     uiIndex, 
    202                                             const UInt32    &value   ); 
    203     void replaceInGroupLengths             (      UInt32     uiIndex, 
    204                                             const UInt32    &value   ); 
    205     void replaceInGroupLengths             (const UInt32    &pOldElem, 
    206                                             const UInt32    &pNewElem); 
    207     void removeFromGroupLengths            (      UInt32     uiIndex ); 
    208     void removeFromGroupLengths            (const UInt32    &value   ); 
    209     void clearGroupLengths                 (      void               ); 
    210  
    211  
    212     /*! \}                                                                 */ 
    213     /*---------------------------------------------------------------------*/ 
    214     /*! \name                   Binary Access                              */ 
     200            bool       &getGroupsChanged (void); 
     201#endif 
     202            void setGroupsChanged(bool const &value); 
     203     
     204    /*! \}                                                                 */ 
     205     
     206    /*---------------------------------------------------------------------*/ 
     207    /*! \name Binary Access                                                */ 
    215208    /*! \{                                                                 */ 
    216209 
     
    221214                               ConstFieldMaskArg  whichField); 
    222215 
    223  
    224     /*! \}                                                                 */ 
    225     /*---------------------------------------------------------------------*/ 
    226     /*! \name                   Construction                               */ 
     216    /*! \}                                                                 */ 
     217    /*---------------------------------------------------------------------*/ 
     218    /*! \name Construction                                                 */ 
    227219    /*! \{                                                                 */ 
    228220 
     
    232224    /*! \}                                                                 */ 
    233225    /*---------------------------------------------------------------------*/ 
    234     /*! \name                       Copy                                   */ 
     226    /*! \name Copy                                                         */ 
    235227    /*! \{                                                                 */ 
    236228 
     
    239231    /*! \}                                                                 */ 
    240232    /*=========================  PROTECTED  ===============================*/ 
    241  
    242233  protected: 
    243234 
     
    248239 
    249240    /*---------------------------------------------------------------------*/ 
    250     /*! \name                      Fields                                  */ 
     241    /*! \name Fields                                                       */ 
    251242    /*! \{                                                                 */ 
    252243 
     
    257248    /*! \}                                                                 */ 
    258249    /*---------------------------------------------------------------------*/ 
    259     /*! \name                   Constructors                               */ 
     250    /*! \name Constructors                                                 */ 
    260251    /*! \{                                                                 */ 
    261252 
     
    265256    /*! \}                                                                 */ 
    266257    /*---------------------------------------------------------------------*/ 
    267     /*! \name                   Destructors                                */ 
     258    /*! \name Destructors                                                  */ 
    268259    /*! \{                                                                 */ 
    269260 
     
    272263    /*! \}                                                                 */ 
    273264    /*---------------------------------------------------------------------*/ 
    274     /*! \name                     onCreate                                */ 
     265    /*! \name onCreate                                                     */ 
    275266    /*! \{                                                                 */ 
    276267 
     
    279270    /*! \}                                                                 */ 
    280271    /*---------------------------------------------------------------------*/ 
    281     /*! \name                    Generic Field Access                      */ 
     272    /*! \name Generic Field Access                                         */ 
    282273    /*! \{                                                                 */ 
    283274 
     
    291282    /*! \}                                                                 */ 
    292283    /*---------------------------------------------------------------------*/ 
    293     /*! \name                       Sync                                   */ 
     284    /*! \name Sync                                                         */ 
    294285    /*! \{                                                                 */ 
    295286 
     
    310301    /*! \}                                                                 */ 
    311302    /*---------------------------------------------------------------------*/ 
    312     /*! \name                       Edit                                   */ 
    313     /*! \{                                                                 */ 
    314  
    315     /*! \}                                                                 */ 
    316     /*---------------------------------------------------------------------*/ 
    317     /*! \name                     Aspect Create                            */ 
     303    /*! \name Aspect Create                                                */ 
    318304    /*! \{                                                                 */ 
    319305 
     
    321307    virtual FieldContainerPtr createAspectCopy(void) const; 
    322308#endif 
    323  
    324     /*! \}                                                                 */ 
    325     /*---------------------------------------------------------------------*/ 
    326     /*! \name                       Edit                                   */ 
    327     /*! \{                                                                 */ 
    328     /*! \}                                                                 */ 
    329     /*---------------------------------------------------------------------*/ 
    330     /*! \name                       Sync                                   */ 
     309     
     310    /*! \}                                                                 */ 
     311    /*---------------------------------------------------------------------*/ 
     312    /*! \name Sync                                                         */ 
    331313    /*! \{                                                                 */ 
    332314 
     
    335317    /*! \}                                                                 */ 
    336318    /*==========================  PRIVATE  ================================*/ 
    337  
    338319  private: 
    339320 
     
    345326 
    346327/** Type specific RefPtr type for SortLastWindow. */ 
    347 typedef RefPtr<SortLastWindowPtr> SortLastWindowRefPtr; 
     328typedef RefPtr<SortLastWindow>   SortLastWindowRefPtr; 
     329typedef MTRefPtr<SortLastWindow> SortLastWindowMTRefPtr; 
     330 
     331typedef InternalRefPtr<SortLastWindow>       SortLastWindowInternalRefPtr; 
     332typedef InternalRefPtr<SortLastWindow> const SortLastWindowInternalRefPtrConst; 
     333typedef InternalRefPtr<SortLastWindow> const SortLastWindowInternalRefPtrConstArg; 
    348334 
    349335typedef boost::mpl::if_<