changed: gcc8 base update
[opensg.git] / Source / Base / FieldContainer / Fields / OSGNodeMFields.h
blob00379cb6ca8b10af972ecdac88a096d1bb5d86c7
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 _OSGNODEMFIELDS_H_
40 #define _OSGNODEMFIELDS_H_
41 #ifdef __sgi
42 #pragma once
43 #endif
45 #include "OSGNodeFieldTraits.h"
46 #include "OSGPointerMField.h"
47 #include "OSGParentPointerMField.h"
49 OSG_BEGIN_NAMESPACE
51 #ifndef DOXYGEN_SHOULD_SKIP_THIS
53 /*! \ingroup GrpBaseFieldContainerFieldMFields */
54 typedef PointerMField <Node *,
55 RecordedRefCountPolicy > MFRecNodePtr;
56 /*! \ingroup GrpBaseFieldContainerFieldMFields */
57 typedef PointerMField <Node *,
58 UnrecordedRefCountPolicy> MFUnrecNodePtr;
59 /*! \ingroup GrpBaseFieldContainerFieldMFields */
60 typedef PointerMField <Node *,
61 WeakRefCountPolicy > MFWeakNodePtr;
62 /*! \ingroup GrpBaseFieldContainerFieldMFields */
63 typedef PointerMField <Node *,
64 NoRefCountPolicy > MFUncountedNodePtr;
65 /*! \ingroup GrpBaseFieldContainerFieldMFields */
66 typedef ChildPointerMField <Node *,
67 UnrecordedRefCountPolicy,
68 1 > MFUnrecChildNodePtr;
69 /*! \ingroup GrpBaseFieldContainerFieldMFields */
70 typedef ParentPointerMField<Node *,
71 NoRefCountPolicy,
72 1 > MFParentNodePtr;
74 #else // these are the doxygen hacks
76 /*! \ingroup GrpBaseFieldContainerFieldMFields \ingroup GrpLibOSGBase */
77 struct MFRecNodePtr :
78 public PointerMField <Node *,
79 RecordedRefCountPolicy > {};
80 /*! \ingroup GrpBaseFieldContainerFieldMFields \ingroup GrpLibOSGBase */
81 struct MFUnrecNodePtr :
82 public PointerMField <Node *,
83 UnrecordedRefCountPolicy> {};
84 /*! \ingroup GrpBaseFieldContainerFieldMFields \ingroup GrpLibOSGBase */
85 struct MFWeakNodePtr :
86 public PointerMField <Node *,
87 WeakRefCountPolicy > {};
88 /*! \ingroup GrpBaseFieldContainerFieldMFields \ingroup GrpLibOSGBase */
89 struct MFUncountedNodePtr :
90 public PointerMField <Node *,
91 NoRefCountPolicy > {};
92 /*! \ingroup GrpBaseFieldContainerFieldMFields \ingroup GrpLibOSGBase */
93 struct MFUnrecChildNodePtr :
94 public ChildPointerMField <Node *,
95 UnrecordedRefCountPolicy,
96 1 > {};
97 /*! \ingroup GrpBaseFieldContainerFieldMFields \ingroup GrpLibOSGBase */
98 struct MFParentNodePtr :
99 public ParentPointerMField<Node *,
100 NoRefCountPolicy,
101 1 > {};
103 #endif // these are the doxygen hacks
105 OSG_END_NAMESPACE
107 #endif /* _OSGNODEMFIELDS_H_ */