fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / Test / SystemLib / OSGFCDTestFCBase.cpp
blob3d7c2bc0e215190216321c9b86bf0dc0305f35a7
1 /*---------------------------------------------------------------------------*\
2 * OpenSG *
3 * *
4 * *
5 * Copyright (C) 2000-2006 by the OpenSG Forum *
6 * *
7 * www.opensg.org *
8 * *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
10 * *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
13 * License *
14 * *
15 * This library is free software; you can redistribute it and/or modify it *
16 * under the terms of the GNU Library General Public License as published *
17 * by the Free Software Foundation, version 2. *
18 * *
19 * This library is distributed in the hope that it will be useful, but *
20 * WITHOUT ANY WARRANTY; without even the implied warranty of *
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
22 * Library General Public License for more details. *
23 * *
24 * You should have received a copy of the GNU Library General Public *
25 * License along with this library; if not, write to the Free Software *
26 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
27 * *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
30 * Changes *
31 * *
32 * *
33 * *
34 * *
35 * *
36 * *
37 \*---------------------------------------------------------------------------*/
39 /*****************************************************************************\
40 *****************************************************************************
41 ** **
42 ** This file is automatically generated. **
43 ** **
44 ** Any changes made to this file WILL be lost when it is **
45 ** regenerated, which can become necessary at any time. **
46 ** **
47 ** Do not change this file, changes should be done in the derived **
48 ** class FCDTestFC!
49 ** **
50 *****************************************************************************
51 \*****************************************************************************/
53 #include <cstdlib>
54 #include <cstdio>
56 #include "OSGConfig.h"
61 #include "OSGFCDTestFCBase.h"
62 #include "OSGFCDTestFC.h"
64 #include <boost/bind.hpp>
66 #ifdef WIN32 // turn off 'this' : used in base member initializer list warning
67 #pragma warning(disable:4355)
68 #endif
70 OSG_BEGIN_NAMESPACE
72 /***************************************************************************\
73 * Description *
74 \***************************************************************************/
76 /*! \class OSG::FCDTestFC
80 /***************************************************************************\
81 * Field Documentation *
82 \***************************************************************************/
84 /*! \var UInt32 FCDTestFCBase::_sfFieldSFPub
88 /*! \var UInt32 FCDTestFCBase::_sfFieldSFPro
92 /*! \var UInt32 FCDTestFCBase::_sfFieldSFNo
96 /*! \var UInt32 FCDTestFCBase::_mfFieldMFPub
100 /*! \var UInt32 FCDTestFCBase::_mfFieldMFPro
104 /*! \var UInt32 FCDTestFCBase::_mfFieldMFNo
109 /***************************************************************************\
110 * FieldType/FieldTrait Instantiation *
111 \***************************************************************************/
113 #if !defined(OSG_DO_DOC) || defined(OSG_DOC_DEV)
114 PointerType FieldTraits<FCDTestFC *, nsOSG>::_type(
115 "FCDTestFCPtr",
116 "NodeCorePtr",
117 FCDTestFC::getClassType(),
118 nsOSG);
119 #endif
121 OSG_FIELDTRAITS_GETTYPE_NS(FCDTestFC *, nsOSG)
123 OSG_EXPORT_PTR_SFIELD_FULL(PointerSField,
124 FCDTestFC *,
125 nsOSG);
127 OSG_EXPORT_PTR_MFIELD_FULL(PointerMField,
128 FCDTestFC *,
129 nsOSG);
131 DataType &FieldTraits< FCDTestFC *, nsOSG + 1 >::getType(void)
133 return FieldTraits<FCDTestFC *, nsOSG>::getType();
137 OSG_EXPORT_PTR_SFIELD(ChildPointerSField,
138 FCDTestFC *,
139 UnrecordedRefCountPolicy,
140 nsOSG + 1);
143 OSG_EXPORT_PTR_MFIELD(ChildPointerMField,
144 FCDTestFC *,
145 UnrecordedRefCountPolicy,
146 nsOSG + 1);
149 /***************************************************************************\
150 * Field Description *
151 \***************************************************************************/
153 void FCDTestFCBase::classDescInserter(TypeObject &oType)
155 FieldDescriptionBase *pDesc = NULL;
158 pDesc = new SFUInt32::Description(
159 SFUInt32::getClassType(),
160 "fieldSFPub",
162 FieldSFPubFieldId, FieldSFPubFieldMask,
163 false,
164 (Field::SFDefaultFlags | Field::FStdAccess),
165 static_cast<FieldEditMethodSig>(&FCDTestFC::editHandleFieldSFPub),
166 static_cast<FieldGetMethodSig >(&FCDTestFC::getHandleFieldSFPub));
168 oType.addInitialDesc(pDesc);
170 pDesc = new SFUInt32::Description(
171 SFUInt32::getClassType(),
172 "fieldSFPro",
174 FieldSFProFieldId, FieldSFProFieldMask,
175 false,
176 (Field::SFDefaultFlags | Field::FStdAccess),
177 static_cast<FieldEditMethodSig>(&FCDTestFC::editHandleFieldSFPro),
178 static_cast<FieldGetMethodSig >(&FCDTestFC::getHandleFieldSFPro));
180 oType.addInitialDesc(pDesc);
182 pDesc = new SFUInt32::Description(
183 SFUInt32::getClassType(),
184 "fieldSFNo",
186 FieldSFNoFieldId, FieldSFNoFieldMask,
187 false,
188 (Field::SFDefaultFlags | Field::FStdAccess),
189 static_cast <FieldEditMethodSig>(&FCDTestFC::invalidEditField),
190 static_cast <FieldGetMethodSig >(&FCDTestFC::invalidGetField));
192 oType.addInitialDesc(pDesc);
194 pDesc = new MFUInt32::Description(
195 MFUInt32::getClassType(),
196 "fieldMFPub",
198 FieldMFPubFieldId, FieldMFPubFieldMask,
199 false,
200 (Field::MFDefaultFlags | Field::FStdAccess),
201 static_cast<FieldEditMethodSig>(&FCDTestFC::editHandleFieldMFPub),
202 static_cast<FieldGetMethodSig >(&FCDTestFC::getHandleFieldMFPub));
204 oType.addInitialDesc(pDesc);
206 pDesc = new MFUInt32::Description(
207 MFUInt32::getClassType(),
208 "fieldMFPro",
210 FieldMFProFieldId, FieldMFProFieldMask,
211 false,
212 (Field::MFDefaultFlags | Field::FStdAccess),
213 static_cast<FieldEditMethodSig>(&FCDTestFC::editHandleFieldMFPro),
214 static_cast<FieldGetMethodSig >(&FCDTestFC::getHandleFieldMFPro));
216 oType.addInitialDesc(pDesc);
218 pDesc = new MFUInt32::Description(
219 MFUInt32::getClassType(),
220 "fieldMFNo",
222 FieldMFNoFieldId, FieldMFNoFieldMask,
223 false,
224 (Field::MFDefaultFlags | Field::FStdAccess),
225 static_cast <FieldEditMethodSig>(&FCDTestFC::invalidEditField),
226 static_cast <FieldGetMethodSig >(&FCDTestFC::invalidGetField));
228 oType.addInitialDesc(pDesc);
232 FCDTestFCBase::TypeObject FCDTestFCBase::_type(
233 FCDTestFCBase::getClassname(),
234 Inherited::getClassname(),
235 "NULL",
236 nsOSG, //Namespace
237 reinterpret_cast<PrototypeCreateF>(&FCDTestFCBase::createEmptyLocal),
238 FCDTestFC::initMethod,
239 FCDTestFC::exitMethod,
240 reinterpret_cast<InitalInsertDescFunc>(&FCDTestFC::classDescInserter),
241 false,
243 "<?xml version=\"1.0\" ?>\n"
244 "\n"
245 "<FieldContainer\n"
246 "\tname=\"FCDTestFC\"\n"
247 "\tparent=\"NodeCore\"\n"
248 "\tlibrary=\"System\"\n"
249 "\tstructure=\"concrete\"\n"
250 "\tpointerfieldtypes=\"both\"\n"
251 "\tsystemcomponent=\"true\"\n"
252 "\tparentsystemcomponent=\"true\"\n"
253 " isNodeCore=\"true\"\n"
254 " childFields=\"both\"\n"
255 ">\n"
256 " <Field\n"
257 " name = \"fieldSFPub\"\n"
258 " type = \"UInt32\"\n"
259 " cardinality = \"single\"\n"
260 " visibility = \"external\"\n"
261 " defaultValue = \"0\"\n"
262 " access = \"public\"\n"
263 " >\n"
264 " </Field>\n"
265 "\n"
266 " <Field\n"
267 " name = \"fieldSFPro\"\n"
268 " type = \"UInt32\"\n"
269 " cardinality = \"single\"\n"
270 " visibility = \"external\"\n"
271 " defaultValue = \"0\"\n"
272 " access = \"protected\"\n"
273 " >\n"
274 " </Field>\n"
275 "\n"
276 " <Field\n"
277 " name = \"fieldSFNo\"\n"
278 " type = \"UInt32\"\n"
279 " cardinality = \"single\"\n"
280 " visibility = \"external\"\n"
281 " defaultValue = \"0\"\n"
282 " access = \"none\"\n"
283 " >\n"
284 " </Field>\n"
285 "\n"
286 "\n"
287 "\n"
288 " <Field\n"
289 " name = \"fieldMFPub\"\n"
290 " type = \"UInt32\"\n"
291 " cardinality = \"multi\"\n"
292 " visibility = \"external\"\n"
293 " defaultValue = \"0\"\n"
294 " access = \"public\"\n"
295 " >\n"
296 " </Field>\n"
297 "\n"
298 " <Field\n"
299 " name = \"fieldMFPro\"\n"
300 " type = \"UInt32\"\n"
301 " cardinality = \"multi\"\n"
302 " visibility = \"external\"\n"
303 " defaultValue = \"0\"\n"
304 " access = \"protected\"\n"
305 " >\n"
306 " </Field>\n"
307 "\n"
308 " <Field\n"
309 " name = \"fieldMFNo\"\n"
310 " type = \"UInt32\"\n"
311 " cardinality = \"multi\"\n"
312 " visibility = \"external\"\n"
313 " defaultValue = \"0\"\n"
314 " access = \"none\"\n"
315 " >\n"
316 " </Field>\n"
317 "\n"
318 "</FieldContainer>\n",
322 /*------------------------------ get -----------------------------------*/
324 FieldContainerType &FCDTestFCBase::getType(void)
326 return _type;
329 const FieldContainerType &FCDTestFCBase::getType(void) const
331 return _type;
334 UInt32 FCDTestFCBase::getContainerSize(void) const
336 return sizeof(FCDTestFC);
339 /*------------------------- decorator get ------------------------------*/
342 SFUInt32 *FCDTestFCBase::editSFFieldSFPub(void)
344 editSField(FieldSFPubFieldMask);
346 return &_sfFieldSFPub;
349 const SFUInt32 *FCDTestFCBase::getSFFieldSFPub(void) const
351 return &_sfFieldSFPub;
355 SFUInt32 *FCDTestFCBase::editSFFieldSFPro(void)
357 editSField(FieldSFProFieldMask);
359 return &_sfFieldSFPro;
362 const SFUInt32 *FCDTestFCBase::getSFFieldSFPro(void) const
364 return &_sfFieldSFPro;
369 MFUInt32 *FCDTestFCBase::editMFFieldMFPub(void)
371 editMField(FieldMFPubFieldMask, _mfFieldMFPub);
373 return &_mfFieldMFPub;
376 const MFUInt32 *FCDTestFCBase::getMFFieldMFPub(void) const
378 return &_mfFieldMFPub;
382 MFUInt32 *FCDTestFCBase::editMFFieldMFPro(void)
384 editMField(FieldMFProFieldMask, _mfFieldMFPro);
386 return &_mfFieldMFPro;
389 const MFUInt32 *FCDTestFCBase::getMFFieldMFPro(void) const
391 return &_mfFieldMFPro;
400 /*------------------------------ access -----------------------------------*/
402 SizeT FCDTestFCBase::getBinSize(ConstFieldMaskArg whichField)
404 SizeT returnValue = Inherited::getBinSize(whichField);
406 if(FieldBits::NoField != (FieldSFPubFieldMask & whichField))
408 returnValue += _sfFieldSFPub.getBinSize();
410 if(FieldBits::NoField != (FieldSFProFieldMask & whichField))
412 returnValue += _sfFieldSFPro.getBinSize();
414 if(FieldBits::NoField != (FieldSFNoFieldMask & whichField))
416 returnValue += _sfFieldSFNo.getBinSize();
418 if(FieldBits::NoField != (FieldMFPubFieldMask & whichField))
420 returnValue += _mfFieldMFPub.getBinSize();
422 if(FieldBits::NoField != (FieldMFProFieldMask & whichField))
424 returnValue += _mfFieldMFPro.getBinSize();
426 if(FieldBits::NoField != (FieldMFNoFieldMask & whichField))
428 returnValue += _mfFieldMFNo.getBinSize();
431 return returnValue;
434 void FCDTestFCBase::copyToBin(BinaryDataHandler &pMem,
435 ConstFieldMaskArg whichField)
437 Inherited::copyToBin(pMem, whichField);
439 if(FieldBits::NoField != (FieldSFPubFieldMask & whichField))
441 _sfFieldSFPub.copyToBin(pMem);
443 if(FieldBits::NoField != (FieldSFProFieldMask & whichField))
445 _sfFieldSFPro.copyToBin(pMem);
447 if(FieldBits::NoField != (FieldSFNoFieldMask & whichField))
449 _sfFieldSFNo.copyToBin(pMem);
451 if(FieldBits::NoField != (FieldMFPubFieldMask & whichField))
453 _mfFieldMFPub.copyToBin(pMem);
455 if(FieldBits::NoField != (FieldMFProFieldMask & whichField))
457 _mfFieldMFPro.copyToBin(pMem);
459 if(FieldBits::NoField != (FieldMFNoFieldMask & whichField))
461 _mfFieldMFNo.copyToBin(pMem);
465 void FCDTestFCBase::copyFromBin(BinaryDataHandler &pMem,
466 ConstFieldMaskArg whichField)
468 Inherited::copyFromBin(pMem, whichField);
470 if(FieldBits::NoField != (FieldSFPubFieldMask & whichField))
472 editSField(FieldSFPubFieldMask);
473 _sfFieldSFPub.copyFromBin(pMem);
475 if(FieldBits::NoField != (FieldSFProFieldMask & whichField))
477 editSField(FieldSFProFieldMask);
478 _sfFieldSFPro.copyFromBin(pMem);
480 if(FieldBits::NoField != (FieldSFNoFieldMask & whichField))
482 editSField(FieldSFNoFieldMask);
483 _sfFieldSFNo.copyFromBin(pMem);
485 if(FieldBits::NoField != (FieldMFPubFieldMask & whichField))
487 editMField(FieldMFPubFieldMask, _mfFieldMFPub);
488 _mfFieldMFPub.copyFromBin(pMem);
490 if(FieldBits::NoField != (FieldMFProFieldMask & whichField))
492 editMField(FieldMFProFieldMask, _mfFieldMFPro);
493 _mfFieldMFPro.copyFromBin(pMem);
495 if(FieldBits::NoField != (FieldMFNoFieldMask & whichField))
497 editMField(FieldMFNoFieldMask, _mfFieldMFNo);
498 _mfFieldMFNo.copyFromBin(pMem);
502 //! create a new instance of the class
503 FCDTestFCTransitPtr FCDTestFCBase::createLocal(BitVector bFlags)
505 FCDTestFCTransitPtr fc;
507 if(getClassType().getPrototype() != NULL)
509 FieldContainerTransitPtr tmpPtr =
510 getClassType().getPrototype()-> shallowCopyLocal(bFlags);
512 fc = dynamic_pointer_cast<FCDTestFC>(tmpPtr);
515 return fc;
518 //! create a new instance of the class, copy the container flags
519 FCDTestFCTransitPtr FCDTestFCBase::createDependent(BitVector bFlags)
521 FCDTestFCTransitPtr fc;
523 if(getClassType().getPrototype() != NULL)
525 FieldContainerTransitPtr tmpPtr =
526 getClassType().getPrototype()-> shallowCopyDependent(bFlags);
528 fc = dynamic_pointer_cast<FCDTestFC>(tmpPtr);
531 return fc;
534 //! create a new instance of the class
535 FCDTestFCTransitPtr FCDTestFCBase::create(void)
537 FCDTestFCTransitPtr fc;
539 if(getClassType().getPrototype() != NULL)
541 FieldContainerTransitPtr tmpPtr =
542 getClassType().getPrototype()-> shallowCopy();
544 fc = dynamic_pointer_cast<FCDTestFC>(tmpPtr);
547 return fc;
550 FCDTestFC *FCDTestFCBase::createEmptyLocal(BitVector bFlags)
552 FCDTestFC *returnValue;
554 newPtr<FCDTestFC>(returnValue, bFlags);
556 returnValue->_pFieldFlags->_bNamespaceMask &= ~bFlags;
558 return returnValue;
561 //! create an empty new instance of the class, do not copy the prototype
562 FCDTestFC *FCDTestFCBase::createEmpty(void)
564 FCDTestFC *returnValue;
566 newPtr<FCDTestFC>(returnValue, Thread::getCurrentLocalFlags());
568 returnValue->_pFieldFlags->_bNamespaceMask &=
569 ~Thread::getCurrentLocalFlags();
571 return returnValue;
575 FieldContainerTransitPtr FCDTestFCBase::shallowCopyLocal(
576 BitVector bFlags) const
578 FCDTestFC *tmpPtr;
580 newPtr(tmpPtr, dynamic_cast<const FCDTestFC *>(this), bFlags);
582 FieldContainerTransitPtr returnValue(tmpPtr);
584 tmpPtr->_pFieldFlags->_bNamespaceMask &= ~bFlags;
586 return returnValue;
589 FieldContainerTransitPtr FCDTestFCBase::shallowCopyDependent(
590 BitVector bFlags) const
592 FCDTestFC *tmpPtr;
594 newPtr(tmpPtr, dynamic_cast<const FCDTestFC *>(this), ~bFlags);
596 FieldContainerTransitPtr returnValue(tmpPtr);
598 tmpPtr->_pFieldFlags->_bNamespaceMask = bFlags;
600 return returnValue;
603 FieldContainerTransitPtr FCDTestFCBase::shallowCopy(void) const
605 FCDTestFC *tmpPtr;
607 newPtr(tmpPtr,
608 dynamic_cast<const FCDTestFC *>(this),
609 Thread::getCurrentLocalFlags());
611 tmpPtr->_pFieldFlags->_bNamespaceMask &= ~Thread::getCurrentLocalFlags();
613 FieldContainerTransitPtr returnValue(tmpPtr);
615 return returnValue;
621 /*------------------------- constructors ----------------------------------*/
623 FCDTestFCBase::FCDTestFCBase(void) :
624 Inherited(),
625 _sfFieldSFPub (UInt32(0)),
626 _sfFieldSFPro (UInt32(0)),
627 _sfFieldSFNo (UInt32(0)),
628 _mfFieldMFPub (UInt32(0)),
629 _mfFieldMFPro (UInt32(0)),
630 _mfFieldMFNo (UInt32(0))
634 FCDTestFCBase::FCDTestFCBase(const FCDTestFCBase &source) :
635 Inherited(source),
636 _sfFieldSFPub (source._sfFieldSFPub ),
637 _sfFieldSFPro (source._sfFieldSFPro ),
638 _sfFieldSFNo (source._sfFieldSFNo ),
639 _mfFieldMFPub (source._mfFieldMFPub ),
640 _mfFieldMFPro (source._mfFieldMFPro ),
641 _mfFieldMFNo (source._mfFieldMFNo )
646 /*-------------------------- destructors ----------------------------------*/
648 FCDTestFCBase::~FCDTestFCBase(void)
653 GetFieldHandlePtr FCDTestFCBase::getHandleFieldSFPub (void) const
655 SFUInt32::GetHandlePtr returnValue(
656 new SFUInt32::GetHandle(
657 &_sfFieldSFPub,
658 this->getType().getFieldDesc(FieldSFPubFieldId),
659 const_cast<FCDTestFCBase *>(this)));
661 return returnValue;
664 EditFieldHandlePtr FCDTestFCBase::editHandleFieldSFPub (void)
666 SFUInt32::EditHandlePtr returnValue(
667 new SFUInt32::EditHandle(
668 &_sfFieldSFPub,
669 this->getType().getFieldDesc(FieldSFPubFieldId),
670 this));
673 editSField(FieldSFPubFieldMask);
675 return returnValue;
678 GetFieldHandlePtr FCDTestFCBase::getHandleFieldSFPro (void) const
680 SFUInt32::GetHandlePtr returnValue(
681 new SFUInt32::GetHandle(
682 &_sfFieldSFPro,
683 this->getType().getFieldDesc(FieldSFProFieldId),
684 const_cast<FCDTestFCBase *>(this)));
686 return returnValue;
689 EditFieldHandlePtr FCDTestFCBase::editHandleFieldSFPro (void)
691 SFUInt32::EditHandlePtr returnValue(
692 new SFUInt32::EditHandle(
693 &_sfFieldSFPro,
694 this->getType().getFieldDesc(FieldSFProFieldId),
695 this));
698 editSField(FieldSFProFieldMask);
700 return returnValue;
703 GetFieldHandlePtr FCDTestFCBase::getHandleFieldSFNo (void) const
705 SFUInt32::GetHandlePtr returnValue;
707 return returnValue;
710 EditFieldHandlePtr FCDTestFCBase::editHandleFieldSFNo (void)
712 EditFieldHandlePtr returnValue;
714 return returnValue;
717 GetFieldHandlePtr FCDTestFCBase::getHandleFieldMFPub (void) const
719 MFUInt32::GetHandlePtr returnValue(
720 new MFUInt32::GetHandle(
721 &_mfFieldMFPub,
722 this->getType().getFieldDesc(FieldMFPubFieldId),
723 const_cast<FCDTestFCBase *>(this)));
725 return returnValue;
728 EditFieldHandlePtr FCDTestFCBase::editHandleFieldMFPub (void)
730 MFUInt32::EditHandlePtr returnValue(
731 new MFUInt32::EditHandle(
732 &_mfFieldMFPub,
733 this->getType().getFieldDesc(FieldMFPubFieldId),
734 this));
737 editMField(FieldMFPubFieldMask, _mfFieldMFPub);
739 return returnValue;
742 GetFieldHandlePtr FCDTestFCBase::getHandleFieldMFPro (void) const
744 MFUInt32::GetHandlePtr returnValue(
745 new MFUInt32::GetHandle(
746 &_mfFieldMFPro,
747 this->getType().getFieldDesc(FieldMFProFieldId),
748 const_cast<FCDTestFCBase *>(this)));
750 return returnValue;
753 EditFieldHandlePtr FCDTestFCBase::editHandleFieldMFPro (void)
755 MFUInt32::EditHandlePtr returnValue(
756 new MFUInt32::EditHandle(
757 &_mfFieldMFPro,
758 this->getType().getFieldDesc(FieldMFProFieldId),
759 this));
762 editMField(FieldMFProFieldMask, _mfFieldMFPro);
764 return returnValue;
767 GetFieldHandlePtr FCDTestFCBase::getHandleFieldMFNo (void) const
769 MFUInt32::GetHandlePtr returnValue;
771 return returnValue;
774 EditFieldHandlePtr FCDTestFCBase::editHandleFieldMFNo (void)
776 EditFieldHandlePtr returnValue;
778 return returnValue;
782 #ifdef OSG_MT_CPTR_ASPECT
783 void FCDTestFCBase::execSyncV( FieldContainer &oFrom,
784 ConstFieldMaskArg whichField,
785 AspectOffsetStore &oOffsets,
786 ConstFieldMaskArg syncMode,
787 const UInt32 uiSyncInfo)
789 FCDTestFC *pThis = static_cast<FCDTestFC *>(this);
791 pThis->execSync(static_cast<FCDTestFC *>(&oFrom),
792 whichField,
793 oOffsets,
794 syncMode,
795 uiSyncInfo);
797 #endif
800 #ifdef OSG_MT_CPTR_ASPECT
801 FieldContainer *FCDTestFCBase::createAspectCopy(
802 const FieldContainer *pRefAspect) const
804 FCDTestFC *returnValue;
806 newAspectCopy(returnValue,
807 dynamic_cast<const FCDTestFC *>(pRefAspect),
808 dynamic_cast<const FCDTestFC *>(this));
810 return returnValue;
812 #endif
814 void FCDTestFCBase::resolveLinks(void)
816 Inherited::resolveLinks();
818 #ifdef OSG_MT_CPTR_ASPECT
819 AspectOffsetStore oOffsets;
821 _pAspectStore->fillOffsetArray(oOffsets, this);
822 #endif
824 #ifdef OSG_MT_CPTR_ASPECT
825 _mfFieldMFPub.terminateShare(Thread::getCurrentAspect(),
826 oOffsets);
827 #endif
828 #ifdef OSG_MT_CPTR_ASPECT
829 _mfFieldMFPro.terminateShare(Thread::getCurrentAspect(),
830 oOffsets);
831 #endif
832 #ifdef OSG_MT_CPTR_ASPECT
833 _mfFieldMFNo.terminateShare(Thread::getCurrentAspect(),
834 oOffsets);
835 #endif
839 OSG_END_NAMESPACE