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 _OSGFIELDCONTAINERSFIELDS_H_
40 #define _OSGFIELDCONTAINERSFIELDS_H_
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"
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
*,
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
*,
107 #endif // these are the doxygen hacks
111 #include "OSGFieldContainerSFields.inl"
113 #endif /* _OSGFIELDCONTAINERSFIELDS_H_ */