Changeset 1153
- Timestamp:
- 04/14/08 04:52:12 (1 month ago)
- Files:
-
- trunk/Source/System/FieldContainer/Fields/Base/OSGFieldContainerPtrChildMField.h (modified) (7 diffs)
- trunk/Source/System/FieldContainer/Fields/Base/OSGFieldContainerPtrChildMField.inl (modified) (3 diffs)
- trunk/Source/System/FieldContainer/Fields/Base/OSGFieldContainerPtrMField.h (modified) (7 diffs)
- trunk/Source/System/FieldContainer/Fields/Base/OSGFieldContainerPtrParentMField.h (modified) (3 diffs)
- trunk/Source/System/FieldContainer/Fields/Base/OSGFieldContainerPtrParentMField.inl (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Source/System/FieldContainer/Fields/Base/OSGFieldContainerPtrChildMField.h
r1142 r1153 436 436 /*! \{ */ 437 437 438 #if 0 438 439 void setValues(const StorageType &value); 439 440 void setValues(const StorageTypeParent &value); 440 441 void setValues(const Self &obj ); 442 #endif 441 443 442 444 /*! \} */ … … 460 462 #ifndef OSG_CLEAN_FCFIELDS 461 463 reference front_nc (void ); 462 #endif 464 reference back_nc (void ); 465 #endif 466 463 467 const_reference front (void ) const; 464 465 #ifndef OSG_CLEAN_FCFIELDS466 reference back_nc (void );467 #endif468 468 const_reference back (void ) const; 469 470 469 471 470 iterator insert (iterator pos, 472 471 ArgumentType value ); 473 472 473 #if 0 474 474 #ifdef __STL_MEMBER_TEMPLATES 475 475 template <class InputIterator> … … 482 482 iterator last ); 483 483 #endif /* __STL_MEMBER_TEMPLATES */ 484 #endif 484 485 485 486 void clear (void ); 486 487 487 488 iterator erase (iterator pos ); 489 488 490 iterator erase (iterator first, 489 491 iterator last ); … … 499 501 void reserve (size_t newsize ); 500 502 501 502 503 #ifdef OSG_1_COMPAT 503 504 void addValue (ArgumentType value ); … … 530 531 /*! \{ */ 531 532 533 #if 0 532 534 bool operator ==(const Self &source) const; 535 #endif 533 536 534 537 /*! \} */ … … 536 539 /*! \name Assignment */ 537 540 /*! \{ */ 538 539 void operator =(const Self &source);540 541 541 542 /*! \} */ … … 674 675 675 676 private: 677 678 void operator =(const Self &source); 676 679 }; 677 680 trunk/Source/System/FieldContainer/Fields/Base/OSGFieldContainerPtrChildMField.inl
r1140 r1153 69 69 #endif 70 70 71 #if 072 template<class ValueT,73 typename RefCountPolicy,74 Int32 iNamespace > inline75 FieldContainerPtrChildMField<ValueT,76 RefCountPolicy,77 iNamespace >::FieldContainerPtrChildMField(78 void) :79 Inherited()80 {81 }82 83 template<class ValueT,84 typename RefCountPolicy,85 Int32 iNamespace > inline86 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 > inline116 FieldContainerPtrChildMField<ValueT,117 RefCountPolicy,118 iNamespace >::FieldContainerPtrChildMField(119 const UInt32 size) :120 121 Inherited(size)122 {123 }124 #endif125 71 126 72 template<class ValueT, … … 514 460 #endif 515 461 462 #ifdef OSG_MT_CPTR_ASPECT 516 463 template<class ValueT, 517 464 typename RefCountPolicy, … … 624 571 #endif 625 572 } 573 #endif 626 574 627 575 OSG_END_NAMESPACE trunk/Source/System/FieldContainer/Fields/Base/OSGFieldContainerPtrMField.h
r1142 r1153 425 425 /*! \{ */ 426 426 427 #ifdef OSG_FIELD_TOCHECK 427 428 void setValues(const StorageType &value); 428 429 void setValues(const StorageTypeParent &value); 429 430 void setValues(const Self &obj ); 430 431 #endif 432 431 433 /*! \} */ 432 434 /*---------------------------------------------------------------------*/ … … 447 449 reference front_nc(void ); 448 450 reference back_nc (void ); 449 #endif450 451 451 452 iterator find_nc (ArgumentType value); 453 #endif 452 454 453 455 /*! \} */ … … 455 457 /*! \name STL Interface */ 456 458 /*! \{ */ 457 458 459 459 460 const_iterator begin (void ) const; … … 461 462 462 463 const_reference front (void ) const; 463 464 464 const_reference back (void ) const; 465 466 465 467 466 iterator insert (iterator pos, 468 467 ArgumentType value ); 469 468 470 #ifdef __STL_MEMBER_TEMPLATES471 469 template <class InputIterator> 472 470 void insert (iterator pos, 473 471 InputIterator first, 474 472 InputIterator last ); 475 #else476 void insert (iterator pos,477 iterator first,478 iterator last );479 #endif /* __STL_MEMBER_TEMPLATES */480 481 void clear (void );482 473 483 474 iterator erase (iterator pos ); 475 484 476 iterator erase (iterator first, 485 477 iterator last ); 486 478 487 479 const_iterator find (ArgumentType value ) const; 480 #ifndef OSG_CLEAN_FCFIELDS 481 iterator find (ArgumentType value); 482 #endif 488 483 489 484 void push_back(ArgumentType value ); … … 494 489 void reserve (size_t newsize ); 495 490 496 void swap (Self &right);491 void clear (void ); 497 492 498 493 #ifdef OSG_1_COMPAT … … 526 521 /*! \{ */ 527 522 523 #if 0 528 524 bool operator ==(const Self &source) const; 529 525 … … 533 529 /*! \{ */ 534 530 531 #ifdef OSG_FIELD_TOCHECK 535 532 void operator =(const Self &source); 533 #endif 534 #endif 536 535 537 536 /*! \} */ trunk/Source/System/FieldContainer/Fields/Base/OSGFieldContainerPtrParentMField.h
r1142 r1153 318 318 319 319 iterator erase (iterator pos ); 320 320 321 void erase (size_type pos ); 321 322 … … 328 329 void reserve (size_t newsize ); 329 330 330 331 #ifdef OSG_1_COMPAT332 void addValue (ArgumentType value,333 UInt16 parentFieldPos );334 #endif335 336 331 /*! \} */ 337 332 /*---------------------------------------------------------------------*/ … … 339 334 /*! \{ */ 340 335 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 /*! \{ */ 341 355 #if 0 342 void replace(UInt32 uiIdx,343 ArgumentType value);344 345 void replace(iterator pos,346 ArgumentType value);347 #endif348 349 /*! \} */350 /*---------------------------------------------------------------------*/351 /*! \name Index Operator */352 /*! \{ */353 354 const_reference operator [](UInt32 index) const;355 356 /*! \} */357 /*---------------------------------------------------------------------*/358 /*! \name Compare */359 /*! \{ */360 361 356 bool operator ==(const Self &source) const; 362 357 #endif 363 358 /*! \} */ 364 359 /*---------------------------------------------------------------------*/ trunk/Source/System/FieldContainer/Fields/Base/OSGFieldContainerPtrParentMField.inl
r1123 r1153 96 96 } 97 97 98 #if 099 template<class ValueT, typename RefCountPolicy, Int32 iNamespace> inline100 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> inline109 const typename FieldContainerPtrMField<ValueT,110 RefCountPolicy,111 iNamespace >::StorageType &112 FieldContainerPtrMField<ValueT,113 RefCountPolicy,114 iNamespace >::getValues(void) const115 {116 return (this->template dcast<typename Self::StorageType>());117 }118 #endif119 98 120 99 template<class ValueT, typename RefCountPolicy, Int32 iNamespace> inline … … 209 188 typename FieldContainerPtrParentMField<ValueT, 210 189 RefCountPolicy, 211 iNamespace >::iterator212 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> inline222 typename FieldContainerPtrParentMField<ValueT,223 RefCountPolicy,224 iNamespace >::iterator225 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> inline235 typename FieldContainerPtrParentMField<ValueT,236 RefCountPolicy,237 190 iNamespace >::const_iterator 238 191 FieldContainerPtrParentMField<ValueT, RefCountPolicy, iNamespace>::begin(void) const … … 327 280 #if 0 328 281 template<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> inline338 282 void FieldContainerPtrMField<ValueT, RefCountPolicy, iNamespace>::replace(UInt32 uiIdx, 339 283 ArgumentType value) … … 353 297 OSG::setRefdX(*tmpIt, value); 354 298 } 355 356 #if 0357 template<class ValueT, typename RefCountPolicy, Int32 iNamespace> inline358 typename FieldContainerPtrMField<ValueT, iNamespace>::reference359 FieldContainerPtrMField<ValueT,360 RefCountPolicy,361 iNamespace >::operator [](UInt32 index)362 {363 return (this->template dcast<typename Self::StorageType>())[index];364 }365 #endif366 299 #endif 367 300 … … 378 311 } 379 312 313 #if 0 380 314 template<class ValueT, typename RefCountPolicy, Int32 iNamespace> inline 381 315 bool FieldContainerPtrParentMField<ValueT, … … 386 320 return (_values == source._values && _vParentPos == source._vParentPos); 387 321 } 388 322 #endif 323 324 #ifdef OSG_MT_CPTR_ASPECT 389 325 template<class ValueT, typename RefCountPolicy, Int32 iNamespace> inline 390 326 void FieldContainerPtrParentMField<ValueT, … … 420 356 _vParentPos = source._vParentPos; 421 357 } 422 358 #endif 423 359 424 360 template<class ValueT, typename RefCountPolicy, Int32 iNamespace> inline
