fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / Contrib / ComputeBase / Base / OSGComputeAlgorithmBase.h
blob9ece5f09d263637d528b98d76ce7df4b69fb5ff8
1 /*---------------------------------------------------------------------------*\
2 * OpenSG *
3 * *
4 * *
5 * Copyright (C) 2000-2013 by the OpenSG Forum *
6 * *
7 * www.opensg.org *
8 * *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, carsten_neumann@gmx.net *
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 /*****************************************************************************\
40 *****************************************************************************
41 ** **
42 ** This file is automatically generated. **
43 ** **
44 ** Any changes made to this file WILL be lost when it is **
45 ** regenerated, which can become necessary at any time. **
46 ** **
47 ** Do not change this file, changes should be done in the derived **
48 ** class ComputeAlgorithm
49 ** **
50 *****************************************************************************
51 \*****************************************************************************/
54 #ifndef _OSGCOMPUTEALGORITHMBASE_H_
55 #define _OSGCOMPUTEALGORITHMBASE_H_
56 #ifdef __sgi
57 #pragma once
58 #endif
61 #include "OSGConfig.h"
62 #include "OSGContribComputeBaseDef.h"
64 //#include "OSGBaseTypes.h"
66 #include "OSGAttachmentContainer.h" // Parent
69 #include "OSGComputeAlgorithmFields.h"
71 OSG_BEGIN_NAMESPACE
74 class ComputeAlgorithm;
76 //! \brief ComputeAlgorithm Base Class.
78 class OSG_CONTRIBCOMPUTEBASE_DLLMAPPING ComputeAlgorithmBase : public AttachmentContainer
80 public:
82 typedef AttachmentContainer Inherited;
83 typedef AttachmentContainer ParentContainer;
85 typedef Inherited::TypeObject TypeObject;
86 typedef TypeObject::InitPhase InitPhase;
88 OSG_GEN_INTERNALPTR(ComputeAlgorithm);
90 /*========================== PUBLIC =================================*/
92 public:
95 /*---------------------------------------------------------------------*/
96 /*! \name Class Get */
97 /*! \{ */
99 static FieldContainerType &getClassType (void);
100 static UInt32 getClassTypeId (void);
101 static UInt16 getClassGroupId(void);
103 /*! \} */
104 /*---------------------------------------------------------------------*/
105 /*! \name FieldContainer Get */
106 /*! \{ */
108 virtual FieldContainerType &getType (void);
109 virtual const FieldContainerType &getType (void) const;
111 virtual UInt32 getContainerSize(void) const;
113 /*! \} */
114 /*---------------------------------------------------------------------*/
115 /*! \name Binary Access */
116 /*! \{ */
118 virtual SizeT getBinSize (ConstFieldMaskArg whichField);
119 virtual void copyToBin (BinaryDataHandler &pMem,
120 ConstFieldMaskArg whichField);
121 virtual void copyFromBin(BinaryDataHandler &pMem,
122 ConstFieldMaskArg whichField);
125 /*! \} */
126 /*========================= PROTECTED ===============================*/
128 protected:
130 static TypeObject _type;
132 static void classDescInserter(TypeObject &oType);
133 static const Char8 *getClassname (void );
135 /*---------------------------------------------------------------------*/
136 /*! \name Constructors */
137 /*! \{ */
139 ComputeAlgorithmBase(void);
140 ComputeAlgorithmBase(const ComputeAlgorithmBase &source);
142 /*! \} */
143 /*---------------------------------------------------------------------*/
144 /*! \name Destructors */
145 /*! \{ */
147 virtual ~ComputeAlgorithmBase(void);
149 /*! \} */
150 /*---------------------------------------------------------------------*/
151 /*! \name onCreate */
152 /*! \{ */
155 /*! \} */
156 /*---------------------------------------------------------------------*/
157 /*! \name Generic Field Access */
158 /*! \{ */
161 /*! \} */
162 /*---------------------------------------------------------------------*/
163 /*! \name Sync */
164 /*! \{ */
166 #ifdef OSG_MT_CPTR_ASPECT
167 virtual void execSyncV( FieldContainer &oFrom,
168 ConstFieldMaskArg whichField,
169 AspectOffsetStore &oOffsets,
170 ConstFieldMaskArg syncMode ,
171 const UInt32 uiSyncInfo);
173 void execSync ( ComputeAlgorithmBase *pFrom,
174 ConstFieldMaskArg whichField,
175 AspectOffsetStore &oOffsets,
176 ConstFieldMaskArg syncMode ,
177 const UInt32 uiSyncInfo);
178 #endif
180 /*! \} */
181 /*---------------------------------------------------------------------*/
182 /*! \name Edit */
183 /*! \{ */
185 /*! \} */
186 /*---------------------------------------------------------------------*/
187 /*! \name Aspect Create */
188 /*! \{ */
190 /*! \} */
191 /*---------------------------------------------------------------------*/
192 /*! \name Edit */
193 /*! \{ */
194 /*! \} */
195 /*---------------------------------------------------------------------*/
196 /*! \name Sync */
197 /*! \{ */
199 virtual void resolveLinks(void);
201 /*! \} */
202 /*========================== PRIVATE ================================*/
204 private:
205 /*---------------------------------------------------------------------*/
207 // prohibit default functions (move to 'public' if you need one)
208 void operator =(const ComputeAlgorithmBase &source);
211 typedef ComputeAlgorithmBase *ComputeAlgorithmBaseP;
213 OSG_END_NAMESPACE
215 #endif /* _OSGCOMPUTEALGORITHMBASE_H_ */