- Timestamp:
- Aug 20, 2010, 2:59:20 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/consolecommands3/src/libraries/core/Executor.h
r7189 r7192 41 41 class _CoreExport Executor 42 42 { 43 friend class SharedPtr<Executor>; 44 43 45 public: 44 46 Executor(Functor* functor, const std::string& name = ""); … … 108 110 std::string name_; 109 111 MultiType defaultValue_[MAX_FUNCTOR_ARGUMENTS]; 112 113 private: 114 inline void incrementReferenceCount() 115 { ++this->references_; } 116 inline void decrementReferenceCount() 117 { --this->references_; if (this->references_ == 0) delete this; } 118 119 int references_; 120 static int instances_s; 110 121 }; 111 122 … … 187 198 }; 188 199 200 201 202 typedef SharedPtr<Executor> ExecutorPtr; 203 204 typedef SharedChildPtr<ExecutorStatic, Executor> ExecutorStaticPtr; 205 206 template <class T> 207 class ExecutorMemberPtr : public SharedChildPtr<ExecutorMember<T>, Executor> 208 { 209 public: 210 inline ExecutorMemberPtr() : SharedChildPtr<ExecutorMember<T>, Executor>() {} 211 inline ExecutorMemberPtr(ExecutorMember<T>* pointer) : SharedChildPtr<ExecutorMember<T>, Executor>(pointer) {} 212 // inline ExecutorMemberPtr(const ExecutorMemberPtr& other) : SharedChildPtr<ExecutorMember<T>, Executor>(other) {} 213 }; 214 215 216 189 217 inline Executor* createExecutor(Functor* functor, const std::string& name = "") 190 218 {
Note: See TracChangeset
for help on using the changeset viewer.