00001 /*---------------------------------------------------------------------------*\ 00002 * OpenSG * 00003 * * 00004 * * 00005 * Copyright (C) 2000-2002,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 _OSGNODEPTRIMPL_INL_ 00040 #define _OSGNODEPTRIMPL_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 NodePtr::NodePtr(void) : 00055 Inherited() 00056 { 00057 } 00058 00059 inline 00060 NodePtr::NodePtr(const NodePtr &source) : 00061 Inherited(source) 00062 { 00063 } 00064 00065 inline 00066 NodePtr::NodePtr(const NullFieldContainerPtr &source) : 00067 Inherited(source) 00068 { 00069 } 00070 00071 /*-------------------------------------------------------------------------*/ 00072 /* Destructor */ 00073 00074 inline 00075 NodePtr::~NodePtr(void) 00076 { 00077 } 00078 00079 /*-------------------------------------------------------------------------*/ 00080 /* Container Access */ 00081 00082 inline 00083 Node *NodePtr::operator->(void) 00084 { 00085 #if 0 00086 return (Node *) getElemP(Thread::getAspect()); 00087 #else 00088 return reinterpret_cast<Node *>(Inherited::operator ->()); 00089 #endif 00090 } 00091 00092 inline 00093 Node *NodePtr::operator->(void) const 00094 { 00095 #if 0 00096 return (Node *) getElemP(Thread::getAspect()); 00097 #else 00098 return reinterpret_cast<Node *>(Inherited::operator ->()); 00099 #endif 00100 } 00101 00102 inline 00103 Node &NodePtr::operator *(void) 00104 { 00105 #if 0 00106 return *((Node *) getElemP(Thread::getAspect())); 00107 #else 00108 return *(reinterpret_cast<Node *>(Inherited::operator ->())); 00109 #endif 00110 } 00111 00112 inline 00113 Node &NodePtr::operator *(void) const 00114 { 00115 #if 0 00116 return *((Node *) getElemP(Thread::getAspect())); 00117 #else 00118 return *(reinterpret_cast<Node *>(Inherited::operator ->())); 00119 #endif 00120 } 00121 00122 inline 00123 Node *NodePtr::getCPtr(void) 00124 { 00125 #if 0 00126 return (Node *) getElemP(Thread::getAspect()); 00127 #else 00128 return reinterpret_cast<Node *>(Inherited::getCPtr()); 00129 #endif 00130 } 00131 00132 inline 00133 Node *NodePtr::getCPtr(void) const 00134 { 00135 #if 0 00136 return (Node *) getElemP(Thread::getAspect()); 00137 #else 00138 return reinterpret_cast<Node *>(Inherited::getCPtr()); 00139 #endif 00140 } 00141 00142 00143 /*-------------------------------------------------------------------------*/ 00144 /* Assignment */ 00145 00146 inline 00147 void NodePtr::operator = (const NodePtr &source) 00148 { 00149 // copy parts inherited from parent 00150 *(static_cast<Inherited *>(this)) = source; 00151 } 00152 00153 inline 00154 void NodePtr::operator = (const NullFieldContainerPtr &source) 00155 { 00156 // copy parts inherited from parent 00157 *(static_cast<Inherited *>(this)) = source; 00158 } 00159 00160 00161 OSG_END_NAMESPACE 00162 00163 #define OSGNODEPTR_INLINE_CVSID "@(#)$Id: $" 00164 00165 #endif /* _OSGNODEPTRIMPL_INL_ */ 00166 00167
1.4.3