/* * ORXONOX - the hottest 3D action shooter ever to exist * > www.orxonox.net < * * * License notice: * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: * Fabian 'x3n' Landau * Co-authors: * ... * */ #ifndef _ExecutorPtr_H__ #define _ExecutorPtr_H__ #include "CorePrereqs.h" #include "SharedPtr.h" namespace orxonox { typedef SharedPtr ExecutorPtr; typedef SharedPtr ExecutorStaticPtr; template class ExecutorMemberPtr : public SharedPtr > { public: inline ExecutorMemberPtr() : SharedPtr >() {} inline ExecutorMemberPtr(ExecutorMember* pointer) : SharedPtr >(pointer) {} // inline ExecutorMemberPtr(const ExecutorMemberPtr& other) : SharedPtr >(other) {} template inline ExecutorMemberPtr(const SharedPtr& other) : SharedPtr >(other) {} /* inline const ExecutorMemberPtr& operator=(const ExecutorMemberPtr& other) { this->SharedPtr >::operator=(other); return *this; } template inline const ExecutorMemberPtr& operator=(const SharedPtr& other) { this->SharedPtr >::operator=(other); return *this; } */ private: // inline ExecutorMemberPtr(ExecutorMember* pointer, int* counter) : SharedPtr >(pointer, counter) {} }; /* typedef SharedChildPtr ExecutorStaticPtr; template class ExecutorMemberPtr : public SharedChildPtr, Executor> { public: inline ExecutorMemberPtr() : SharedChildPtr, Executor>() {} inline ExecutorMemberPtr(ExecutorMember* pointer) : SharedChildPtr, Executor>(pointer) {} }; */ } #endif /* _ExecutorPtr_H__ */