Changeset 1153

Show
Ignore:
Timestamp:
04/14/08 04:52:12 (1 month ago)
Author:
vossg
Message:

changed: some test defines

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Source/System/FieldContainer/Fields/Base/OSGFieldContainerPtrChildMField.h

    r1142 r1153  
    436436    /*! \{                                                                 */ 
    437437 
     438#if 0 
    438439    void setValues(const StorageType       &value); 
    439440    void setValues(const StorageTypeParent &value); 
    440441    void setValues(const Self              &obj  ); 
     442#endif 
    441443        
    442444    /*! \}                                                                 */ 
     
    460462#ifndef OSG_CLEAN_FCFIELDS 
    461463    reference              front_nc (void                              ); 
    462 #endif 
     464    reference              back_nc  (void                              ); 
     465#endif 
     466 
    463467    const_reference        front    (void                              ) const; 
    464  
    465 #ifndef OSG_CLEAN_FCFIELDS 
    466     reference              back_nc  (void                              ); 
    467 #endif 
    468468    const_reference        back     (void                              ) const; 
    469      
    470469    
    471470    iterator               insert   (iterator     pos,  
    472471                                     ArgumentType value                ); 
    473472 
     473#if 0 
    474474#ifdef __STL_MEMBER_TEMPLATES 
    475475    template <class InputIterator> 
     
    482482                                     iterator      last                ); 
    483483#endif /* __STL_MEMBER_TEMPLATES */ 
     484#endif 
    484485 
    485486    void                   clear    (void                              ); 
    486487 
    487488    iterator               erase    (iterator     pos                  ); 
     489 
    488490    iterator               erase    (iterator     first, 
    489491                                     iterator     last                 ); 
     
    499501    void                   reserve  (size_t       newsize              ); 
    500502 
    501  
    502503#ifdef OSG_1_COMPAT 
    503504    void                   addValue (ArgumentType value                ); 
     
    530531    /*! \{                                                                 */ 
    531532 
     533#if 0 
    532534    bool operator ==(const Self &source) const; 
     535#endif 
    533536 
    534537    /*! \}                                                                 */ 
     
    536539    /*! \name                  Assignment                                  */ 
    537540    /*! \{                                                                 */ 
    538  
    539     void operator =(const Self &source); 
    540541 
    541542    /*! \}                                                                 */ 
     
    674675 
    675676  private: 
     677 
     678    void operator =(const Self &source); 
    676679}; 
    677680 
  • trunk/Source/System/FieldContainer/Fields/Base/OSGFieldContainerPtrChildMField.inl

    r1140 r1153  
    6969#endif 
    7070 
    71 #if 0 
    72 template<class    ValueT,  
    73          typename RefCountPolicy,  
    74          Int32    iNamespace    > inline 
    75 FieldContainerPtrChildMField<ValueT,  
    76                              RefCountPolicy,  
    77                              iNamespace    >::FieldContainerPtrChildMField( 
    78                                  void) : 
    79     Inherited() 
    80 { 
    81 } 
    82  
    83 template<class    ValueT,  
    84          typename RefCountPolicy,  
    85          Int32    iNamespace    > inline 
    86 FieldContainerPtrChildMField<ValueT,  
    87                              RefCountPolicy,  
    88                              iNamespace    >::FieldContainerPtrChildMField( 
    89     const Self &obj) : 
    90  
    91     Inherited() 
    92 { 
    93     if(obj._values.size() > 0) 
    94     { 
    95         _values.resize(obj._values.size(), NULL); 
    96  
    97         typename StorageType::const_iterator sIt  = obj._values.begin(); 
    98         typename StorageType::const_iterator sEnd = obj._values.end  (); 
    99  
    100         typename StorageType::iterator fIt  = _values.begin(); 
    101          
    102         while(sIt != sEnd) 
    103         { 
    104             RefCountPolicy::setRefd((*fIt), *sIt); 
    105  
    106             ++sIt; 
    107             ++fIt; 
    108         } 
    109     } 
    110 } 
    111  
    112  
    113 template<class    ValueT,  
    114          typename RefCountPolicy,  
    115          Int32    iNamespace    > inline 
    116 FieldContainerPtrChildMField<ValueT,  
    117                              RefCountPolicy,  
    118                              iNamespace    >::FieldContainerPtrChildMField( 
    119     const UInt32 size) :  
    120  
    121     Inherited(size) 
    122 { 
    123 } 
    124 #endif 
    12571 
    12672template<class    ValueT,  
     
    514460#endif 
    515461 
     462#ifdef OSG_MT_CPTR_ASPECT 
    516463template<class    ValueT,  
    517464         typename RefCountPolicy,  
     
    624571#endif 
    625572} 
     573#endif 
    626574 
    627575OSG_END_NAMESPACE 
  • trunk/Source/System/FieldContainer/Fields/Base/OSGFieldContainerPtrMField.h

    r1142 r1153  
    425425    /*! \{                                                                 */ 
    426426 
     427#ifdef OSG_FIELD_TOCHECK 
    427428    void setValues(const StorageType       &value); 
    428429    void setValues(const StorageTypeParent &value); 
    429430    void setValues(const Self              &obj  ); 
    430         
     431#endif        
     432 
    431433    /*! \}                                                                 */ 
    432434    /*---------------------------------------------------------------------*/ 
     
    447449    reference front_nc(void              ); 
    448450    reference back_nc (void              ); 
    449 #endif 
    450451 
    451452    iterator  find_nc (ArgumentType value); 
     453#endif 
    452454 
    453455    /*! \}                                                                 */ 
     
    455457    /*! \name                   STL Interface                              */ 
    456458    /*! \{                                                                 */ 
    457  
    458459 
    459460    const_iterator         begin    (void                              ) const; 
     
    461462     
    462463    const_reference        front    (void                              ) const; 
    463  
    464464    const_reference        back     (void                              ) const; 
    465      
    466465    
    467466    iterator               insert   (iterator     pos,  
    468467                                     ArgumentType value                ); 
    469468 
    470 #ifdef __STL_MEMBER_TEMPLATES 
    471469    template <class InputIterator> 
    472470    void                   insert   (iterator      pos,  
    473471                                     InputIterator first,  
    474472                                     InputIterator last                ); 
    475 #else 
    476     void                   insert   (iterator      pos,  
    477                                      iterator      first, 
    478                                      iterator      last                ); 
    479 #endif /* __STL_MEMBER_TEMPLATES */ 
    480  
    481     void                   clear    (void                              ); 
    482473 
    483474    iterator               erase    (iterator     pos                  ); 
     475 
    484476    iterator               erase    (iterator     first, 
    485477                                     iterator     last                 ); 
    486478     
    487479    const_iterator         find     (ArgumentType value                ) const; 
     480#ifndef OSG_CLEAN_FCFIELDS 
     481    iterator               find     (ArgumentType value); 
     482#endif 
    488483 
    489484    void                   push_back(ArgumentType value                ); 
     
    494489    void                   reserve  (size_t       newsize              ); 
    495490 
    496     void                   swap     (Self                        &right); 
     491    void                   clear    (void                              ); 
    497492 
    498493#ifdef OSG_1_COMPAT 
     
    526521    /*! \{                                                                 */ 
    527522 
     523#if 0 
    528524    bool operator ==(const Self &source) const; 
    529525 
     
    533529    /*! \{                                                                 */ 
    534530 
     531#ifdef OSG_FIELD_TOCHECK 
    535532    void operator =(const Self &source); 
     533#endif 
     534#endif 
    536535 
    537536    /*! \}                                                                 */ 
  • trunk/Source/System/FieldContainer/Fields/Base/OSGFieldContainerPtrParentMField.h

    r1142 r1153  
    318318 
    319319    iterator               erase    (iterator     pos                  ); 
     320 
    320321    void                   erase    (size_type    pos                  ); 
    321322     
     
    328329    void                   reserve  (size_t       newsize              ); 
    329330 
    330  
    331 #ifdef OSG_1_COMPAT 
    332     void                   addValue (ArgumentType value, 
    333                                      UInt16       parentFieldPos       ); 
    334 #endif 
    335  
    336331    /*! \}                                                                 */ 
    337332    /*---------------------------------------------------------------------*/ 
     
    339334    /*! \{                                                                 */ 
    340335 
     336    void replace(UInt32       uiIdx,  
     337                 ArgumentType value, 
     338                 UInt16       parentFieldPos); 
     339 
     340    void replace(iterator     pos,  
     341                 ArgumentType value, 
     342                 UInt16       parentFieldPos); 
     343 
     344    /*! \}                                                                 */ 
     345    /*---------------------------------------------------------------------*/ 
     346    /*! \name                  Index Operator                              */ 
     347    /*! \{                                                                 */ 
     348 
     349    const_reference operator [](UInt32 index) const; 
     350 
     351    /*! \}                                                                 */ 
     352    /*---------------------------------------------------------------------*/ 
     353    /*! \name                  Compare                                     */ 
     354    /*! \{                                                                 */ 
    341355#if 0 
    342     void replace(UInt32       uiIdx,  
    343                  ArgumentType value); 
    344  
    345     void replace(iterator     pos,  
    346                  ArgumentType value); 
    347 #endif 
    348  
    349     /*! \}                                                                 */ 
    350     /*---------------------------------------------------------------------*/ 
    351     /*! \name                  Index Operator                              */ 
    352     /*! \{                                                                 */ 
    353  
    354     const_reference operator [](UInt32 index) const; 
    355  
    356     /*! \}                                                                 */ 
    357     /*---------------------------------------------------------------------*/ 
    358     /*! \name                  Compare                                     */ 
    359     /*! \{                                                                 */ 
    360  
    361356    bool operator ==(const Self &source) const; 
    362  
     357#endif 
    363358    /*! \}                                                                 */ 
    364359    /*---------------------------------------------------------------------*/ 
  • trunk/Source/System/FieldContainer/Fields/Base/OSGFieldContainerPtrParentMField.inl

    r1123 r1153  
    9696} 
    9797 
    98 #if 0 
    99 template<class ValueT, typename RefCountPolicy, Int32 iNamespace> inline 
    100 typename FieldContainerPtrMField<ValueT,  
    101                                  RefCountPolicy,  
    102                                  iNamespace    >::StorageType & 
    103     FieldContainerPtrMField<ValueT, RefCountPolicy, iNamespace>::getValues(void) 
    104 { 
    105     return (this->template dcast<typename Self::StorageType>()); 
    106 } 
    107  
    108 template<class ValueT, typename RefCountPolicy, Int32 iNamespace> inline 
    109 const typename FieldContainerPtrMField<ValueT,  
    110                                        RefCountPolicy,  
    111                                        iNamespace    >::StorageType & 
    112     FieldContainerPtrMField<ValueT,  
    113                             RefCountPolicy,  
    114                             iNamespace    >::getValues(void) const 
    115 { 
    116     return (this->template dcast<typename Self::StorageType>()); 
    117 } 
    118 #endif 
    11998 
    12099template<class ValueT, typename RefCountPolicy, Int32 iNamespace> inline 
     
    209188typename FieldContainerPtrParentMField<ValueT,  
    210189                                       RefCountPolicy,  
    211                                        iNamespace    >::iterator 
    212     FieldContainerPtrParentMField<ValueT,  
    213                                   RefCountPolicy,  
    214                                   iNamespace    >::begin_nc(void) 
    215 { 
    216     return iterator( 
    217         (this->template dcast<typename Self::StorageType>()).begin(), 
    218         _vParentPos.begin()); 
    219 } 
    220  
    221 template<class ValueT, typename RefCountPolicy, Int32 iNamespace> inline 
    222 typename FieldContainerPtrParentMField<ValueT,  
    223                                        RefCountPolicy,  
    224                                        iNamespace    >::iterator 
    225     FieldContainerPtrParentMField<ValueT,  
    226                                   RefCountPolicy,  
    227                                   iNamespace    >::end_nc(void) 
    228 { 
    229     return iterator( 
    230         (this->template dcast<typename Self::StorageType>()).end(), 
    231          _vParentPos.end()); 
    232 } 
    233  
    234 template<class ValueT, typename RefCountPolicy, Int32 iNamespace> inline 
    235 typename FieldContainerPtrParentMField<ValueT,  
    236                                        RefCountPolicy,  
    237190                                       iNamespace    >::const_iterator 
    238191    FieldContainerPtrParentMField<ValueT, RefCountPolicy, iNamespace>::begin(void) const 
     
    327280#if 0 
    328281template<class ValueT, typename RefCountPolicy, Int32 iNamespace> inline 
    329 void FieldContainerPtrMField<ValueT,  
    330                              RefCountPolicy,  
    331                              iNamespace    >::resize(size_t     newsize,  
    332                                                      StoredType t) 
    333 { 
    334     Inherited::resize(newsize, t); 
    335 } 
    336  
    337 template<class ValueT, typename RefCountPolicy, Int32 iNamespace> inline 
    338282void FieldContainerPtrMField<ValueT, RefCountPolicy, iNamespace>::replace(UInt32       uiIdx,  
    339283                                                          ArgumentType value) 
     
    353297    OSG::setRefdX(*tmpIt, value); 
    354298} 
    355  
    356 #if 0 
    357 template<class ValueT, typename RefCountPolicy, Int32 iNamespace> inline 
    358 typename FieldContainerPtrMField<ValueT, iNamespace>::reference  
    359     FieldContainerPtrMField<ValueT,  
    360                             RefCountPolicy,  
    361                             iNamespace    >::operator [](UInt32 index) 
    362 { 
    363     return (this->template dcast<typename Self::StorageType>())[index]; 
    364 } 
    365 #endif 
    366299#endif 
    367300 
     
    378311} 
    379312 
     313#if 0 
    380314template<class ValueT, typename RefCountPolicy, Int32 iNamespace> inline 
    381315bool FieldContainerPtrParentMField<ValueT,  
     
    386320    return (_values == source._values && _vParentPos == source._vParentPos); 
    387321} 
    388  
     322#endif 
     323 
     324#ifdef OSG_MT_CPTR_ASPECT 
    389325template<class ValueT, typename RefCountPolicy, Int32 iNamespace> inline 
    390326void FieldContainerPtrParentMField<ValueT,  
     
    420356    _vParentPos = source._vParentPos; 
    421357} 
    422  
     358#endif 
    423359 
    424360template<class ValueT, typename RefCountPolicy, Int32 iNamespace> inline