OSGAlgorithmComputeElementBase.inl

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002  *                                OpenSG                                     *
00003  *                                                                           *
00004  *                                                                           *
00005  *               Copyright (C) 2000-2006 by the OpenSG Forum                 *
00006  *                                                                           *
00007  *   contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de          *
00008  *                                                                           *
00009 \*---------------------------------------------------------------------------*/
00010 /*---------------------------------------------------------------------------*\
00011  *                                License                                    *
00012  *                                                                           *
00013  * This library is free software; you can redistribute it and/or modify it   *
00014  * under the terms of the GNU Library General Public License as published    *
00015  * by the Free Software Foundation, version 2.                               *
00016  *                                                                           *
00017  * This library is distributed in the hope that it will be useful, but       *
00018  * WITHOUT ANY WARRANTY; without even the implied warranty of                *
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU         *
00020  * Library General Public License for more details.                          *
00021  *                                                                           *
00022  * You should have received a copy of the GNU Library General Public         *
00023  * License along with this library; if not, write to the Free Software       *
00024  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.                 *
00025  *                                                                           *
00026 \*---------------------------------------------------------------------------*/
00027 /*---------------------------------------------------------------------------*\
00028  *                                Changes                                    *
00029  *                                                                           *
00030  *                                                                           *
00031  *                                                                           *
00032  *                                                                           *
00033  *                                                                           *
00034  *                                                                           *
00035 \*---------------------------------------------------------------------------*/
00036
00037 /*****************************************************************************\
00038  *****************************************************************************
00039  **                                                                         **
00040  **                  This file is automatically generated.                  **
00041  **                                                                         **
00042  **          Any changes made to this file WILL be lost when it is          **
00043  **           regenerated, which can become necessary at any time.          **
00044  **                                                                         **
00045  **     Do not change this file, changes should be done in the derived      **
00046  **     class AlgorithmComputeElement!
00047  **                                                                         **
00048  *****************************************************************************
00049 \*****************************************************************************/
00050
00051 OSG_BEGIN_NAMESPACE
00052
00053
00055 inline
00056 OSG::FieldContainerType &AlgorithmComputeElementBase::getClassType(void)
00057 {
00058     return _type;
00059 }
00060
00062 inline
00063 OSG::UInt32 AlgorithmComputeElementBase::getClassTypeId(void)
00064 {
00065     return _type.getId();
00066 }
00067
00068 inline
00069 OSG::UInt16 AlgorithmComputeElementBase::getClassGroupId(void)
00070 {
00071     return _type.getGroupId();
00072 }
00073
00074 /*------------------------------ get -----------------------------------*/
00075
00076
00078 inline
00079 ComputeAlgorithm * AlgorithmComputeElementBase::getAlgorithm(void) const
00080 {
00081     return _sfAlgorithm.getValue();
00082 }
00083
00085 inline
00086 void AlgorithmComputeElementBase::setAlgorithm(ComputeAlgorithm * const value)
00087 {
00088     editSField(AlgorithmFieldMask);
00089
00090     _sfAlgorithm.setValue(value);
00091 }
00092
00093
00094 #ifdef OSG_MT_CPTR_ASPECT
00095 inline
00096 void AlgorithmComputeElementBase::execSync (      AlgorithmComputeElementBase *pFrom,
00097                                         ConstFieldMaskArg  whichField,
00098                                         AspectOffsetStore &oOffsets,
00099                                         ConstFieldMaskArg  syncMode,
00100                                   const UInt32             uiSyncInfo)
00101 {
00102     Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo);
00103
00104     if(FieldBits::NoField != (AlgorithmFieldMask & whichField))
00105         _sfAlgorithm.syncWith(pFrom->_sfAlgorithm);
00106 }
00107 #endif
00108 
00109
00110 inline
00111 const Char8 *AlgorithmComputeElementBase::getClassname(void)
00112 {
00113     return "AlgorithmComputeElement";
00114 }
00115 OSG_GEN_CONTAINERPTR(AlgorithmComputeElement);
00116
00117 OSG_END_NAMESPACE
00118