changed: gcc8 base update
[opensg.git] / Source / Base / FieldContainer / Fields / OSGFieldContainerSFields.h
blob9d1ca175d579b16a383f3a12de280ec712063d3e
1 /*---------------------------------------------------------------------------*\
2 * OpenSG *
3 * *
4 * *
5 * Copyright (C) 2003 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 #ifndef _OSGFIELDCONTAINERSFIELDS_H_
40 #define _OSGFIELDCONTAINERSFIELDS_H_
41 #ifdef __sgi
42 #pragma once
43 #endif
45 #include "OSGSField.h"
47 #include "OSGFieldContainerFieldTraits.h"
49 #include "OSGPointerSField.h"
50 #include "OSGParentPointerSField.h"
51 #include "OSGChildPointerSField.h"
53 #include "OSGFieldContainerSFieldHandle.h"
55 #include "OSGBaseRefCountPolicies.h"
56 #include "OSGContainerRefCountPolicies.h"
58 OSG_BEGIN_NAMESPACE
60 #ifndef DOXYGEN_SHOULD_SKIP_THIS
62 /*! \ingroup GrpBaseFieldContainerFieldSFields */
63 typedef PointerSField<FieldContainer *,
64 RecordedRefCountPolicy > SFRecFieldContainerPtr;
66 /*! \ingroup GrpBaseFieldContainerFieldSFields */
67 typedef PointerSField<FieldContainer *,
68 UnrecordedRefCountPolicy> SFUnrecFieldContainerPtr;
70 /*! \ingroup GrpBaseFieldContainerFieldSFields */
71 typedef PointerSField<FieldContainer *,
72 WeakRefCountPolicy > SFWeakFieldContainerPtr;
74 /*! \ingroup GrpBaseFieldContainerFieldSFields */
75 typedef PointerSField<FieldContainer *,
76 NoRefCountPolicy > SFUncountedFieldContainerPtr;
78 /*! \ingroup GrpBaseFieldContainerFieldSFields */
79 typedef ParentPointerSField<FieldContainer *,
80 NoRefCountPolicy,
81 1 > SFParentFieldContainerPtr;
83 #else // these are the doxygen hacks
85 /*! \ingroup GrpBaseFieldContainerFieldSFields \ingroup GrpLibOSGBase */
86 struct SFRecFieldContainerPtr :
87 public PointerSField<FieldContainer *,
88 RecordedRefCountPolicy > {};
89 /*! \ingroup GrpBaseFieldContainerFieldSFields \ingroup GrpLibOSGBase */
90 struct SFUnrecFieldContainerPtr :
91 public PointerSField<FieldContainer *,
92 UnrecordedRefCountPolicy> {};
93 /*! \ingroup GrpBaseFieldContainerFieldSFields \ingroup GrpLibOSGBase */
94 struct SFWeakFieldContainerPtr :
95 public PointerSField<FieldContainer *,
96 WeakRefCountPolicy > {};
97 /*! \ingroup GrpBaseFieldContainerFieldSFields \ingroup GrpLibOSGBase */
98 struct SFUncountedFieldContainerPtr :
99 public PointerSField<FieldContainer *,
100 NoRefCountPolicy > {};
101 /*! \ingroup GrpBaseFieldContainerFieldSFields \ingroup GrpLibOSGBase */
102 struct SFParentFieldContainerPtr :
103 public ParentPointerSField<FieldContainer *,
104 NoRefCountPolicy,
105 1 > {};
107 #endif // these are the doxygen hacks
109 OSG_END_NAMESPACE
111 #include "OSGFieldContainerSFields.inl"
113 #endif /* _OSGFIELDCONTAINERSFIELDS_H_ */