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