- Timestamp:
- Aug 21, 2010, 4:54:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/consolecommands3/src/libraries/core/Executor.h
r7192 r7196 36 36 #include "util/MultiType.h" 37 37 #include "Functor.h" 38 #include "ExecutorPtr.h" 38 39 39 40 namespace orxonox … … 112 113 113 114 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 115 static int instances_s; 121 116 }; … … 198 193 }; 199 194 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 217 195 inline Executor* createExecutor(Functor* functor, const std::string& name = "") 218 196 {
Note: See TracChangeset
for help on using the changeset viewer.