Changeset 1060 for branches/Carsten_PtrWork2/Source/System/FieldContainer/Fields/OSGEditMParentFCPointerFieldHandle.inl
- Timestamp:
- 02/12/08 09:51:59 (9 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/Carsten_PtrWork2/Source/System/FieldContainer/Fields/OSGEditMParentFCPointerFieldHandle.inl
r1039 r1060 80 80 } 81 81 82 /*-------------------------------------------------------------------------*/83 /* Type Query */84 85 inline bool86 EditMParentFCPointerFieldBaseHandle::isParentPointerField(void) const87 {88 return true;89 }90 91 82 /*! \class EditMParentFCPointerFieldHandle<FieldT> 92 83 … … 198 189 EditMParentFCPointerFieldHandle<FieldT>::equal(EditFieldHandlePtr rhs) 199 190 { 200 FWARNING(("EditMParentFCPointerFieldHandle<FieldT>::equal(): NIY\n")); 201 202 return false; 191 bool retVal = true; 192 193 EditMParentFCPointerFieldBaseHandlePtr castRHS = 194 boost::dynamic_pointer_cast<EditMParentFCPointerFieldBaseHandle>(rhs); 195 196 if(castRHS == NULL) 197 { 198 retVal = false; 199 } 200 else 201 { 202 UInt32 thisSize = this ->size(); 203 UInt32 rhsSize = castRHS->size(); 204 205 if(thisSize != rhsSize) 206 { 207 retVal = false; 208 } 209 else 210 { 211 for(UInt32 i = 0; i < thisSize; ++i) 212 { 213 if(this->get(i) != castRHS->get(i)) 214 { 215 retVal = false; 216 break; 217 } 218 } 219 } 220 } 221 222 return retVal; 203 223 } 204 224
