changed: gcc8 base update
[opensg.git] / Source / Base / FieldContainer / Fields / OSGChangedFunctorMFields.h
blob6d829af31adff60cf16ecabf9d225b46e0ac9836
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 _OSGCHANGEDFUNCTORMFIELDS_H_
40 #define _OSGCHANGEDFUNCTORMFIELDS_H_
41 #ifdef __sgi
42 #pragma once
43 #endif
45 #include "OSGMField.h"
46 #include "OSGChangedFunctorFieldTraits.h"
48 OSG_BEGIN_NAMESPACE
50 #ifndef DOXYGEN_SHOULD_SKIP_THIS
52 /*! \ingroup GrpBaseFieldContainerFieldMFields */
53 typedef MField<ChangedFunctorCallback> MFChangedFunctorCallback;
55 #else // these are the doxygen hacks
57 /*! \ingroup GrpBaseFieldContainerFieldMFields \ingroup GrpLibOSGBase */
58 struct MFChangedFunctorCallback : public MField<ChangedFunctorCallback> {};
60 #endif // these are the doxygen hacks
62 // there is no good way of comparing boost function objects
63 template<> inline
64 bool MField<ChangedFunctorCallback, 0>::operator ==(
65 const MField<ChangedFunctorCallback, 0> & OSG_CHECK_ARG(source)) const
67 return false;
70 #if 0
71 template <>
72 OSG_BASE_DLLMAPPING
73 void FieldDescription<FieldTraits<ChangedFunctorCallback>,
74 MultiField >::cloneValues(
75 const Field *pSrc,
76 const UInt32 fieldId,
77 FieldContainerPtrConstArg pDst,
78 const std::vector<const FieldContainerType*> &shareTypes,
79 const std::vector<const FieldContainerType*> &ignoreTypes,
80 const std::vector<UInt16> &shareGroupIds,
81 const std::vector<UInt16> &ignoreGroupIds) const;
83 template <>
84 OSG_BASE_DLLMAPPING
85 void FieldDescription<FieldTraits<ChangedFunctorCallback>,
86 MultiField >::shareValues(
87 const Field *pSrc,
88 const UInt32 fieldId,
89 FieldContainerPtrConstArg pDst,
90 const std::vector<const FieldContainerType*> &cloneTypes,
91 const std::vector<const FieldContainerType*> &ignoreTypes,
92 const std::vector<UInt16> &cloneGroupIds,
93 const std::vector<UInt16> &ignoreGroupIds) const;
94 #endif
96 OSG_END_NAMESPACE
98 #endif /* _OSGCHANGEDFUNCTORCOREMFIELDS_H_ */