1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2003 by the OpenSG Forum *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
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 #ifndef _OSGNODEMFIELDS_H_
40 #define _OSGNODEMFIELDS_H_
45 #include "OSGNodeFieldTraits.h"
46 #include "OSGPointerMField.h"
47 #include "OSGParentPointerMField.h"
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
*,
74 #else // these are the doxygen hacks
76 /*! \ingroup GrpBaseFieldContainerFieldMFields \ingroup GrpLibOSGBase */
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
,
97 /*! \ingroup GrpBaseFieldContainerFieldMFields \ingroup GrpLibOSGBase */
98 struct MFParentNodePtr
:
99 public ParentPointerMField
<Node
*,
103 #endif // these are the doxygen hacks
107 #endif /* _OSGNODEMFIELDS_H_ */