Changeset 607

Show
Ignore:
Timestamp:
03/15/07 17:35:57 (2 years ago)
Author:
allenb
Message:

Make the shareValuesV and cloneValuesV methods non-pure. They now have a default implementation that simply asserts to say that they need to be implemented. This
was needed because it appears there are bugs in gcc 4.1 that prevent this code from being parsed and wrapped correctly for pyopensg. This can/should be changed back
when possible.

See ticket:169

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Source/System/FieldContainer/Base/OSGFieldDescriptionBase.cpp

    r593 r607  
    151151/*                             Comparison                                  */ 
    152152 
     153void FieldDescriptionBase::cloneValuesV( 
     154     const Field         *pSrc, 
     155     const UInt32         fieldId, 
     156           FCPtrConstArg  pDst, 
     157     const TypePtrVector &shareTypes, 
     158     const TypePtrVector &ignoreTypes, 
     159     const TypeIdVector  &shareGroupIds, 
     160     const TypeIdVector  &ignoreGroupIds) const 
     161{ 
     162   OSG_ASSERT(false && "Must define cloneValuesV"); 
     163} 
     164 
     165void FieldDescriptionBase::shareValuesV( 
     166     const Field         *pSrc, 
     167     const UInt32         fieldId, 
     168           FCPtrConstArg  pDst, 
     169     const TypePtrVector &cloneTypes, 
     170     const TypePtrVector &ignoreTypes, 
     171     const TypeIdVector  &cloneGroupIds, 
     172     const TypeIdVector  &ignoreGroupIds) const 
     173{ 
     174   OSG_ASSERT(false && "Must define shareValuesV"); 
     175} 
  • trunk/Source/System/FieldContainer/Base/OSGFieldDescriptionBase.h

    r593 r607  
    240240        const UInt32         fieldId, 
    241241              FCPtrConstArg  pDst, 
    242         const TypePtrVector &shareTypes     = TypePtrVector(),  
     242        const TypePtrVector &shareTypes     = TypePtrVector(), 
    243243        const TypePtrVector &ignoreTypes    = TypePtrVector(), 
    244244        const TypeIdVector  &shareGroupIds  = TypeIdVector (), 
    245         const TypeIdVector  &ignoreGroupIds = TypeIdVector ()) const = 0
     245        const TypeIdVector  &ignoreGroupIds = TypeIdVector ()) const
    246246 
    247247    virtual void shareValuesV( 
     
    252252        const TypePtrVector &ignoreTypes    = TypePtrVector(), 
    253253        const TypeIdVector  &cloneGroupIds  = TypeIdVector (), 
    254         const TypeIdVector  &ignoreGroupIds = TypeIdVector ()) const = 0
     254        const TypeIdVector  &ignoreGroupIds = TypeIdVector ()) const
    255255 
    256256    /*! \}                                                                 */