00001 /*---------------------------------------------------------------------------*\ 00002 * OpenSG * 00003 * * 00004 * * 00005 * Copyright (C) 2000-2002 by the OpenSG Forum * 00006 * * 00007 * www.opensg.org * 00008 * * 00009 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de * 00010 * * 00011 \*---------------------------------------------------------------------------*/ 00012 /*---------------------------------------------------------------------------*\ 00013 * License * 00014 * * 00015 * This library is free software; you can redistribute it and/or modify it * 00016 * under the terms of the GNU Library General Public License as published * 00017 * by the Free Software Foundation, version 2. * 00018 * * 00019 * This library is distributed in the hope that it will be useful, but * 00020 * WITHOUT ANY WARRANTY; without even the implied warranty of * 00021 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00022 * Library General Public License for more details. * 00023 * * 00024 * You should have received a copy of the GNU Library General Public * 00025 * License along with this library; if not, write to the Free Software * 00026 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * 00027 * * 00028 \*---------------------------------------------------------------------------*/ 00029 /*---------------------------------------------------------------------------*\ 00030 * Changes * 00031 * * 00032 * * 00033 * * 00034 * * 00035 * * 00036 * * 00037 \*---------------------------------------------------------------------------*/ 00038 00039 #ifndef _OSGATTACHMENTPTRIMPL_INL_ 00040 #define _OSGATTACHMENTPTRIMPL_INL_ 00041 00042 #ifdef OSG_DOC_FILES_IN_MODULE 00043 00046 #endif 00047 00048 OSG_BEGIN_NAMESPACE 00049 00050 /*-------------------------------------------------------------------------*/ 00051 /* Constructors */ 00052 00053 inline 00054 AttachmentPtr::AttachmentPtr(void) : 00055 Inherited() 00056 { 00057 } 00058 00059 inline 00060 AttachmentPtr::AttachmentPtr(const AttachmentPtr &source) : 00061 00062 Inherited(source) 00063 { 00064 } 00065 00066 inline 00067 AttachmentPtr::AttachmentPtr(const NullFieldContainerPtr &source) : 00068 00069 Inherited(source) 00070 { 00071 } 00072 00073 /*-------------------------------------------------------------------------*/ 00074 /* Destructor */ 00075 00076 inline 00077 AttachmentPtr::~AttachmentPtr(void) 00078 { 00079 } 00080 00081 /*-------------------------------------------------------------------------*/ 00082 /* Container Access */ 00083 00084 inline 00085 Attachment *AttachmentPtr::operator->(void) 00086 { 00087 #if 0 00088 return (Attachment *) getElemP(Thread::getAspect()); 00089 #else 00090 return (Attachment *) Inherited::operator ->(); 00091 #endif 00092 } 00093 00094 inline 00095 Attachment *AttachmentPtr::operator->(void) const 00096 { 00097 #if 0 00098 return (Attachment *) getElemP(Thread::getAspect()); 00099 #else 00100 return (Attachment *) Inherited::operator ->(); 00101 #endif 00102 } 00103 00104 inline 00105 Attachment &AttachmentPtr::operator *(void) 00106 { 00107 #if 0 00108 return *((Attachment *) getElemP(Thread::getAspect())); 00109 #else 00110 return (Attachment &) Inherited::operator *(); 00111 #endif 00112 } 00113 00114 inline 00115 Attachment &AttachmentPtr::operator *(void) const 00116 { 00117 #if 0 00118 return *((Attachment *) getElemP(Thread::getAspect())); 00119 #else 00120 return (Attachment &) Inherited::operator *(); 00121 #endif 00122 } 00123 00124 inline 00125 Attachment *AttachmentPtr::getCPtr(void) 00126 { 00127 #if 0 00128 return (Attachment *) getElemP(Thread::getAspect()); 00129 #else 00130 return (Attachment *) Inherited::getCPtr(); 00131 #endif 00132 } 00133 00134 inline 00135 Attachment *AttachmentPtr::getCPtr(void) const 00136 { 00137 #if 0 00138 return (Attachment *) getElemP(Thread::getAspect()); 00139 #else 00140 return (Attachment *) Inherited::getCPtr(); 00141 #endif 00142 } 00143 00144 /*-------------------------------------------------------------------------*/ 00145 /* Assignment */ 00146 00147 inline 00148 void AttachmentPtr::operator = (const AttachmentPtr &source) 00149 { 00150 // copy parts inherited from parent 00151 *(static_cast<Inherited *>(this)) = source; 00152 } 00153 00154 inline 00155 void AttachmentPtr::operator = (const NullFieldContainerPtr &source) 00156 { 00157 // copy parts inherited from parent 00158 *(static_cast<Inherited *>(this)) = source; 00159 } 00160 00161 /*-------------------------------------------------------------------------*/ 00162 /* Constructors */ 00163 00164 #ifdef ATTCHECK 00165 00166 inline 00167 AttachmentPtr::AttachmentPtr(const Attachment &source) : 00168 00169 Inherited(source) 00170 { 00171 } 00172 00173 inline 00174 AttachmentPtr::AttachmentPtr(const Attachment *source) : 00175 00176 Inherited(source) 00177 { 00178 } 00179 00180 inline 00181 AttachmentPtr::AttachmentPtr(const Attachment *source, 00182 const UInt16 uiSize, 00183 const UInt16 uiParentPos) : 00184 00185 Inherited(source, uiSize, uiParentPos) 00186 { 00187 } 00188 00189 #endif 00190 00191 OSG_END_NAMESPACE 00192 00193 #define OSGATTACHMENTPTR_INLINE_CVSID "@(#)$Id: $" 00194 00195 #endif /*_OSGATTACHMENTPTRIMPL_INL_ */ 00196
1.4.3