1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2000-2013 by the OpenSG Forum *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, carsten_neumann@gmx.net *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
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. *
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. *
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. *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
37 \*---------------------------------------------------------------------------*/
39 /*****************************************************************************\
40 *****************************************************************************
42 ** This file is automatically generated. **
44 ** Any changes made to this file WILL be lost when it is **
45 ** regenerated, which can become necessary at any time. **
47 *****************************************************************************
48 \*****************************************************************************/
51 #ifndef _OSGHARDWARECONTEXTFIELDS_H_
52 #define _OSGHARDWARECONTEXTFIELDS_H_
57 #include "OSGConfig.h"
58 #include "OSGBaseDef.h"
60 #include "OSGFieldContainerFields.h"
61 #include "OSGPointerSField.h"
62 #include "OSGPointerMField.h"
68 class HardwareContext
;
70 OSG_GEN_CONTAINERPTR(HardwareContext
);
71 /*! \ingroup GrpBaseHardwareContextFieldTraits
72 \ingroup GrpLibOSGBase
75 struct FieldTraits
<HardwareContext
*, nsOSG
> :
76 public FieldTraitsFCPtrBase
<HardwareContext
*, nsOSG
>
80 static PointerType _type
;
84 typedef FieldTraits
<HardwareContext
*, nsOSG
> Self
;
86 enum { Convertible
= NotConvertible
};
88 static OSG_BASE_DLLMAPPING DataType
&getType(void);
90 template<typename RefCountPolicy
> inline
91 static const Char8
*getSName (void);
93 template<typename RefCountPolicy
> inline
94 static const Char8
*getMName (void);
99 const Char8
*FieldTraits
<HardwareContext
*, nsOSG
>::getSName
<RecordedRefCountPolicy
>(void)
101 return "SFRecHardwareContextPtr";
105 const Char8
*FieldTraits
<HardwareContext
*, nsOSG
>::getSName
<UnrecordedRefCountPolicy
>(void)
107 return "SFUnrecHardwareContextPtr";
111 const Char8
*FieldTraits
<HardwareContext
*, nsOSG
>::getSName
<WeakRefCountPolicy
>(void)
113 return "SFWeakHardwareContextPtr";
117 const Char8
*FieldTraits
<HardwareContext
*, nsOSG
>::getSName
<NoRefCountPolicy
>(void)
119 return "SFUnrefdHardwareContextPtr";
123 const Char8
*FieldTraits
<HardwareContext
*, nsOSG
>::getMName
<RecordedRefCountPolicy
>(void)
125 return "MFRecHardwareContextPtr";
129 const Char8
*FieldTraits
<HardwareContext
*, nsOSG
>::getMName
<UnrecordedRefCountPolicy
>(void)
131 return "MFUnrecHardwareContextPtr";
135 const Char8
*FieldTraits
<HardwareContext
*, nsOSG
>::getMName
<WeakRefCountPolicy
>(void)
137 return "MFWeakHardwareContextPtr";
141 const Char8
*FieldTraits
<HardwareContext
*, nsOSG
>::getMName
<NoRefCountPolicy
>(void)
143 return "MFUnrefdHardwareContextPtr";
147 /*! \ingroup GrpBaseHardwareContextFieldTraits
150 struct FieldTraits
<HardwareContext
*, nsOSG
+ 1> :
151 public FieldTraitsFCPtrBase
<HardwareContext
*, nsOSG
+ 1>
156 typedef FieldTraits
<HardwareContext
*, nsOSG
+ 1> Self
;
158 enum { Convertible
= NotConvertible
};
160 static OSG_BASE_DLLMAPPING DataType
&getType(void);
162 template<typename RefCountPolicy
> inline
163 static const Char8
*getSName (void);
165 template<typename RefCountPolicy
> inline
166 static const Char8
*getMName (void);
170 const Char8
*FieldTraits
<HardwareContext
*, nsOSG
+ 1>::getSName
<RecordedRefCountPolicy
>(void)
172 return "SFRecChildHardwareContextPtr";
176 const Char8
*FieldTraits
<HardwareContext
*, nsOSG
+ 1>::getSName
<UnrecordedRefCountPolicy
>(void)
178 return "SFUnrecChildHardwareContextPtr";
182 const Char8
*FieldTraits
<HardwareContext
*, nsOSG
+ 1>::getSName
<WeakRefCountPolicy
>(void)
184 return "SFWeakChildHardwareContextPtr";
188 const Char8
*FieldTraits
<HardwareContext
*, nsOSG
+ 1>::getSName
<NoRefCountPolicy
>(void)
190 return "SFUnrefdChildHardwareContextPtr";
194 const Char8
*FieldTraits
<HardwareContext
*, nsOSG
+ 1>::getMName
<RecordedRefCountPolicy
>(void)
196 return "MFRecChildHardwareContextPtr";
200 const Char8
*FieldTraits
<HardwareContext
*, nsOSG
+ 1>::getMName
<UnrecordedRefCountPolicy
>(void)
202 return "MFUnrecChildHardwareContextPtr";
206 const Char8
*FieldTraits
<HardwareContext
*, nsOSG
+ 1>::getMName
<WeakRefCountPolicy
>(void)
208 return "MFWeakChildHardwareContextPtr";
212 const Char8
*FieldTraits
<HardwareContext
*, nsOSG
+ 1>::getMName
<NoRefCountPolicy
>(void)
214 return "MFUnrefdChildHardwareContextPtr";
218 /*! \ingroup GrpBaseHardwareContextFieldTraits
221 struct FieldTraits
<HardwareContext
*, nsOSG
+ 2> :
222 public FieldTraitsFCPtrBase
<HardwareContext
*, nsOSG
+ 2>
226 static DataType _type
;
230 static const bool bIsPointerField
= true;
232 typedef FieldTraits
<HardwareContext
*, nsOSG
+ 2> Self
;
235 enum { Convertible
= Self::NotConvertible
};
237 static OSG_BASE_DLLMAPPING
238 DataType
&getType (void);
240 static const Char8
*getSName(void)
242 return "SFParentHardwareContextPtr";
245 static const Char8
*getMName(void)
247 return "MFParentHardwareContextPtr";
251 #ifndef DOXYGEN_SHOULD_SKIP_THIS
252 /*! \ingroup GrpBaseHardwareContextFieldSFields */
253 typedef PointerSField
<HardwareContext
*,
254 RecordedRefCountPolicy
, nsOSG
> SFRecHardwareContextPtr
;
255 /*! \ingroup GrpBaseHardwareContextFieldSFields */
256 typedef PointerSField
<HardwareContext
*,
257 UnrecordedRefCountPolicy
, nsOSG
> SFUnrecHardwareContextPtr
;
258 /*! \ingroup GrpBaseHardwareContextFieldSFields */
259 typedef PointerSField
<HardwareContext
*,
260 WeakRefCountPolicy
, nsOSG
> SFWeakHardwareContextPtr
;
261 /*! \ingroup GrpBaseHardwareContextFieldSFields */
262 typedef PointerSField
<HardwareContext
*,
263 NoRefCountPolicy
, nsOSG
> SFUncountedHardwareContextPtr
;
266 /*! \ingroup GrpBaseHardwareContextFieldMFields */
267 typedef PointerMField
<HardwareContext
*,
268 RecordedRefCountPolicy
, nsOSG
> MFRecHardwareContextPtr
;
269 /*! \ingroup GrpBaseHardwareContextFieldMFields */
270 typedef PointerMField
<HardwareContext
*,
271 UnrecordedRefCountPolicy
, nsOSG
> MFUnrecHardwareContextPtr
;
272 /*! \ingroup GrpBaseHardwareContextFieldMFields */
273 typedef PointerMField
<HardwareContext
*,
274 WeakRefCountPolicy
, nsOSG
> MFWeakHardwareContextPtr
;
275 /*! \ingroup GrpBaseHardwareContextFieldMFields */
276 typedef PointerMField
<HardwareContext
*,
277 NoRefCountPolicy
, nsOSG
> MFUncountedHardwareContextPtr
;
281 /*! \ingroup GrpBaseHardwareContextFieldSFields */
282 typedef ChildPointerSField
<
284 UnrecordedRefCountPolicy
,
285 nsOSG
+ 1 > SFUnrecChildHardwareContextPtr
;
288 /*! \ingroup GrpBaseHardwareContextFieldMFields */
289 typedef ChildPointerMField
<
291 UnrecordedRefCountPolicy
,
292 nsOSG
+ 1 > MFUnrecChildHardwareContextPtr
;
295 /*! \ingroup GrpBaseHardwareContextFieldSFields */
296 typedef ParentPointerSField
<
299 nsOSG
+ 2 > SFParentHardwareContextPtr
;
301 /*! \ingroup GrpBaseHardwareContextFieldMFields */
302 typedef ParentPointerMField
<
305 nsOSG
+ 2 > MFParentHardwareContextPtr
;
309 #else // these are the doxygen hacks
311 /*! \ingroup GrpBaseHardwareContextFieldSFields \ingroup GrpLibOSGBase */
312 struct SFRecHardwareContextPtr
:
313 public PointerSField
<HardwareContext
*,
314 RecordedRefCountPolicy
> {};
315 /*! \ingroup GrpBaseHardwareContextFieldSFields \ingroup GrpLibOSGBase */
316 struct SFUnrecHardwareContextPtr
:
317 public PointerSField
<HardwareContext
*,
318 UnrecordedRefCountPolicy
> {};
319 /*! \ingroup GrpBaseHardwareContextFieldSFields \ingroup GrpLibOSGBase */
320 struct SFWeakHardwareContextPtr
:
321 public PointerSField
<HardwareContext
*,
322 WeakRefCountPolicy
> {};
323 /*! \ingroup GrpBaseHardwareContextFieldSFields \ingroup GrpLibOSGBase */
324 struct SFUncountedHardwareContextPtr
:
325 public PointerSField
<HardwareContext
*,
326 NoRefCountPolicy
> {};
329 /*! \ingroup GrpBaseHardwareContextFieldMFields \ingroup GrpLibOSGBase */
330 struct MFRecHardwareContextPtr
:
331 public PointerMField
<HardwareContext
*,
332 RecordedRefCountPolicy
> {};
333 /*! \ingroup GrpBaseHardwareContextFieldMFields \ingroup GrpLibOSGBase */
334 struct MFUnrecHardwareContextPtr
:
335 public PointerMField
<HardwareContext
*,
336 UnrecordedRefCountPolicy
> {};
337 /*! \ingroup GrpBaseHardwareContextFieldMFields \ingroup GrpLibOSGBase */
338 struct MFWeakHardwareContextPtr
:
339 public PointerMField
<HardwareContext
*,
340 WeakRefCountPolicy
> {};
341 /*! \ingroup GrpBaseHardwareContextFieldMFields \ingroup GrpLibOSGBase */
342 struct MFUncountedHardwareContextPtr
:
343 public PointerMField
<HardwareContext
*,
344 NoRefCountPolicy
> {};
348 /*! \ingroup GrpBaseHardwareContextFieldSFields \ingroup GrpLibOSGBase */
349 struct SFUnrecChildHardwareContextPtr
:
350 public ChildPointerSField
<
352 UnrecordedRefCountPolicy
,
356 /*! \ingroup GrpBaseHardwareContextFieldMFields \ingroup GrpLibOSGBase */
357 struct MFUnrecChildHardwareContextPtr
:
358 public ChildPointerMField
<
360 UnrecordedRefCountPolicy
,
364 /*! \ingroup GrpBaseHardwareContextFieldSFields \ingroup GrpLibOSGBase */
365 struct SFParentHardwareContextPtr
:
366 public ParentPointerSField
<
371 /*! \ingroup GrpBaseHardwareContextFieldMFields \ingroup GrpLibOSGBase */
372 struct MFParentHardwareContextPtr
:
373 public ParentPointerMField
<
379 #endif // these are the doxygen hacks
383 #endif /* _OSGHARDWARECONTEXTFIELDS_H_ */