fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / System / Window / Base / OSGViewportFields.h
blob0cb1b0fab890f27cd65f62dee49dfdf099b75af9
1 /*---------------------------------------------------------------------------*\
2 * OpenSG *
3 * *
4 * *
5 * Copyright (C) 2000-2013 by the OpenSG Forum *
6 * *
7 * www.opensg.org *
8 * *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, carsten_neumann@gmx.net *
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 *****************************************************************************
48 \*****************************************************************************/
51 #ifndef _OSGVIEWPORTFIELDS_H_
52 #define _OSGVIEWPORTFIELDS_H_
53 #ifdef __sgi
54 #pragma once
55 #endif
57 #include "OSGConfig.h"
58 #include "OSGSystemDef.h"
60 #include "OSGFieldContainerFields.h"
61 #include "OSGPointerSField.h"
62 #include "OSGPointerMField.h"
65 OSG_BEGIN_NAMESPACE
68 class Viewport;
70 OSG_GEN_CONTAINERPTR(Viewport);
71 /*! \ingroup GrpSystemWindowFieldTraits
72 \ingroup GrpLibOSGSystem
74 template <>
75 struct FieldTraits<Viewport *, nsOSG> :
76 public FieldTraitsFCPtrBase<Viewport *, nsOSG>
78 private:
80 static PointerType _type;
82 public:
84 typedef FieldTraits<Viewport *, nsOSG> Self;
86 enum { Convertible = NotConvertible };
88 static OSG_SYSTEM_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);
98 template<> inline
99 const Char8 *FieldTraits<Viewport *, nsOSG>::getSName<RecordedRefCountPolicy>(void)
101 return "SFRecViewportPtr";
104 template<> inline
105 const Char8 *FieldTraits<Viewport *, nsOSG>::getSName<UnrecordedRefCountPolicy>(void)
107 return "SFUnrecViewportPtr";
110 template<> inline
111 const Char8 *FieldTraits<Viewport *, nsOSG>::getSName<WeakRefCountPolicy>(void)
113 return "SFWeakViewportPtr";
116 template<> inline
117 const Char8 *FieldTraits<Viewport *, nsOSG>::getSName<NoRefCountPolicy>(void)
119 return "SFUnrefdViewportPtr";
122 template<> inline
123 const Char8 *FieldTraits<Viewport *, nsOSG>::getMName<RecordedRefCountPolicy>(void)
125 return "MFRecViewportPtr";
128 template<> inline
129 const Char8 *FieldTraits<Viewport *, nsOSG>::getMName<UnrecordedRefCountPolicy>(void)
131 return "MFUnrecViewportPtr";
134 template<> inline
135 const Char8 *FieldTraits<Viewport *, nsOSG>::getMName<WeakRefCountPolicy>(void)
137 return "MFWeakViewportPtr";
140 template<> inline
141 const Char8 *FieldTraits<Viewport *, nsOSG>::getMName<NoRefCountPolicy>(void)
143 return "MFUnrefdViewportPtr";
147 /*! \ingroup GrpSystemWindowFieldTraits
149 template <>
150 struct FieldTraits<Viewport *, nsOSG + 1> :
151 public FieldTraitsFCPtrBase<Viewport *, nsOSG + 1>
153 private:
155 public:
156 typedef FieldTraits<Viewport *, nsOSG + 1> Self;
158 enum { Convertible = NotConvertible };
160 static OSG_SYSTEM_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);
169 template<> inline
170 const Char8 *FieldTraits<Viewport *, nsOSG + 1>::getSName<RecordedRefCountPolicy>(void)
172 return "SFRecChildViewportPtr";
175 template<> inline
176 const Char8 *FieldTraits<Viewport *, nsOSG + 1>::getSName<UnrecordedRefCountPolicy>(void)
178 return "SFUnrecChildViewportPtr";
181 template<> inline
182 const Char8 *FieldTraits<Viewport *, nsOSG + 1>::getSName<WeakRefCountPolicy>(void)
184 return "SFWeakChildViewportPtr";
187 template<> inline
188 const Char8 *FieldTraits<Viewport *, nsOSG + 1>::getSName<NoRefCountPolicy>(void)
190 return "SFUnrefdChildViewportPtr";
193 template<> inline
194 const Char8 *FieldTraits<Viewport *, nsOSG + 1>::getMName<RecordedRefCountPolicy>(void)
196 return "MFRecChildViewportPtr";
199 template<> inline
200 const Char8 *FieldTraits<Viewport *, nsOSG + 1>::getMName<UnrecordedRefCountPolicy>(void)
202 return "MFUnrecChildViewportPtr";
205 template<> inline
206 const Char8 *FieldTraits<Viewport *, nsOSG + 1>::getMName<WeakRefCountPolicy>(void)
208 return "MFWeakChildViewportPtr";
211 template<> inline
212 const Char8 *FieldTraits<Viewport *, nsOSG + 1>::getMName<NoRefCountPolicy>(void)
214 return "MFUnrefdChildViewportPtr";
218 #ifndef DOXYGEN_SHOULD_SKIP_THIS
219 /*! \ingroup GrpSystemWindowFieldSFields */
220 typedef PointerSField<Viewport *,
221 RecordedRefCountPolicy, nsOSG > SFRecViewportPtr;
222 /*! \ingroup GrpSystemWindowFieldSFields */
223 typedef PointerSField<Viewport *,
224 UnrecordedRefCountPolicy, nsOSG> SFUnrecViewportPtr;
225 /*! \ingroup GrpSystemWindowFieldSFields */
226 typedef PointerSField<Viewport *,
227 WeakRefCountPolicy, nsOSG > SFWeakViewportPtr;
228 /*! \ingroup GrpSystemWindowFieldSFields */
229 typedef PointerSField<Viewport *,
230 NoRefCountPolicy, nsOSG > SFUncountedViewportPtr;
233 /*! \ingroup GrpSystemWindowFieldMFields */
234 typedef PointerMField<Viewport *,
235 RecordedRefCountPolicy, nsOSG > MFRecViewportPtr;
236 /*! \ingroup GrpSystemWindowFieldMFields */
237 typedef PointerMField<Viewport *,
238 UnrecordedRefCountPolicy, nsOSG> MFUnrecViewportPtr;
239 /*! \ingroup GrpSystemWindowFieldMFields */
240 typedef PointerMField<Viewport *,
241 WeakRefCountPolicy, nsOSG > MFWeakViewportPtr;
242 /*! \ingroup GrpSystemWindowFieldMFields */
243 typedef PointerMField<Viewport *,
244 NoRefCountPolicy, nsOSG > MFUncountedViewportPtr;
248 /*! \ingroup GrpSystemWindowFieldMFields */
249 typedef ChildPointerMField<
250 Viewport *,
251 UnrecordedRefCountPolicy,
252 nsOSG + 1 > MFUnrecChildViewportPtr;
256 #else // these are the doxygen hacks
258 /*! \ingroup GrpSystemWindowFieldSFields \ingroup GrpLibOSGSystem */
259 struct SFRecViewportPtr :
260 public PointerSField<Viewport *,
261 RecordedRefCountPolicy> {};
262 /*! \ingroup GrpSystemWindowFieldSFields \ingroup GrpLibOSGSystem */
263 struct SFUnrecViewportPtr :
264 public PointerSField<Viewport *,
265 UnrecordedRefCountPolicy> {};
266 /*! \ingroup GrpSystemWindowFieldSFields \ingroup GrpLibOSGSystem */
267 struct SFWeakViewportPtr :
268 public PointerSField<Viewport *,
269 WeakRefCountPolicy> {};
270 /*! \ingroup GrpSystemWindowFieldSFields \ingroup GrpLibOSGSystem */
271 struct SFUncountedViewportPtr :
272 public PointerSField<Viewport *,
273 NoRefCountPolicy> {};
276 /*! \ingroup GrpSystemWindowFieldMFields \ingroup GrpLibOSGSystem */
277 struct MFRecViewportPtr :
278 public PointerMField<Viewport *,
279 RecordedRefCountPolicy > {};
280 /*! \ingroup GrpSystemWindowFieldMFields \ingroup GrpLibOSGSystem */
281 struct MFUnrecViewportPtr :
282 public PointerMField<Viewport *,
283 UnrecordedRefCountPolicy> {};
284 /*! \ingroup GrpSystemWindowFieldMFields \ingroup GrpLibOSGSystem */
285 struct MFWeakViewportPtr :
286 public PointerMField<Viewport *,
287 WeakRefCountPolicy > {};
288 /*! \ingroup GrpSystemWindowFieldMFields \ingroup GrpLibOSGSystem */
289 struct MFUncountedViewportPtr :
290 public PointerMField<Viewport *,
291 NoRefCountPolicy > {};
295 /*! \ingroup GrpSystemWindowFieldMFields \ingroup GrpLibOSGSystem */
296 struct MFUnrecChildViewportPtr :
297 public ChildPointerMField<
298 Viewport *,
299 UnrecordedRefCountPolicy,
300 nsOSG + 1 > {};
303 #endif // these are the doxygen hacks
305 OSG_END_NAMESPACE
307 #endif /* _OSGVIEWPORTFIELDS_H_ */