1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2000-2013 by the OpenSG Forum *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, carsten_neumann@gmx.net *
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 /*****************************************************************************\
40 *****************************************************************************
42 ** This file is automatically generated. **
44 ** Any changes made to this file WILL be lost when it is **
45 ** regenerated, which can become necessary at any time. **
47 ** Do not change this file, changes should be done in the derived **
48 ** class ComputeAlgorithm!
50 *****************************************************************************
51 \*****************************************************************************/
57 #pragma warning(disable: 4355) // turn off 'this' : used in base member initializer list warning
58 #pragma warning(disable: 4290) // disable exception specification warning
61 #include "OSGConfig.h"
66 #include "OSGComputeAlgorithmBase.h"
67 #include "OSGComputeAlgorithm.h"
69 #include <boost/bind.hpp>
73 /***************************************************************************\
75 \***************************************************************************/
77 /*! \class OSG::ComputeAlgorithm
81 /***************************************************************************\
82 * Field Documentation *
83 \***************************************************************************/
86 /***************************************************************************\
87 * FieldType/FieldTrait Instantiation *
88 \***************************************************************************/
90 #if !defined(OSG_DO_DOC) || defined(OSG_DOC_DEV)
91 PointerType FieldTraits
<ComputeAlgorithm
*, nsOSG
>::_type(
92 "ComputeAlgorithmPtr",
93 "AttachmentContainerPtr",
94 ComputeAlgorithm::getClassType(),
98 OSG_FIELDTRAITS_GETTYPE_NS(ComputeAlgorithm
*, nsOSG
)
100 OSG_EXPORT_PTR_SFIELD_FULL(PointerSField
,
104 OSG_EXPORT_PTR_MFIELD_FULL(PointerMField
,
108 /***************************************************************************\
109 * Field Description *
110 \***************************************************************************/
112 void ComputeAlgorithmBase::classDescInserter(TypeObject
&oType
)
117 ComputeAlgorithmBase::TypeObject
ComputeAlgorithmBase::_type(
118 ComputeAlgorithmBase::getClassname(),
119 Inherited::getClassname(),
123 reinterpret_cast<InitContainerF
>(&ComputeAlgorithm::initMethod
),
124 reinterpret_cast<ExitContainerF
>(&ComputeAlgorithm::exitMethod
),
125 reinterpret_cast<InitalInsertDescFunc
>(
126 reinterpret_cast<void *>(&ComputeAlgorithm::classDescInserter
)),
129 "<?xml version=\"1.0\"?>\n"
132 "\tname=\"ComputeAlgorithm\"\n"
133 "\tparent=\"AttachmentContainer\"\n"
134 "\tlibrary=\"ContribComputeBase\"\n"
135 "\tpointerfieldtypes=\"both\"\n"
136 "\tstructure=\"abstract\"\n"
137 "\tsystemcomponent=\"true\"\n"
138 "\tparentsystemcomponent=\"true\"\n"
139 "\tdecoratable=\"false\"\n"
140 "\tuseLocalIncludes=\"false\"\n"
141 " isNodeCore=\"false\"\n"
143 "</FieldContainer>\n",
147 /*------------------------------ get -----------------------------------*/
149 FieldContainerType
&ComputeAlgorithmBase::getType(void)
154 const FieldContainerType
&ComputeAlgorithmBase::getType(void) const
159 UInt32
ComputeAlgorithmBase::getContainerSize(void) const
161 return sizeof(ComputeAlgorithm
);
164 /*------------------------- decorator get ------------------------------*/
171 /*------------------------------ access -----------------------------------*/
173 SizeT
ComputeAlgorithmBase::getBinSize(ConstFieldMaskArg whichField
)
175 SizeT returnValue
= Inherited::getBinSize(whichField
);
181 void ComputeAlgorithmBase::copyToBin(BinaryDataHandler
&pMem
,
182 ConstFieldMaskArg whichField
)
184 Inherited::copyToBin(pMem
, whichField
);
188 void ComputeAlgorithmBase::copyFromBin(BinaryDataHandler
&pMem
,
189 ConstFieldMaskArg whichField
)
191 Inherited::copyFromBin(pMem
, whichField
);
198 /*------------------------- constructors ----------------------------------*/
200 ComputeAlgorithmBase::ComputeAlgorithmBase(void) :
205 ComputeAlgorithmBase::ComputeAlgorithmBase(const ComputeAlgorithmBase
&source
) :
211 /*-------------------------- destructors ----------------------------------*/
213 ComputeAlgorithmBase::~ComputeAlgorithmBase(void)
219 #ifdef OSG_MT_CPTR_ASPECT
220 void ComputeAlgorithmBase::execSyncV( FieldContainer
&oFrom
,
221 ConstFieldMaskArg whichField
,
222 AspectOffsetStore
&oOffsets
,
223 ConstFieldMaskArg syncMode
,
224 const UInt32 uiSyncInfo
)
226 ComputeAlgorithm
*pThis
= static_cast<ComputeAlgorithm
*>(this);
228 pThis
->execSync(static_cast<ComputeAlgorithm
*>(&oFrom
),
238 void ComputeAlgorithmBase::resolveLinks(void)
240 Inherited::resolveLinks();