fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / Test / SystemLib / OSGFCDPtrTestFCNullCheckAccessBase.inl
blob05e60739435c4c8986c6be51fcd1527c3019a5c1
1 /*---------------------------------------------------------------------------*\
2  *                                OpenSG                                     *
3  *                                                                           *
4  *                                                                           *
5  *               Copyright (C) 2000-2006 by the OpenSG Forum                 *
6  *                                                                           *
7  *   contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de          *
8  *                                                                           *
9 \*---------------------------------------------------------------------------*/
10 /*---------------------------------------------------------------------------*\
11  *                                License                                    *
12  *                                                                           *
13  * This library is free software; you can redistribute it and/or modify it   *
14  * under the terms of the GNU Library General Public License as published    *
15  * by the Free Software Foundation, version 2.                               *
16  *                                                                           *
17  * This library is distributed in the hope that it will be useful, but       *
18  * WITHOUT ANY WARRANTY; without even the implied warranty of                *
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU         *
20  * Library General Public License for more details.                          *
21  *                                                                           *
22  * You should have received a copy of the GNU Library General Public         *
23  * License along with this library; if not, write to the Free Software       *
24  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.                 *
25  *                                                                           *
26 \*---------------------------------------------------------------------------*/
27 /*---------------------------------------------------------------------------*\
28  *                                Changes                                    *
29  *                                                                           *
30  *                                                                           *
31  *                                                                           *
32  *                                                                           *
33  *                                                                           *
34  *                                                                           *
35 \*---------------------------------------------------------------------------*/
37 /*****************************************************************************\
38  *****************************************************************************
39  **                                                                         **
40  **                  This file is automatically generated.                  **
41  **                                                                         **
42  **          Any changes made to this file WILL be lost when it is          **
43  **           regenerated, which can become necessary at any time.          **
44  **                                                                         **
45  **     Do not change this file, changes should be done in the derived      **
46  **     class FCDPtrTestFCNullCheckAccess!
47  **                                                                         **
48  *****************************************************************************
49 \*****************************************************************************/
51 OSG_BEGIN_NAMESPACE
55 //! access the type of the class
56 inline
57 OSG::FieldContainerType &FCDPtrTestFCNullCheckAccessBase::getClassType(void)
59     return _type;
62 //! access the numerical type of the class
63 inline
64 OSG::UInt32 FCDPtrTestFCNullCheckAccessBase::getClassTypeId(void)
66     return _type.getId();
69 inline
70 OSG::UInt16 FCDPtrTestFCNullCheckAccessBase::getClassGroupId(void)
72     return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
78 //! Get the value of the FCDPtrTestFCNullCheckAccess::_sfFieldSFPub_ptr field.
79 inline
80 FCDTestFC * FCDPtrTestFCNullCheckAccessBase::getFieldSFPub_ptr(void) const
82     return _sfFieldSFPub_ptr.getValue();
85 //! Set the value of the FCDPtrTestFCNullCheckAccess::_sfFieldSFPub_ptr field.
86 inline
87 void FCDPtrTestFCNullCheckAccessBase::setFieldSFPub_ptr(FCDTestFC * const value)
89     editSField(FieldSFPub_ptrFieldMask);
91     _sfFieldSFPub_ptr.setValue(value);
94 //! Get the value of the FCDPtrTestFCNullCheckAccess::_sfFieldSFPub_weakptr field.
95 inline
96 FCDTestFC * FCDPtrTestFCNullCheckAccessBase::getFieldSFPub_weakptr(void) const
98     return _sfFieldSFPub_weakptr.getValue();
101 //! Set the value of the FCDPtrTestFCNullCheckAccess::_sfFieldSFPub_weakptr field.
102 inline
103 void FCDPtrTestFCNullCheckAccessBase::setFieldSFPub_weakptr(FCDTestFC * const value)
105     editSField(FieldSFPub_weakptrFieldMask);
107     _sfFieldSFPub_weakptr.setValue(value);
110 //! Get the value of the FCDPtrTestFCNullCheckAccess::_sfFieldSFPub_mpchildptr field.
111 inline
112 FCDTestFC * FCDPtrTestFCNullCheckAccessBase::getFieldSFPub_mpchildptr(void) const
114     return _sfFieldSFPub_mpchildptr.getValue();
117 //! Set the value of the FCDPtrTestFCNullCheckAccess::_sfFieldSFPub_mpchildptr field.
118 inline
119 void FCDPtrTestFCNullCheckAccessBase::setFieldSFPub_mpchildptr(FCDTestFC * const value)
121     editSField(FieldSFPub_mpchildptrFieldMask);
123     _sfFieldSFPub_mpchildptr.setValue(value);
126 //! Get the value of the FCDPtrTestFCNullCheckAccess::_sfFieldSFPro_ptr field.
127 inline
128 FCDTestFC * FCDPtrTestFCNullCheckAccessBase::getFieldSFPro_ptr(void) const
130     return _sfFieldSFPro_ptr.getValue();
133 //! Set the value of the FCDPtrTestFCNullCheckAccess::_sfFieldSFPro_ptr field.
134 inline
135 void FCDPtrTestFCNullCheckAccessBase::setFieldSFPro_ptr(FCDTestFC * const value)
137     editSField(FieldSFPro_ptrFieldMask);
139     _sfFieldSFPro_ptr.setValue(value);
142 //! Get the value of the FCDPtrTestFCNullCheckAccess::_sfFieldSFPro_weakptr field.
143 inline
144 FCDTestFC * FCDPtrTestFCNullCheckAccessBase::getFieldSFPro_weakptr(void) const
146     return _sfFieldSFPro_weakptr.getValue();
149 //! Set the value of the FCDPtrTestFCNullCheckAccess::_sfFieldSFPro_weakptr field.
150 inline
151 void FCDPtrTestFCNullCheckAccessBase::setFieldSFPro_weakptr(FCDTestFC * const value)
153     editSField(FieldSFPro_weakptrFieldMask);
155     _sfFieldSFPro_weakptr.setValue(value);
158 //! Get the value of the FCDPtrTestFCNullCheckAccess::_sfFieldSFPro_mpchildptr field.
159 inline
160 FCDTestFC * FCDPtrTestFCNullCheckAccessBase::getFieldSFPro_mpchildptr(void) const
162     return _sfFieldSFPro_mpchildptr.getValue();
165 //! Set the value of the FCDPtrTestFCNullCheckAccess::_sfFieldSFPro_mpchildptr field.
166 inline
167 void FCDPtrTestFCNullCheckAccessBase::setFieldSFPro_mpchildptr(FCDTestFC * const value)
169     editSField(FieldSFPro_mpchildptrFieldMask);
171     _sfFieldSFPro_mpchildptr.setValue(value);
174 //! Get the value of the FCDPtrTestFCNullCheckAccess::_sfFieldSFPub_spchildptr field.
175 inline
176 FCDSParTestFC * FCDPtrTestFCNullCheckAccessBase::getFieldSFPub_spchildptr(void) const
178     return _sfFieldSFPub_spchildptr.getValue();
181 //! Set the value of the FCDPtrTestFCNullCheckAccess::_sfFieldSFPub_spchildptr field.
182 inline
183 void FCDPtrTestFCNullCheckAccessBase::setFieldSFPub_spchildptr(FCDSParTestFC * const value)
185     editSField(FieldSFPub_spchildptrFieldMask);
187     _sfFieldSFPub_spchildptr.setValue(value);
190 //! Get the value of the FCDPtrTestFCNullCheckAccess::_sfFieldSFPro_spchildptr field.
191 inline
192 FCDSParTestFC * FCDPtrTestFCNullCheckAccessBase::getFieldSFPro_spchildptr(void) const
194     return _sfFieldSFPro_spchildptr.getValue();
197 //! Set the value of the FCDPtrTestFCNullCheckAccess::_sfFieldSFPro_spchildptr field.
198 inline
199 void FCDPtrTestFCNullCheckAccessBase::setFieldSFPro_spchildptr(FCDSParTestFC * const value)
201     editSField(FieldSFPro_spchildptrFieldMask);
203     _sfFieldSFPro_spchildptr.setValue(value);
206 //! Get the value of the \a index element the FCDPtrTestFCNullCheckAccess::_mfFieldMFPub_ptr field.
207 inline
208 FCDTestFC * FCDPtrTestFCNullCheckAccessBase::getFieldMFPub_ptr(const UInt32 index) const
210     return _mfFieldMFPub_ptr[index];
213 //! Get the value of the \a index element the FCDPtrTestFCNullCheckAccess::_mfFieldMFPub_weakptr field.
214 inline
215 FCDTestFC * FCDPtrTestFCNullCheckAccessBase::getFieldMFPub_weakptr(const UInt32 index) const
217     return _mfFieldMFPub_weakptr[index];
220 //! Get the value of the \a index element the FCDPtrTestFCNullCheckAccess::_mfFieldMFPub_mpchildptr field.
221 inline
222 FCDTestFC * FCDPtrTestFCNullCheckAccessBase::getFieldMFPub_mpchildptr(const UInt32 index) const
224     return _mfFieldMFPub_mpchildptr[index];
227 //! Get the value of the \a index element the FCDPtrTestFCNullCheckAccess::_mfFieldMFPro_ptr field.
228 inline
229 FCDTestFC * FCDPtrTestFCNullCheckAccessBase::getFieldMFPro_ptr(const UInt32 index) const
231     return _mfFieldMFPro_ptr[index];
234 //! Get the value of the \a index element the FCDPtrTestFCNullCheckAccess::_mfFieldMFPro_weakptr field.
235 inline
236 FCDTestFC * FCDPtrTestFCNullCheckAccessBase::getFieldMFPro_weakptr(const UInt32 index) const
238     return _mfFieldMFPro_weakptr[index];
241 //! Get the value of the \a index element the FCDPtrTestFCNullCheckAccess::_mfFieldMFPro_mpchildptr field.
242 inline
243 FCDTestFC * FCDPtrTestFCNullCheckAccessBase::getFieldMFPro_mpchildptr(const UInt32 index) const
245     return _mfFieldMFPro_mpchildptr[index];
248 //! Get the value of the \a index element the FCDPtrTestFCNullCheckAccess::_mfFieldMFPub_spchildptr field.
249 inline
250 FCDSParTestFC * FCDPtrTestFCNullCheckAccessBase::getFieldMFPub_spchildptr(const UInt32 index) const
252     return _mfFieldMFPub_spchildptr[index];
255 //! Get the value of the \a index element the FCDPtrTestFCNullCheckAccess::_mfFieldMFPro_spchildptr field.
256 inline
257 FCDSParTestFC * FCDPtrTestFCNullCheckAccessBase::getFieldMFPro_spchildptr(const UInt32 index) const
259     return _mfFieldMFPro_spchildptr[index];
263 #ifdef OSG_MT_CPTR_ASPECT
264 inline
265 void FCDPtrTestFCNullCheckAccessBase::execSync (      FCDPtrTestFCNullCheckAccessBase *pFrom,
266                                         ConstFieldMaskArg  whichField,
267                                         AspectOffsetStore &oOffsets,
268                                         ConstFieldMaskArg  syncMode,
269                                   const UInt32             uiSyncInfo)
271     Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo);
273     if(FieldBits::NoField != (FieldSFPub_ptrFieldMask & whichField))
274         _sfFieldSFPub_ptr.syncWith(pFrom->_sfFieldSFPub_ptr);
276     if(FieldBits::NoField != (FieldSFPub_weakptrFieldMask & whichField))
277         _sfFieldSFPub_weakptr.syncWith(pFrom->_sfFieldSFPub_weakptr);
279     if(FieldBits::NoField != (FieldSFPub_mpchildptrFieldMask & whichField))
280         _sfFieldSFPub_mpchildptr.syncWith(pFrom->_sfFieldSFPub_mpchildptr);
282     if(FieldBits::NoField != (FieldSFPro_ptrFieldMask & whichField))
283         _sfFieldSFPro_ptr.syncWith(pFrom->_sfFieldSFPro_ptr);
285     if(FieldBits::NoField != (FieldSFPro_weakptrFieldMask & whichField))
286         _sfFieldSFPro_weakptr.syncWith(pFrom->_sfFieldSFPro_weakptr);
288     if(FieldBits::NoField != (FieldSFPro_mpchildptrFieldMask & whichField))
289         _sfFieldSFPro_mpchildptr.syncWith(pFrom->_sfFieldSFPro_mpchildptr);
291     if(FieldBits::NoField != (FieldSFNo_ptrFieldMask & whichField))
292         _sfFieldSFNo_ptr.syncWith(pFrom->_sfFieldSFNo_ptr);
294     if(FieldBits::NoField != (FieldSFNo_weakptrFieldMask & whichField))
295         _sfFieldSFNo_weakptr.syncWith(pFrom->_sfFieldSFNo_weakptr);
297     if(FieldBits::NoField != (FieldSFNo_mpchildptrFieldMask & whichField))
298         _sfFieldSFNo_mpchildptr.syncWith(pFrom->_sfFieldSFNo_mpchildptr);
300     if(FieldBits::NoField != (FieldMFPub_ptrFieldMask & whichField))
301         _mfFieldMFPub_ptr.syncWith(pFrom->_mfFieldMFPub_ptr,
302                                 syncMode,
303                                 uiSyncInfo,
304                                 oOffsets);
306     if(FieldBits::NoField != (FieldMFPub_weakptrFieldMask & whichField))
307         _mfFieldMFPub_weakptr.syncWith(pFrom->_mfFieldMFPub_weakptr,
308                                 syncMode,
309                                 uiSyncInfo,
310                                 oOffsets);
312     if(FieldBits::NoField != (FieldMFPub_mpchildptrFieldMask & whichField))
313         _mfFieldMFPub_mpchildptr.syncWith(pFrom->_mfFieldMFPub_mpchildptr,
314                                 syncMode,
315                                 uiSyncInfo,
316                                 oOffsets);
318     if(FieldBits::NoField != (FieldMFPro_ptrFieldMask & whichField))
319         _mfFieldMFPro_ptr.syncWith(pFrom->_mfFieldMFPro_ptr,
320                                 syncMode,
321                                 uiSyncInfo,
322                                 oOffsets);
324     if(FieldBits::NoField != (FieldMFPro_weakptrFieldMask & whichField))
325         _mfFieldMFPro_weakptr.syncWith(pFrom->_mfFieldMFPro_weakptr,
326                                 syncMode,
327                                 uiSyncInfo,
328                                 oOffsets);
330     if(FieldBits::NoField != (FieldMFPro_mpchildptrFieldMask & whichField))
331         _mfFieldMFPro_mpchildptr.syncWith(pFrom->_mfFieldMFPro_mpchildptr,
332                                 syncMode,
333                                 uiSyncInfo,
334                                 oOffsets);
336     if(FieldBits::NoField != (FieldMFNo_ptrFieldMask & whichField))
337         _mfFieldMFNo_ptr.syncWith(pFrom->_mfFieldMFNo_ptr,
338                                 syncMode,
339                                 uiSyncInfo,
340                                 oOffsets);
342     if(FieldBits::NoField != (FieldMFNo_weakptrFieldMask & whichField))
343         _mfFieldMFNo_weakptr.syncWith(pFrom->_mfFieldMFNo_weakptr,
344                                 syncMode,
345                                 uiSyncInfo,
346                                 oOffsets);
348     if(FieldBits::NoField != (FieldMFNo_mpchildptrFieldMask & whichField))
349         _mfFieldMFNo_mpchildptr.syncWith(pFrom->_mfFieldMFNo_mpchildptr,
350                                 syncMode,
351                                 uiSyncInfo,
352                                 oOffsets);
354     if(FieldBits::NoField != (FieldSFPub_spchildptrFieldMask & whichField))
355         _sfFieldSFPub_spchildptr.syncWith(pFrom->_sfFieldSFPub_spchildptr);
357     if(FieldBits::NoField != (FieldSFPro_spchildptrFieldMask & whichField))
358         _sfFieldSFPro_spchildptr.syncWith(pFrom->_sfFieldSFPro_spchildptr);
360     if(FieldBits::NoField != (FieldSFNo_spchildptrFieldMask & whichField))
361         _sfFieldSFNo_spchildptr.syncWith(pFrom->_sfFieldSFNo_spchildptr);
363     if(FieldBits::NoField != (FieldMFPub_spchildptrFieldMask & whichField))
364         _mfFieldMFPub_spchildptr.syncWith(pFrom->_mfFieldMFPub_spchildptr,
365                                 syncMode,
366                                 uiSyncInfo,
367                                 oOffsets);
369     if(FieldBits::NoField != (FieldMFPro_spchildptrFieldMask & whichField))
370         _mfFieldMFPro_spchildptr.syncWith(pFrom->_mfFieldMFPro_spchildptr,
371                                 syncMode,
372                                 uiSyncInfo,
373                                 oOffsets);
375     if(FieldBits::NoField != (FieldMFNo_spchildptrFieldMask & whichField))
376         _mfFieldMFNo_spchildptr.syncWith(pFrom->_mfFieldMFNo_spchildptr,
377                                 syncMode,
378                                 uiSyncInfo,
379                                 oOffsets);
381 #endif
384 inline
385 const Char8 *FCDPtrTestFCNullCheckAccessBase::getClassname(void)
387     return "FCDPtrTestFCNullCheckAccess";
389 OSG_GEN_CONTAINERPTR(FCDPtrTestFCNullCheckAccess);
391 OSG_END_NAMESPACE