- Timestamp:
- 05/05/08 07:12:19 (4 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Source/System/FieldContainer/Misc/OSGContainerCollectionBase.cpp
r1193 r1198 87 87 */ 88 88 89 /*! \var FieldContainer PtrContainerCollectionBase::_mfContainers89 /*! \var FieldContainer * ContainerCollectionBase::_mfContainers 90 90 A list of containers held in the collection. 91 91 */ … … 221 221 222 222 223 void ContainerCollectionBase::pushToContainers( const FieldContainerPtrvalue)223 void ContainerCollectionBase::pushToContainers(FieldContainer * const value) 224 224 { 225 225 editMField(ContainersFieldMask, _mfContainers); … … 259 259 } 260 260 261 void ContainerCollectionBase::removeFromContainers( const FieldContainerPtrvalue)261 void ContainerCollectionBase::removeFromContainers(FieldContainer * const value) 262 262 { 263 263 Int32 iElemIdx = _mfContainers.findIndex(value); … … 337 337 ContainerCollectionTransitPtr fc; 338 338 339 if(getClassType().getPrototype() != N ullFC)339 if(getClassType().getPrototype() != NULL) 340 340 { 341 341 FieldContainerTransitPtr tmpPtr = … … 353 353 ContainerCollectionTransitPtr fc; 354 354 355 if(getClassType().getPrototype() != N ullFC)355 if(getClassType().getPrototype() != NULL) 356 356 { 357 357 FieldContainerTransitPtr tmpPtr = … … 365 365 366 366 //! create an empty new instance of the class, do not copy the prototype 367 ContainerCollection PtrContainerCollectionBase::createEmpty(void)368 { 369 ContainerCollection PtrreturnValue;367 ContainerCollection *ContainerCollectionBase::createEmpty(void) 368 { 369 ContainerCollection *returnValue; 370 370 371 371 newPtr<ContainerCollection>(returnValue, Thread::getCurrentLocalFlags()); … … 377 377 } 378 378 379 ContainerCollection PtrContainerCollectionBase::createEmptyLocal(BitVector bFlags)380 { 381 ContainerCollection PtrreturnValue;379 ContainerCollection *ContainerCollectionBase::createEmptyLocal(BitVector bFlags) 380 { 381 ContainerCollection *returnValue; 382 382 383 383 newPtr<ContainerCollection>(returnValue, bFlags); … … 390 390 FieldContainerTransitPtr ContainerCollectionBase::shallowCopy(void) const 391 391 { 392 ContainerCollection PtrtmpPtr;392 ContainerCollection *tmpPtr; 393 393 394 394 newPtr(tmpPtr, … … 406 406 BitVector bFlags) const 407 407 { 408 ContainerCollection PtrtmpPtr;408 ContainerCollection *tmpPtr; 409 409 410 410 newPtr(tmpPtr, dynamic_cast<const ContainerCollection *>(this), bFlags); … … 529 529 530 530 #ifdef OSG_MT_CPTR_ASPECT 531 FieldContainer PtrContainerCollectionBase::createAspectCopy(void) const532 { 533 ContainerCollection PtrreturnValue;531 FieldContainer *ContainerCollectionBase::createAspectCopy(void) const 532 { 533 ContainerCollection *returnValue; 534 534 535 535 newAspectCopy(returnValue, … … 550 550 551 551 #if !defined(OSG_DO_DOC) || defined(OSG_DOC_DEV) 552 DataType FieldTraits<ContainerCollection Ptr>::_type("ContainerCollectionPtr", "AttachmentPtr");552 DataType FieldTraits<ContainerCollection *>::_type("ContainerCollectionPtr", "AttachmentPtr"); 553 553 #endif 554 554 555 OSG_FIELDTRAITS_GETTYPE(ContainerCollection Ptr)555 OSG_FIELDTRAITS_GETTYPE(ContainerCollection *) 556 556 557 557 OSG_EXPORT_PTR_SFIELD_FULL(PointerSField, 558 ContainerCollection Ptr,558 ContainerCollection *, 559 559 0); 560 560 561 561 OSG_EXPORT_PTR_MFIELD_FULL(PointerMField, 562 ContainerCollection Ptr,562 ContainerCollection *, 563 563 0); 564 564
