- Timestamp:
- Aug 24, 2010, 4:56:37 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/consolecommands3/src/libraries/core/command/FunctorPtr.h
r7205 r7212 37 37 typedef SharedPtr<Functor> FunctorPtr; 38 38 39 typedef SharedChildPtr<FunctorStatic, FunctorPtr> FunctorStaticPtr;40 41 39 template <class T> 42 40 class FunctorMemberPtr : public SharedChildPtr<FunctorMember<T>, FunctorPtr> … … 47 45 inline FunctorMemberPtr(const SharedPtr<FunctorMember<T> >& other) : SharedChildPtr<FunctorMember<T>, FunctorPtr>(other) {} 48 46 }; 47 48 typedef FunctorMemberPtr<void> FunctorStaticPtr; 49 50 template <class F, class T> 51 class FunctorPointerPtr : public SharedChildPtr<FunctorPointer<F, T>, FunctorMemberPtr<T> > 52 { 53 public: 54 inline FunctorPointerPtr() : SharedChildPtr<FunctorPointer<F, T>, FunctorMemberPtr<T> >() {} 55 inline FunctorPointerPtr(FunctorPointer<F, T>* pointer) : SharedChildPtr<FunctorPointer<F, T>, FunctorMemberPtr<T> >(pointer) {} 56 inline FunctorPointerPtr(const SharedPtr<FunctorPointer<F, T> >& other) : SharedChildPtr<FunctorPointer<F, T>, FunctorMemberPtr<T> >(other) {} 57 }; 49 58 } 50 59
Note: See TracChangeset
for help on using the changeset viewer.