Changeset 1139
- Timestamp:
- 04/09/08 00:30:57 (1 month ago)
- Files:
-
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGChildPointerMField.h (modified) (8 diffs)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGChildPointerMField.inl (modified) (32 diffs)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGNoRefCountAccessHandler.h (deleted)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGNoRefCountAccessHandler.inl (deleted)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGNoRefCountAccessHandlerDecl.h (deleted)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGParentPointerMField.h (modified) (2 diffs)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGParentPointerMField.inl (modified) (2 diffs)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGParentPointerMFieldBase.h (modified) (2 diffs)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGParentPointerSField.h (modified) (1 diff)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGParentPointerSFieldBase.h (modified) (2 diffs)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGPointerAccessHandler.h (moved) (moved from trunk/Source/System/FieldContainer/Fields/PointerFields/OSGWeakAccessHandlerDecl.h) (5 diffs)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGPointerAccessHandler.inl (copied) (copied from trunk/Source/System/FieldContainer/Fields/PointerFields/OSGPointerSFieldBase.inl) (3 diffs)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGPointerFieldConfigs.h (modified) (2 diffs)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGPointerMFieldBase.cpp (copied) (copied from trunk/Source/System/FieldContainer/Fields/PointerFields/OSGPointerSFieldBase.inl) (2 diffs)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGPointerMFieldBase.inl (modified) (1 diff)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGPointerMFieldCommon.h (modified) (1 diff)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGPointerMFieldCommon.inl (modified) (1 diff)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGPointerSFieldBase.cpp (copied) (copied from trunk/Source/System/FieldContainer/Fields/PointerFields/OSGPointerSFieldBase.inl) (2 diffs)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGPointerSFieldBase.h (modified) (1 diff)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGPointerSFieldBase.inl (modified) (1 diff)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGPointerSFieldCommon.h (modified) (2 diffs)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGUnrecordedAccessHandler.h (deleted)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGUnrecordedAccessHandler.inl (deleted)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGUnrecordedAccessHandlerDecl.h (deleted)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGUnrecordedPointerMField.h (modified) (5 diffs)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGUnrecordedPointerMField.inl (modified) (9 diffs)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGUnrecordedPointerMFieldBase.h (modified) (2 diffs)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGUnrecordedPointerSField.h (modified) (5 diffs)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGUnrecordedPointerSField.inl (modified) (3 diffs)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGUnrecordedPointerSFieldBase.h (modified) (2 diffs)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGWeakAccessHandler.h (deleted)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGWeakAccessHandler.inl (deleted)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGWeakPointerMField.h (modified) (7 diffs)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGWeakPointerMField.inl (modified) (9 diffs)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGWeakPointerMFieldBase.h (modified) (2 diffs)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGWeakPointerSField.h (modified) (7 diffs)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGWeakPointerSField.inl (modified) (3 diffs)
- trunk/Source/System/FieldContainer/Fields/PointerFields/OSGWeakPointerSFieldBase.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Source/System/FieldContainer/Fields/PointerFields/OSGChildPointerMField.h
r1135 r1139 26 26 class ChildPointerMField; 27 27 28 template <class ObjectTypeT >28 template <class ObjectTypeT, Int32 NamespaceI> 29 29 class ChildMFieldConstIterator; 30 30 … … 34 34 /*---------------------------------------------------------------------------*/ 35 35 36 template <class ObjectTypeT >36 template <class ObjectTypeT, Int32 iNamespace> 37 37 class ChildMFieldIterator 38 : public ChildPointerMField<ObjectTypeT, 0>::PtrStoreItType38 : public ChildPointerMField<ObjectTypeT, iNamespace>::PtrStoreItType 39 39 { 40 40 /*========================== PUBLIC =================================*/ … … 47 47 48 48 typedef ChildMFieldIterator Self; 49 typedef typename ChildPointerMField<ObjectTypeT, 0>::PtrStoreItType49 typedef typename ChildPointerMField<ObjectTypeT, iNamespace>::PtrStoreItType 50 50 Inherited; 51 51 52 typedef ChildPointerMField<ObjectTypeT, 0> MFieldType;53 typedef ChildFieldConfig <ObjectTypeT, 0> FieldConfig;52 typedef ChildPointerMField<ObjectTypeT, iNamespace> MFieldType; 53 typedef ChildFieldConfig <ObjectTypeT, iNamespace> FieldConfig; 54 54 typedef typename MFieldType::AccessHandler AccessHandler; 55 55 … … 120 120 }; 121 121 122 template <class ObjectTypeT >123 typename ChildMFieldIterator<ObjectTypeT >::difference_type124 operator-(ChildMFieldIterator<ObjectTypeT > const &lhs,125 ChildMFieldIterator<ObjectTypeT > const &rhs );126 127 template <class ObjectTypeT >128 ChildMFieldIterator<ObjectTypeT >122 template <class ObjectTypeT, Int32 iNamespace> 123 typename ChildMFieldIterator<ObjectTypeT, iNamespace>::difference_type 124 operator-(ChildMFieldIterator<ObjectTypeT, iNamespace> const &lhs, 125 ChildMFieldIterator<ObjectTypeT, iNamespace> const &rhs ); 126 127 template <class ObjectTypeT, Int32 iNamespace> 128 ChildMFieldIterator<ObjectTypeT, iNamespace> 129 129 operator+( 130 typename ChildMFieldIterator<ObjectTypeT >::differece_type const offset,131 ChildMFieldIterator<ObjectTypeT > const &rhs );130 typename ChildMFieldIterator<ObjectTypeT, iNamespace>::differece_type const offset, 131 ChildMFieldIterator<ObjectTypeT, iNamespace> const &rhs ); 132 132 133 133 /*---------------------------------------------------------------------------*/ … … 135 135 /*---------------------------------------------------------------------------*/ 136 136 137 template <class ObjectTypeT >137 template <class ObjectTypeT, Int32 iNamespace> 138 138 class ChildMFieldConstIterator 139 : public ChildPointerMField<ObjectTypeT, 0>::PtrStoreConstItType139 : public ChildPointerMField<ObjectTypeT, iNamespace>::PtrStoreConstItType 140 140 { 141 141 /*========================== PUBLIC =================================*/ … … 148 148 149 149 typedef ChildMFieldConstIterator Self; 150 typedef typename ChildPointerMField<ObjectTypeT, 0>::PtrStoreConstItType150 typedef typename ChildPointerMField<ObjectTypeT, iNamespace>::PtrStoreConstItType 151 151 Inherited; 152 152 153 typedef ChildPointerMField<ObjectTypeT, 0> MFieldType;154 typedef ChildFieldConfig <ObjectTypeT, 0> FieldConfig;153 typedef ChildPointerMField<ObjectTypeT, iNamespace> MFieldType; 154 typedef ChildFieldConfig <ObjectTypeT, iNamespace> FieldConfig; 155 155 typedef typename MFieldType::AccessHandler AccessHandler; 156 156 … … 175 175 ChildMFieldConstIterator(void ); 176 176 ChildMFieldConstIterator(Self const &source ); 177 ChildMFieldConstIterator(ChildMFieldIterator<ObjectTypeT > const &fieldIter);177 ChildMFieldConstIterator(ChildMFieldIterator<ObjectTypeT, iNamespace> const &fieldIter); 178 178 ChildMFieldConstIterator(PtrStoreConstItType const &storeIter); 179 179 … … 219 219 }; 220 220 221 template <class ObjectTypeT >222 typename ChildMFieldConstIterator<ObjectTypeT >::difference_type223 operator-(ChildMFieldConstIterator<ObjectTypeT > const &lhs,224 ChildMFieldConstIterator<ObjectTypeT > const &rhs );221 template <class ObjectTypeT, Int32 iNamespace> 222 typename ChildMFieldConstIterator<ObjectTypeT, iNamespace>::difference_type 223 operator-(ChildMFieldConstIterator<ObjectTypeT, iNamespace> const &lhs, 224 ChildMFieldConstIterator<ObjectTypeT, iNamespace> const &rhs ); 225 225 226 template <class ObjectTypeT >227 typename ChildMFieldConstIterator<ObjectTypeT >::difference_type228 operator-(ChildMFieldIterator <ObjectTypeT > const &lhs,229 ChildMFieldConstIterator<ObjectTypeT > const &rhs );230 231 template <class ObjectTypeT >232 typename ChildMFieldConstIterator<ObjectTypeT >::difference_type233 operator-(ChildMFieldConstIterator<ObjectTypeT > const &lhs,234 ChildMFieldIterator <ObjectTypeT > const &rhs );226 template <class ObjectTypeT, Int32 iNamespace> 227 typename ChildMFieldConstIterator<ObjectTypeT, iNamespace>::difference_type 228 operator-(ChildMFieldIterator <ObjectTypeT, iNamespace> const &lhs, 229 ChildMFieldConstIterator<ObjectTypeT, iNamespace> const &rhs ); 230 231 template <class ObjectTypeT, Int32 iNamespace> 232 typename ChildMFieldConstIterator<ObjectTypeT, iNamespace>::difference_type 233 operator-(ChildMFieldConstIterator<ObjectTypeT, iNamespace> const &lhs, 234 ChildMFieldIterator <ObjectTypeT, iNamespace> const &rhs ); 235 235 236 template <class ObjectTypeT >237 ChildMFieldConstIterator<ObjectTypeT >236 template <class ObjectTypeT, Int32 iNamespace> 237 ChildMFieldConstIterator<ObjectTypeT, iNamespace> 238 238 operator+( 239 typename ChildMFieldConstIterator<ObjectTypeT >::difference_type const offset,240 ChildMFieldConstIterator<ObjectTypeT > const &rhs );239 typename ChildMFieldConstIterator<ObjectTypeT, iNamespace>::difference_type const offset, 240 ChildMFieldConstIterator<ObjectTypeT, iNamespace> const &rhs ); 241 241 242 242 /*-------------------------------------------------------------------------*/ trunk/Source/System/FieldContainer/Fields/PointerFields/OSGChildPointerMField.inl
r1135 r1139 16 16 /* Constructors */ 17 17 18 template <class ObjectTypeT >18 template <class ObjectTypeT, Int32 iNamespace> 19 19 inline 20 ChildMFieldIterator<ObjectTypeT>::ChildMFieldIterator(void)20 ChildMFieldIterator<ObjectTypeT, iNamespace>::ChildMFieldIterator(void) 21 21 22 22 : Inherited( ), … … 25 25 } 26 26 27 template <class ObjectTypeT >27 template <class ObjectTypeT, Int32 iNamespace> 28 28 inline 29 ChildMFieldIterator<ObjectTypeT >::ChildMFieldIterator(Self const &source)29 ChildMFieldIterator<ObjectTypeT, iNamespace>::ChildMFieldIterator(Self const &source) 30 30 31 31 : Inherited(source ), … … 34 34 } 35 35 36 template <class ObjectTypeT >36 template <class ObjectTypeT, Int32 iNamespace> 37 37 inline 38 ChildMFieldIterator<ObjectTypeT >::ChildMFieldIterator(38 ChildMFieldIterator<ObjectTypeT, iNamespace>::ChildMFieldIterator( 39 39 PtrStoreItType const &storeIter, MFieldType *pField) 40 40 … … 47 47 /* Destructor */ 48 48 49 template <class ObjectTypeT >49 template <class ObjectTypeT, Int32 iNamespace> 50 50 inline 51 ChildMFieldIterator<ObjectTypeT >::~ChildMFieldIterator(void)51 ChildMFieldIterator<ObjectTypeT, iNamespace>::~ChildMFieldIterator(void) 52 52 { 53 53 } … … 56 56 /* Operators */ 57 57 58 template <class ObjectTypeT >59 inline typename ChildMFieldIterator<ObjectTypeT >::reference60 ChildMFieldIterator<ObjectTypeT >::operator* (void) const58 template <class ObjectTypeT, Int32 iNamespace> 59 inline typename ChildMFieldIterator<ObjectTypeT, iNamespace>::reference 60 ChildMFieldIterator<ObjectTypeT, iNamespace>::operator* (void) const 61 61 { 62 62 return reference(*this, _pField); … … 67 67 returned by this function, it will break the reference counting. 68 68 */ 69 template <class ObjectTypeT >70 inline typename ChildMFieldIterator<ObjectTypeT >::pointer71 ChildMFieldIterator<ObjectTypeT >::operator->(void) const69 template <class ObjectTypeT, Int32 iNamespace> 70 inline typename ChildMFieldIterator<ObjectTypeT, iNamespace>::pointer 71 ChildMFieldIterator<ObjectTypeT, iNamespace>::operator->(void) const 72 72 { 73 73 return reinterpret_cast<pointer>(this->Inherited::operator->()); 74 74 } 75 75 76 template <class ObjectTypeT >77 inline typename ChildMFieldIterator<ObjectTypeT >::reference78 ChildMFieldIterator<ObjectTypeT >::operator[](76 template <class ObjectTypeT, Int32 iNamespace> 77 inline typename ChildMFieldIterator<ObjectTypeT, iNamespace>::reference 78 ChildMFieldIterator<ObjectTypeT, iNamespace>::operator[]( 79 79 difference_type const offset) const 80 80 { … … 82 82 } 83 83 84 template <class ObjectTypeT >85 inline typename ChildMFieldIterator<ObjectTypeT >::Self &86 ChildMFieldIterator<ObjectTypeT >::operator++(void)84 template <class ObjectTypeT, Int32 iNamespace> 85 inline typename ChildMFieldIterator<ObjectTypeT, iNamespace>::Self & 86 ChildMFieldIterator<ObjectTypeT, iNamespace>::operator++(void) 87 87 { 88 88 this->Inherited::operator++(); … … 91 91 } 92 92 93 template <class ObjectTypeT >94 inline typename ChildMFieldIterator<ObjectTypeT >::Self95 ChildMFieldIterator<ObjectTypeT >::operator++(int)93 template <class ObjectTypeT, Int32 iNamespace> 94 inline typename ChildMFieldIterator<ObjectTypeT, iNamespace>::Self 95 ChildMFieldIterator<ObjectTypeT, iNamespace>::operator++(int) 96 96 { 97 97 Self retVal = *this; … … 102 102 } 103 103 104 template <class ObjectTypeT >105 inline typename ChildMFieldIterator<ObjectTypeT >::Self &106 ChildMFieldIterator<ObjectTypeT >::operator--(void)104 template <class ObjectTypeT, Int32 iNamespace> 105 inline typename ChildMFieldIterator<ObjectTypeT, iNamespace>::Self & 106 ChildMFieldIterator<ObjectTypeT, iNamespace>::operator--(void) 107 107 { 108 108 this->Inherited::operator--(); … … 111 111 } 112 112 113 template <class ObjectTypeT >114 inline typename ChildMFieldIterator<ObjectTypeT >::Self115 ChildMFieldIterator<ObjectTypeT >::operator--(int)113 template <class ObjectTypeT, Int32 iNamespace> 114 inline typename ChildMFieldIterator<ObjectTypeT, iNamespace>::Self 115 ChildMFieldIterator<ObjectTypeT, iNamespace>::operator--(int) 116 116 { 117 117 Self retVal = *this; … … 122 122 } 123 123 124 template <class ObjectTypeT >125 inline typename ChildMFieldIterator<ObjectTypeT >::Self &126 ChildMFieldIterator<ObjectTypeT >::operator+=(difference_type const offset)124 template <class ObjectTypeT, Int32 iNamespace> 125 inline typename ChildMFieldIterator<ObjectTypeT, iNamespace>::Self & 126 ChildMFieldIterator<ObjectTypeT, iNamespace>::operator+=(difference_type const offset) 127 127 { 128 128 this->Inherited::operator+=(offset); … … 131 131 } 132 132 133 template <class ObjectTypeT >134 inline typename ChildMFieldIterator<ObjectTypeT >::Self135 ChildMFieldIterator<ObjectTypeT >::operator+ (133 template <class ObjectTypeT, Int32 iNamespace> 134 inline typename ChildMFieldIterator<ObjectTypeT, iNamespace>::Self 135 ChildMFieldIterator<ObjectTypeT, iNamespace>::operator+ ( 136 136 difference_type const offset) const 137 137 { … … 141 141 } 142 142 143 template <class ObjectTypeT >144 inline typename ChildMFieldIterator<ObjectTypeT >::Self &145 ChildMFieldIterator<ObjectTypeT >::operator-=(difference_type const offset)143 template <class ObjectTypeT, Int32 iNamespace> 144 inline typename ChildMFieldIterator<ObjectTypeT, iNamespace>::Self & 145 ChildMFieldIterator<ObjectTypeT, iNamespace>::operator-=(difference_type const offset) 146 146 { 147 147 this->Inherited::operator-=(offset); … … 150 150 } 151 151 152 template <class ObjectTypeT >153 inline typename ChildMFieldIterator<ObjectTypeT >::Self154 ChildMFieldIterator<ObjectTypeT >::operator- (152 template <class ObjectTypeT, Int32 iNamespace> 153 inline typename ChildMFieldIterator<ObjectTypeT, iNamespace>::Self 154 ChildMFieldIterator<ObjectTypeT, iNamespace>::operator- ( 155 155 difference_type const offset) const 156 156 { … … 163 163 /* Base */ 164 164 165 template <class ObjectTypeT >166 inline typename ChildMFieldIterator<ObjectTypeT >::PtrStoreItType const &167 ChildMFieldIterator<ObjectTypeT >::base(void) const165 template <class ObjectTypeT, Int32 iNamespace> 166 inline typename ChildMFieldIterator<ObjectTypeT, iNamespace>::PtrStoreItType const & 167 ChildMFieldIterator<ObjectTypeT, iNamespace>::base(void) const 168 168 { 169 169 return *this; … … 173 173 /* Free Functions */ 174 174 175 template <class ObjectTypeT >176 typename ChildMFieldIterator<ObjectTypeT >::difference_type177 operator-(ChildMFieldIterator<ObjectTypeT > const &lhs,178 ChildMFieldIterator<ObjectTypeT > const &rhs )175 template <class ObjectTypeT, Int32 iNamespace> 176 typename ChildMFieldIterator<ObjectTypeT, iNamespace>::difference_type 177 operator-(ChildMFieldIterator<ObjectTypeT, iNamespace> const &lhs, 178 ChildMFieldIterator<ObjectTypeT, iNamespace> const &rhs ) 179 179 { 180 180 return std::distance< 181 typename ChildMFieldIterator<ObjectTypeT >::StoreItType181 typename ChildMFieldIterator<ObjectTypeT, iNamespace>::StoreItType 182 182 >(lhs, rhs); 183 183 } 184 184 185 template <class ObjectTypeT >186 ChildMFieldIterator<ObjectTypeT >185 template <class ObjectTypeT, Int32 iNamespace> 186 ChildMFieldIterator<ObjectTypeT, iNamespace> 187 187 operator+( 188 typename ChildMFieldIterator<ObjectTypeT >::differece_type const offset,189 ChildMFieldIterator<ObjectTypeT > const &rhs )190 { 191 return ChildMFieldIterator<ObjectTypeT >(rhs) += offset;188 typename ChildMFieldIterator<ObjectTypeT, iNamespace>::differece_type const offset, 189 ChildMFieldIterator<ObjectTypeT, iNamespace> const &rhs ) 190 { 191 return ChildMFieldIterator<ObjectTypeT, iNamespace>(rhs) += offset; 192 192 } 193 193 … … 199 199 /* Constructors */ 200 200 201 template <class ObjectTypeT >201 template <class ObjectTypeT, Int32 iNamespace> 202 202 inline 203 ChildMFieldConstIterator<ObjectTypeT >::ChildMFieldConstIterator(void)203 ChildMFieldConstIterator<ObjectTypeT, iNamespace>::ChildMFieldConstIterator(void) 204 204 205 205 : Inherited() … … 207 207 } 208 208 209 template <class ObjectTypeT >209 template <class ObjectTypeT, Int32 iNamespace> 210 210 inline 211 ChildMFieldConstIterator<ObjectTypeT >::ChildMFieldConstIterator(211 ChildMFieldConstIterator<ObjectTypeT, iNamespace>::ChildMFieldConstIterator( 212 212 Self const &source) 213 213 … … 216 216 } 217 217 218 template <class ObjectTypeT >218 template <class ObjectTypeT, Int32 iNamespace> 219 219 inline 220 ChildMFieldConstIterator<ObjectTypeT >::ChildMFieldConstIterator(221 ChildMFieldIterator<ObjectTypeT > const &fieldIter)220 ChildMFieldConstIterator<ObjectTypeT, iNamespace>::ChildMFieldConstIterator( 221 ChildMFieldIterator<ObjectTypeT, iNamespace> const &fieldIter) 222 222 223 223 : Inherited(fieldIter.base()) … … 225 225 } 226 226 227 template <class ObjectTypeT >227 template <class ObjectTypeT, Int32 iNamespace> 228 228 inline 229 ChildMFieldConstIterator<ObjectTypeT >::ChildMFieldConstIterator(229 ChildMFieldConstIterator<ObjectTypeT, iNamespace>::ChildMFieldConstIterator( 230 230 PtrStoreConstItType const &storeIter) 231 231 … … 237 237 /* Destructor */ 238 238 239 template <class ObjectTypeT >239 template <class ObjectTypeT, Int32 iNamespace> 240 240 inline 241 ChildMFieldConstIterator<ObjectTypeT >::~ChildMFieldConstIterator(void)241 ChildMFieldConstIterator<ObjectTypeT, iNamespace>::~ChildMFieldConstIterator(void) 242 242 { 243 243 } … … 246 246 /* Operators */ 247 247 248 template <class ObjectTypeT >249 inline typename ChildMFieldConstIterator<ObjectTypeT >::reference250 ChildMFieldConstIterator<ObjectTypeT >::operator* (void) const248 template <class ObjectTypeT, Int32 iNamespace> 249 inline typename ChildMFieldConstIterator<ObjectTypeT, iNamespace>::reference 250 ChildMFieldConstIterator<ObjectTypeT, iNamespace>::operator* (void) const 251 251 { 252 252 return reinterpret_cast<reference>(this->Inherited::operator*()); 253 253 } 254 254 255 template <class ObjectTypeT >256 inline typename ChildMFieldConstIterator<ObjectTypeT >::pointer257 ChildMFieldConstIterator<ObjectTypeT >::operator->(void) const255 template <class ObjectTypeT, Int32 iNamespace> 256 inline typename ChildMFieldConstIterator<ObjectTypeT, iNamespace>::pointer 257 ChildMFieldConstIterator<ObjectTypeT, iNamespace>::operator->(void) const 258 258 { 259 259 return reinterpret_cast<pointer>(this->Inherited::operator->()); 260 260 } 261 261 262 template <class ObjectTypeT >263 inline typename ChildMFieldConstIterator<ObjectTypeT >::reference264 ChildMFieldConstIterator<ObjectTypeT >::operator[](262 template <class ObjectTypeT, Int32 iNamespace> 263 inline typename ChildMFieldConstIterator<ObjectTypeT, iNamespace>::reference 264 ChildMFieldConstIterator<ObjectTypeT, iNamespace>::operator[]( 265 265 difference_type const offset) const 266 266 { … … 268 268 } 269 269 270 template <class ObjectTypeT >271 inline typename ChildMFieldConstIterator<ObjectTypeT >::Self &272 ChildMFieldConstIterator<ObjectTypeT >::operator++(void)270 template <class ObjectTypeT, Int32 iNamespace> 271 inline typename ChildMFieldConstIterator<ObjectTypeT, iNamespace>::Self & 272 ChildMFieldConstIterator<ObjectTypeT, iNamespace>::operator++(void) 273 273 { 274 274 this->Inherited::operator++(); … … 277 277 } 278 278 279 template <class ObjectTypeT >280 inline typename ChildMFieldConstIterator<ObjectTypeT >::Self281 ChildMFieldConstIterator<ObjectTypeT >::operator++(int)279 template <class ObjectTypeT, Int32 iNamespace> 280 inline typename ChildMFieldConstIterator<ObjectTypeT, iNamespace>::Self 281 ChildMFieldConstIterator<ObjectTypeT, iNamespace>::operator++(int) 282 282 { 283 283 Self retVal = *this; … … 288 288 } 289 289 290 template <class ObjectTypeT >291 inline typename ChildMFieldConstIterator<ObjectTypeT >::Self &292 ChildMFieldConstIterator<ObjectTypeT >::operator--(void)290 template <class ObjectTypeT, Int32 iNamespace> 291 inline typename ChildMFieldConstIterator<ObjectTypeT, iNamespace>::Self & 292 ChildMFieldConstIterator<ObjectTypeT, iNamespace>::operator--(void) 293 293 { 294 294 this->Inherited::operator--(); … … 297 297 } 298 298 299 template <class ObjectTypeT >300 inline typename ChildMFieldConstIterator<ObjectTypeT >::Self301 ChildMFieldConstIterator<ObjectTypeT >::operator--(int)299 template <class ObjectTypeT, Int32 iNamespace> 300 inline typename ChildMFieldConstIterator<ObjectTypeT, iNamespace>::Self 301 ChildMFieldConstIterator<ObjectTypeT, iNamespace>::operator--(int) 302 302 { 303 303 Self retVal = *this; … … 308 308 } 309 309 310 template <class ObjectTypeT >311 inline typename ChildMFieldConstIterator<ObjectTypeT >::Self &312 ChildMFieldConstIterator<ObjectTypeT >::operator+=(310 template <class ObjectTypeT, Int32 iNamespace> 311 inline typename ChildMFieldConstIterator<ObjectTypeT, iNamespace>::Self & 312 ChildMFieldConstIterator<ObjectTypeT, iNamespace>::operator+=( 313 313 difference_type const offset) 314 314 { … … 318 318 } 319 319 320 template <class ObjectTypeT >321 inline typename ChildMFieldConstIterator<ObjectTypeT >::Self322 ChildMFieldConstIterator<ObjectTypeT >::operator+ (320 template <class ObjectTypeT, Int32 iNamespace> 321 inline typename ChildMFieldConstIterator<ObjectTypeT, iNamespace>::Self 322 ChildMFieldConstIterator<ObjectTypeT, iNamespace>::operator+ ( 323 323 difference_type const offset) const 324 324 { … … 328 328 } 329 329 330 template <class ObjectTypeT >331 inline typename ChildMFieldConstIterator<ObjectTypeT >::Self &332 ChildMFieldConstIterator<ObjectTypeT >::operator-=(330 template <class ObjectTypeT, Int32 iNamespace> 331 inline typename ChildMFieldConstIterator<ObjectTypeT, iNamespace>::Self & 332 ChildMFieldConstIterator<ObjectTypeT, iNamespace>::operator-=( 333 333 difference_type const offset) 334 334 { … … 338 338 } 339 339 340 template <class ObjectTypeT >341 inline typename ChildMFieldConstIterator<ObjectTypeT >::Self342 ChildMFieldConstIterator<ObjectTypeT >::operator- (340 template <class ObjectTypeT, Int32 iNamespace> 341 inline typename ChildMFieldConstIterator<ObjectTypeT, iNamespace>::Self 342 ChildMFieldConstIterator<ObjectTypeT, iNamespace>::operator- ( 343 343 difference_type const offset) const 344 344 { … … 351 351 /* Base */ 352 352 353 template <class ObjectTypeT >354 inline typename ChildMFieldConstIterator<ObjectTypeT >::PtrStoreConstItType const &355 ChildMFieldConstIterator<ObjectTypeT >::base(void) const353 template <class ObjectTypeT, Int32 iNamespace> 354 inline typename ChildMFieldConstIterator<ObjectTypeT, iNamespace>::PtrStoreConstItType const & 355 ChildMFieldConstIterator<ObjectTypeT, iNamespace>::base(void) const 356 356 { 357 357 return *this; … … 361 361 /* Free Functions */ 362 362 363 template <class ObjectTypeT >364 typename ChildMFieldConstIterator<ObjectTypeT >::difference_type365 operator-(ChildMFieldConstIterator<ObjectTypeT > const &lhs,366 ChildMFieldConstIterator<ObjectTypeT > const &rhs )367 { 368 return typename ChildMFieldConstIterator<ObjectTypeT >::363 template <class ObjectTypeT, Int32 iNamespace> 364 typename ChildMFieldConstIterator<ObjectTypeT, iNamespace>::difference_type 365 operator-(ChildMFieldConstIterator<ObjectTypeT, iNamespace> const &lhs, 366 ChildMFieldConstIterator<ObjectTypeT, iNamespace> const &rhs ) 367 { 368 return typename ChildMFieldConstIterator<ObjectTypeT, iNamespace>:: 369 369 PtrStoreConstItType(lhs) - 370 typename ChildMFieldConstIterator<ObjectTypeT >::370 typename ChildMFieldConstIterator<ObjectTypeT, iNamespace>:: 371 371 PtrStoreConstItType(rhs); 372 372 } 373 373 374 template <class ObjectTypeT >375 typename ChildMFieldConstIterator<ObjectTypeT >::difference_type376 operator-(ChildMFieldIterator <ObjectTypeT > const &lhs,377 ChildMFieldConstIterator<ObjectTypeT > const &rhs )378 { 379 return typename ChildMFieldIterator<ObjectTypeT >::374 template <class ObjectTypeT, Int32 iNamespace> 375 typename ChildMFieldConstIterator<ObjectTypeT, iNamespace>::difference_type 376 operator-(ChildMFieldIterator <ObjectTypeT, iNamespace> const &lhs, 377 ChildMFieldConstIterator<ObjectTypeT, iNamespace> const &rhs ) 378 { 379 return typename ChildMFieldIterator<ObjectTypeT, iNamespace>:: 380 380 PtrStoreItType(lhs) - 381 typename ChildMFieldConstIterator<ObjectTypeT >::381 typename ChildMFieldConstIterator<ObjectTypeT, iNamespace>:: 382 382 PtrStoreConstItType(rhs); 383 383 } 384 384 385 template <class ObjectTypeT >386 typename ChildMFieldConstIterator<ObjectTypeT >::difference_type387 operator-(ChildMFieldConstIterator<ObjectTypeT > const &lhs,388 ChildMFieldIterator <ObjectTypeT > const &rhs )389 { 390 return typename ChildMFieldConstIterator<ObjectTypeT >::385 template <class ObjectTypeT, Int32 iNamespace> 386 typename ChildMFieldConstIterator<ObjectTypeT, iNamespace>::difference_type 387 operator-(ChildMFieldConstIterator<ObjectTypeT, iNamespace> const &lhs, 388 ChildMFieldIterator <ObjectTypeT, iNamespace> const &rhs ) 389 { 390 return typename ChildMFieldConstIterator<ObjectTypeT, iNamespace>:: 391 391 PtrStoreConstItType(lhs) - 392 typename ChildMFieldIterator<ObjectTypeT >::392 typename ChildMFieldIterator<ObjectTypeT, iNamespace>:: 393 393 PtrStoreItType(rhs); 394 394 } 395 395 396 template <class ObjectTypeT >397 ChildMFieldConstIterator<ObjectTypeT >396 template <class ObjectTypeT, Int32 iNamespace> 397 ChildMFieldConstIterator<ObjectTypeT, iNamespace> 398 398 operator+( 399 typename ChildMFieldConstIterator<ObjectTypeT >::difference_type const offset,400 ChildMFieldConstIterator<ObjectTypeT > const &rhs )401 { 402 return ChildMFieldConstIterator<ObjectTypeT >(rhs) += offset;399 typename ChildMFieldConstIterator<ObjectTypeT, iNamespace>::difference_type const offset, 400 ChildMFieldConstIterator<ObjectTypeT, iNamespace> const &rhs ) 401 { 402 return ChildMFieldConstIterator<ObjectTypeT, iNamespace>(rhs) += offset; 403 403 } 404 404 trunk/Source/System/FieldContainer/Fields/PointerFields/OSGParentPointerMField.h
r1135 r1139 88 88 /*! \{ */ 89 89 90 reference operator* (void) const;90 // value_type operator* (void) const; 91 91 pointer operator->(void) const; 92 92 … … 323 323 OSG_END_NAMESPACE 324 324 325 #include "OSGWeakAccessHandler.h"326 327 325 #include "OSGParentPointerMField.inl" 328 326 trunk/Source/System/FieldContainer/Fields/PointerFields/OSGParentPointerMField.inl
r1135 r1139 56 56 /* Operators */ 57 57 58 #if 0 58 59 template <class ObjectTypeT> 59 60 inline typename ParentMFieldConstIterator<ObjectTypeT>::reference … … 62 63 return reference(*this, _idStoreIt); 63 64 } 65 #endif 64 66 65 67 template <class ObjectTypeT> trunk/Source/System/FieldContainer/Fields/PointerFields/OSGParentPointerMFieldBase.h
r1135 r1139 10 10 11 11 #include "OSGPointerMFieldCommon.h" 12 #include "OSG NoRefCountAccessHandlerDecl.h"12 #include "OSGPointerAccessHandler.h" 13 13 14 14 #ifdef OSG_DOC_FILES_IN_MODULE … … 40 40 typedef typename IdStoreType::const_iterator IdStoreConstItType; 41 41 42 typedef FieldTraits<IdStoredType, 43 NamespaceI > IdBaseTraitsType; 42 typedef FieldTraits<IdStoredType > IdBaseTraitsType; 44 43 45 44 typedef typename Inherited::size_type size_type; trunk/Source/System/FieldContainer/Fields/PointerFields/OSGParentPointerSField.h
r1135 r1139 197 197 OSG_END_NAMESPACE 198 198 199 #include "OSGWeakAccessHandler.h"200 201 199 #include "OSGParentPointerSField.inl" 202 200 trunk/Source/System/FieldContainer/Fields/PointerFields/OSGParentPointerSFieldBase.h
r1135 r1139 10 10 11 11 #include "OSGPointerSFieldCommon.h" 12 #include "OSG NoRefCountAccessHandlerDecl.h"12 #include "OSGPointerAccessHandler.h" 13 13 14 14 #ifdef OSG_DOC_FILES_IN_MODULE … … 39 39 typedef UInt16 const &IdStoredTypeConstRef; 40 40 41 typedef FieldTraits<IdStoredType, 42 NamespaceI > IdBaseTraitsType; 41 typedef FieldTraits<IdStoredType > IdBaseTraitsType; 43 42 44 43 /*! \} */ trunk/Source/System/FieldContainer/Fields/PointerFields/OSGPointerAccessHandler.h
r1133 r1139 37 37 \*---------------------------------------------------------------------------*/ 38 38 39 #ifndef _OSG WEAKACCESSHANDLERDECL_H_40 #define _OSG WEAKACCESSHANDLERDECL_H_39 #ifndef _OSGPOINTERACCESSHANDLERDECL_H_ 40 #define _OSGPOINTERACCESSHANDLERDECL_H_ 41 41 42 42 #ifdef __sgi … … 45 45 46 46 #include "OSGConfig.h" 47 #include "OSGRefCountPolicies.h"48 47 49 48 #ifdef OSG_DOC_FILES_IN_MODULE … … 59 58 class PointerSFieldBase; 60 59 61 62 class WeakAccessHandler60 template<typename RefCountPolicyT> 61 class PointerAccessHandler 63 62 { 64 63 /*========================== PUBLIC =================================*/ … … 68 67 /*! \{ */ 69 68 70 typedef WeakAccessHandler Self; 71 typedef WeakRefCountPolicy Inherited; 69 typedef PointerAccessHandler Self; 72 70 73 typedef WeakRefCountPolicyRefCountPolicyType;71 typedef RefCountPolicyT RefCountPolicyType; 74 72 75 typedef PointerMFieldBase MFieldBaseType;76 typedef PointerSFieldBase SFieldBaseType;73 typedef PointerMFieldBase MFieldBaseType; 74 typedef PointerSFieldBase SFieldBaseType; 77 75 78 76 /*! \} */ … … 130 128 }; 131 129 130 typedef PointerAccessHandler<NoRefCountPolicy > NoRefCountAccessHandler; 131 typedef PointerAccessHandler<WeakRefCountPolicy > WeakAccessHandler; 132 typedef PointerAccessHandler<UnrecordedRefCountPolicy> UnrecordedAccessHandler; 133 132 134 OSG_END_NAMESPACE 133 135 136 #include "OSGPointerAccessHandler.inl" 137 134 138 #endif // _OSGWEAKACCESSHANDLERDECL_H_ trunk/Source/System/FieldContainer/Fields/PointerFields/OSGPointerAccessHandler.inl
r1132 r1139 3 3 * * 4 4 * * 5 * Copyright (C) 2008 by the OpenSG Forum*5 * Copyright (C) 2008 by the OpenSG Forum * 6 6 * * 7 7 * www.opensg.org * … … 38 38 39 39 #ifdef OSG_DOC_FILES_IN_MODULE 40 /*! \file OSGPointerSFieldBase.inl40 /*! \file PointerAccessHandlerDecl.inl 41 41 \ingroup GrpSystemFieldContainer 42 42 */ … … 45 45 OSG_BEGIN_NAMESPACE 46 46 47 /*! \class PointerSFieldBase48 */49 50 47 /*-------------------------------------------------------------------------*/ <51 /* Constructors*/
