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 _OSGCHANGEDFUNCTORMFIELDS_H_
40 #define _OSGCHANGEDFUNCTORMFIELDS_H_
45 #include "OSGMField.h"
46 #include "OSGChangedFunctorFieldTraits.h"
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
64 bool MField
<ChangedFunctorCallback
, 0>::operator ==(
65 const MField
<ChangedFunctorCallback
, 0> & OSG_CHECK_ARG(source
)) const
73 void FieldDescription
<FieldTraits
<ChangedFunctorCallback
>,
74 MultiField
>::cloneValues(
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;
85 void FieldDescription
<FieldTraits
<ChangedFunctorCallback
>,
86 MultiField
>::shareValues(
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;
98 #endif /* _OSGCHANGEDFUNCTORCOREMFIELDS_H_ */