- Timestamp:
- Aug 21, 2010, 9:03:23 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/consolecommands3/src/libraries/core/ExecutorPtr.h
r7196 r7197 37 37 typedef SharedPtr<Executor> ExecutorPtr; 38 38 39 typedef Shared Ptr<ExecutorStatic> ExecutorStaticPtr;39 typedef SharedChildPtr<ExecutorStatic, ExecutorPtr> ExecutorStaticPtr; 40 40 41 41 template <class T> 42 class ExecutorMemberPtr : public Shared Ptr<ExecutorMember<T>>42 class ExecutorMemberPtr : public SharedChildPtr<ExecutorMember<T>, ExecutorPtr> 43 43 { 44 44 public: 45 inline ExecutorMemberPtr() : SharedPtr<ExecutorMember<T> >() {} 46 inline ExecutorMemberPtr(ExecutorMember<T>* pointer) : SharedPtr<ExecutorMember<T> >(pointer) {} 47 // inline ExecutorMemberPtr(const ExecutorMemberPtr& other) : SharedPtr<ExecutorMember<T> >(other) {} 48 template <class O> 49 inline ExecutorMemberPtr(const SharedPtr<O>& other) : SharedPtr<ExecutorMember<T> >(other) {} 50 /* 51 inline const ExecutorMemberPtr& operator=(const ExecutorMemberPtr& other) { this->SharedPtr<ExecutorMember<T> >::operator=(other); return *this; } 52 template <class O> 53 inline const ExecutorMemberPtr& operator=(const SharedPtr<O>& other) { this->SharedPtr<ExecutorMember<T> >::operator=(other); return *this; } 54 */ 55 private: 56 // inline ExecutorMemberPtr(ExecutorMember<T>* pointer, int* counter) : SharedPtr<ExecutorMember<T> >(pointer, counter) {} 45 inline ExecutorMemberPtr() : SharedChildPtr<ExecutorMember<T>, ExecutorPtr>() {} 46 inline ExecutorMemberPtr(ExecutorMember<T>* pointer) : SharedChildPtr<ExecutorMember<T>, ExecutorPtr>(pointer) {} 47 inline ExecutorMemberPtr(const SharedPtr<ExecutorMember<T> >& other) : SharedChildPtr<ExecutorMember<T>, ExecutorPtr>(other) {} 57 48 }; 58 /*59 typedef SharedChildPtr<ExecutorStatic, Executor> ExecutorStaticPtr;60 61 template <class T>62 class ExecutorMemberPtr : public SharedChildPtr<ExecutorMember<T>, Executor>63 {64 public:65 inline ExecutorMemberPtr() : SharedChildPtr<ExecutorMember<T>, Executor>() {}66 inline ExecutorMemberPtr(ExecutorMember<T>* pointer) : SharedChildPtr<ExecutorMember<T>, Executor>(pointer) {}67 };68 */69 49 } 70 50
Note: See TracChangeset
for help on using the changeset viewer.