Changeset 10817 for code/branches/cpp11_v2/src/libraries/core
- Timestamp:
- Nov 19, 2015, 11:40:28 AM (9 years ago)
- Location:
- code/branches/cpp11_v2/src/libraries/core
- Files:
-
- 45 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/libraries/core/ConfigurablePaths.cc
r10769 r10817 54 54 #include "util/Exception.h" 55 55 #include "commandline/CommandLineIncludes.h" 56 #include "core/ApplicationPaths.h" 56 57 57 58 // Differentiate Boost Filesystem v2 and v3 -
code/branches/cpp11_v2/src/libraries/core/Core.h
r10624 r10817 45 45 46 46 #include <string> 47 #include <list> 47 48 #include "util/DestructionHelper.h" 48 49 #include "util/Singleton.h" -
code/branches/cpp11_v2/src/libraries/core/CoreIncludes.h
r10765 r10817 221 221 struct InheritsFromClass : public Identifier::InheritsFrom 222 222 { 223 virtual Identifier* getParent() const { return Class(T); }223 virtual Identifier* getParent() const override { return Class(T); } 224 224 }; 225 225 … … 231 231 ~StaticallyInitializedIdentifier() { delete identifier_; } 232 232 233 virtual void load() 233 virtual void load() override 234 234 { 235 235 IdentifierManager::getInstance().addIdentifier(this->identifier_); 236 236 } 237 237 238 virtual void unload() 238 virtual void unload() override 239 239 { 240 240 IdentifierManager::getInstance().removeIdentifier(this->identifier_); -
code/branches/cpp11_v2/src/libraries/core/CoreStaticInitializationHandler.h
r10624 r10817 43 43 CoreStaticInitializationHandler() : bInitInstances_(false) {} 44 44 45 virtual void setupHandler() ;46 virtual void shutdownHandler() ;45 virtual void setupHandler() override; 46 virtual void shutdownHandler() override; 47 47 48 virtual void loadModule(ModuleInstance* module) ;49 virtual void unloadModule(ModuleInstance* module) ;48 virtual void loadModule(ModuleInstance* module) override; 49 virtual void unloadModule(ModuleInstance* module) override; 50 50 51 51 inline void setInitInstances(bool bInitInstances) -
code/branches/cpp11_v2/src/libraries/core/GUIManager.cc
r10775 r10817 124 124 { 125 125 public: 126 void logEvent(const CEGUI::String& message, CEGUI::LoggingLevel level = CEGUI::Standard) 126 void logEvent(const CEGUI::String& message, CEGUI::LoggingLevel level = CEGUI::Standard) override 127 127 { 128 128 OutputLevel orxonoxLevel = level::debug_output; … … 143 143 144 144 /// Carbon copy from CEGUIDefaultLogger.cpp with a bugfix for Windows 145 void setLogFilename(const CEGUI::String& filename, bool append = false) 145 void setLogFilename(const CEGUI::String& filename, bool append = false) override 146 146 { 147 147 // Close current log file (if any) … … 228 228 public: 229 229 /// Callback from Ogre invoked before other stuff in our target queue is rendered 230 void renderQueueStarted(Ogre::uint8 id, const Ogre::String& invocation, bool& skipThisQueue) 230 void renderQueueStarted(Ogre::uint8 id, const Ogre::String& invocation, bool& skipThisQueue) override 231 231 { 232 232 if (id == Ogre::RENDER_QUEUE_OVERLAY && invocation.empty()) -
code/branches/cpp11_v2/src/libraries/core/GUIManager.h
r10771 r10817 169 169 170 170 // keyHandler functions 171 void buttonPressed (const KeyEvent& evt) ;172 void buttonReleased(const KeyEvent& evt) ;171 void buttonPressed (const KeyEvent& evt) override; 172 void buttonReleased(const KeyEvent& evt) override; 173 173 174 174 // mouseHandler functions 175 void buttonPressed (MouseButtonCode::ByEnum id) ;176 void buttonReleased(MouseButtonCode::ByEnum id) ;177 void mouseMoved (IntVector2 abs, IntVector2 rel, IntVector2 clippingSize) ;178 void mouseScrolled (int abs, int rel) ;175 void buttonPressed (MouseButtonCode::ByEnum id) override; 176 void buttonReleased(MouseButtonCode::ByEnum id) override; 177 void mouseMoved (IntVector2 abs, IntVector2 rel, IntVector2 clippingSize) override; 178 void mouseScrolled (int abs, int rel) override; 179 179 void mouseLeft (); 180 180 181 181 // window event handler 182 virtual void windowResized(unsigned int newWidth, unsigned int newHeight) ;183 virtual void windowFocusChanged(bool bFocus) ;182 virtual void windowResized(unsigned int newWidth, unsigned int newHeight) override; 183 virtual void windowFocusChanged(bool bFocus) override; 184 184 185 185 #ifdef ORXONOX_OLD_CEGUI -
code/branches/cpp11_v2/src/libraries/core/Game.h
r10772 r10817 135 135 { 136 136 public: 137 std::shared_ptr<GameState> fabricateInternal(const GameStateInfo& info) 137 std::shared_ptr<GameState> fabricateInternal(const GameStateInfo& info) override 138 138 { return std::shared_ptr<GameState>(std::make_shared<T>(info)); } 139 139 }; -
code/branches/cpp11_v2/src/libraries/core/GraphicsManager.cc
r10771 r10817 82 82 { 83 83 public: 84 void windowResized (Ogre::RenderWindow* rw) 84 void windowResized (Ogre::RenderWindow* rw) override 85 85 { orxonox::WindowEventListener::resizeWindow(rw->getWidth(), rw->getHeight()); } 86 void windowFocusChange (Ogre::RenderWindow* rw) 86 void windowFocusChange (Ogre::RenderWindow* rw) override 87 87 { orxonox::WindowEventListener::changeWindowFocus(rw->isActive()); } 88 void windowClosed (Ogre::RenderWindow* rw) 88 void windowClosed (Ogre::RenderWindow* rw) override 89 89 { orxonox::Game::getInstance().stop(); } 90 void windowMoved (Ogre::RenderWindow* rw) 90 void windowMoved (Ogre::RenderWindow* rw) override 91 91 { orxonox::WindowEventListener::moveWindow(); } 92 92 }; -
code/branches/cpp11_v2/src/libraries/core/GraphicsManager.h
r10771 r10817 111 111 // event from Ogre::LogListener 112 112 #if OGRE_VERSION >= 0x010800 113 void messageLogged(const std::string& message, Ogre::LogMessageLevel lml, bool maskDebug, const std::string& logName, bool& skipThisMessage) ;113 void messageLogged(const std::string& message, Ogre::LogMessageLevel lml, bool maskDebug, const std::string& logName, bool& skipThisMessage) override; 114 114 #else 115 115 void messageLogged(const std::string& message, Ogre::LogMessageLevel lml, bool maskDebug, const std::string& logName); -
code/branches/cpp11_v2/src/libraries/core/LuaState.cc
r10771 r10817 33 33 extern "C" { 34 34 #include <lua.h> 35 #include <lualib.h> 35 #include <lualib.h> 36 36 } 37 37 #include <loki/ScopeGuard.h> -
code/branches/cpp11_v2/src/libraries/core/Namespace.h
r9667 r10817 50 50 virtual ~Namespace(); 51 51 52 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;52 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 53 53 54 54 void loadObjects(BaseObject* object); -
code/branches/cpp11_v2/src/libraries/core/Template.h
r9667 r10817 54 54 virtual ~Template(); 55 55 56 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;57 virtual void changedName() ;56 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 57 virtual void changedName() override; 58 58 59 59 inline void setLink(const std::string& link) -
code/branches/cpp11_v2/src/libraries/core/XMLPort.h
r10768 r10817 459 459 } 460 460 461 virtual XMLPortParamContainer& defaultValue(unsigned int index, const MultiType& param) 461 virtual XMLPortParamContainer& defaultValue(unsigned int index, const MultiType& param) override 462 462 { 463 463 if (!this->loadexecutor_->defaultValueSet(index)) … … 465 465 return this->portIfWaitingForDefaultValues(this->parseResult_, this->parseParams_); 466 466 } 467 virtual XMLPortParamContainer& defaultValues(const MultiType& param1) 467 virtual XMLPortParamContainer& defaultValues(const MultiType& param1) override 468 468 { 469 469 if (!this->loadexecutor_->defaultValueSet(0)) … … 471 471 return this->portIfWaitingForDefaultValues(this->parseResult_, this->parseParams_); 472 472 } 473 virtual XMLPortParamContainer& defaultValues(const MultiType& param1, const MultiType& param2) 473 virtual XMLPortParamContainer& defaultValues(const MultiType& param1, const MultiType& param2) override 474 474 { 475 475 if ((!this->loadexecutor_->defaultValueSet(0)) || (!this->loadexecutor_->defaultValueSet(1))) … … 477 477 return this->portIfWaitingForDefaultValues(this->parseResult_, this->parseParams_); 478 478 } 479 virtual XMLPortParamContainer& defaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3) 479 virtual XMLPortParamContainer& defaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3) override 480 480 { 481 481 if ((!this->loadexecutor_->defaultValueSet(0)) || (!this->loadexecutor_->defaultValueSet(1)) || (!this->loadexecutor_->defaultValueSet(2))) … … 483 483 return this->portIfWaitingForDefaultValues(this->parseResult_, this->parseParams_); 484 484 } 485 virtual XMLPortParamContainer& defaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3, const MultiType& param4) 485 virtual XMLPortParamContainer& defaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3, const MultiType& param4) override 486 486 { 487 487 if ((!this->loadexecutor_->defaultValueSet(0)) || (!this->loadexecutor_->defaultValueSet(1)) || (!this->loadexecutor_->defaultValueSet(2)) || (!this->loadexecutor_->defaultValueSet(3))) … … 489 489 return this->portIfWaitingForDefaultValues(this->parseResult_, this->parseParams_); 490 490 } 491 virtual XMLPortParamContainer& defaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3, const MultiType& param4, const MultiType& param5) 491 virtual XMLPortParamContainer& defaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3, const MultiType& param4, const MultiType& param5) override 492 492 { 493 493 if ((!this->loadexecutor_->defaultValueSet(0)) || (!this->loadexecutor_->defaultValueSet(1)) || (!this->loadexecutor_->defaultValueSet(2)) || (!this->loadexecutor_->defaultValueSet(3)) || (!this->loadexecutor_->defaultValueSet(4))) … … 556 556 } 557 557 558 void callLoadExecutor(BaseObject* object, BaseObject* newObject) 558 void callLoadExecutor(BaseObject* object, BaseObject* newObject) override 559 559 { 560 560 T* castObject = orxonox_cast<T*>(object); -
code/branches/cpp11_v2/src/libraries/core/class/Identifier.h
r10774 r10817 289 289 bool initializeObject(T* object); 290 290 291 virtual void updateConfigValues(bool updateChildren = true) const ;292 293 virtual const std::type_info& getTypeInfo() 291 virtual void updateConfigValues(bool updateChildren = true) const override; 292 293 virtual const std::type_info& getTypeInfo() override 294 294 { return typeid(T); } 295 295 296 virtual bool canDynamicCastObjectToIdentifierClass(Identifiable* object) const 296 virtual bool canDynamicCastObjectToIdentifierClass(Identifiable* object) const override 297 297 { return dynamic_cast<T*>(object) != nullptr; } 298 298 299 virtual void destroyObjects() ;299 virtual void destroyObjects() override; 300 300 301 301 static ClassIdentifier<T>* getIdentifier(); -
code/branches/cpp11_v2/src/libraries/core/class/Super.h
r10768 r10817 584 584 // Creates the super-function-callers by calling the first SuperFunctionCondition check 585 585 // This get's called within the initialization of an Identifier 586 virtual void createSuperFunctionCaller() const 586 virtual void createSuperFunctionCaller() const override 587 587 { 588 588 SuperFunctionCondition<0, T, 0, 0>::superCheck(); -
code/branches/cpp11_v2/src/libraries/core/command/ConsoleCommandIncludes.h
r10765 r10817 316 316 ~StaticallyInitializedConsoleCommand() { delete command_; } 317 317 318 virtual void load() ;319 virtual void unload() ;318 virtual void load() override; 319 virtual void unload() override; 320 320 321 321 inline ConsoleCommand& getCommand() -
code/branches/cpp11_v2/src/libraries/core/command/ConsoleCommandManager.h
r10769 r10817 38 38 39 39 #include "util/Singleton.h" 40 41 #include <map> 40 42 41 43 namespace orxonox -
code/branches/cpp11_v2/src/libraries/core/command/Functor.h
r10768 r10817 249 249 250 250 // see Functor::operator()() 251 MultiType operator()(const MultiType& param1 = MultiType::Null, const MultiType& param2 = MultiType::Null, const MultiType& param3 = MultiType::Null, const MultiType& param4 = MultiType::Null, const MultiType& param5 = MultiType::Null) 251 MultiType operator()(const MultiType& param1 = MultiType::Null, const MultiType& param2 = MultiType::Null, const MultiType& param3 = MultiType::Null, const MultiType& param4 = MultiType::Null, const MultiType& param5 = MultiType::Null) override 252 252 { 253 253 // call the function if an object was assigned … … 262 262 263 263 // see Functor::getType() 264 inline Functor::Type::Enum getType() const 264 inline Functor::Type::Enum getType() const override 265 265 { return Functor::Type::Member; } 266 266 … … 280 280 281 281 // see Functor::setRawObjectPointer() 282 inline void setRawObjectPointer(void* object) 282 inline void setRawObjectPointer(void* object) override 283 283 { this->setObject((O*)object); } 284 284 // see Functor::getRawObjectPointer() 285 inline void* getRawObjectPointer() const 285 inline void* getRawObjectPointer() const override 286 286 { return this->object_; } 287 287 288 288 // see Functor::setSafeMode() 289 inline void setSafeMode(bool bSafeMode) 289 inline void setSafeMode(bool bSafeMode) override 290 290 { 291 291 if (bSafeMode == this->bSafeMode_) … … 309 309 310 310 /// Will be called by Destroyable::~Destroyable() if the stored object is deleted and the Functor is in safe mode. 311 inline void objectDeleted() 311 inline void objectDeleted() override 312 312 { this->object_ = nullptr; } 313 313 … … 328 328 329 329 // see Functor::operator()() 330 MultiType operator()(const MultiType& param1 = MultiType::Null, const MultiType& param2 = MultiType::Null, const MultiType& param3 = MultiType::Null, const MultiType& param4 = MultiType::Null, const MultiType& param5 = MultiType::Null) 330 MultiType operator()(const MultiType& param1 = MultiType::Null, const MultiType& param2 = MultiType::Null, const MultiType& param3 = MultiType::Null, const MultiType& param4 = MultiType::Null, const MultiType& param5 = MultiType::Null) override 331 331 { 332 332 return (*this)((void*)nullptr, param1, param2, param3, param4, param5); … … 334 334 335 335 // see Functor::getType() 336 inline Functor::Type::Enum getType() const 336 inline Functor::Type::Enum getType() const override 337 337 { return Functor::Type::Static; } 338 338 339 339 // see Functor::setRawObjectPointer() 340 inline void setRawObjectPointer(void*) 340 inline void setRawObjectPointer(void*) override 341 341 { orxout(internal_warning) << "Can't assign an object pointer to a static functor" << endl; } 342 342 // see Functor::getRawObjectPointer() 343 inline void* getRawObjectPointer() const 343 inline void* getRawObjectPointer() const override 344 344 { return nullptr; } 345 345 346 346 // see Functor::setSafeMode() 347 inline void setSafeMode(bool) {}347 inline void setSafeMode(bool) override {} 348 348 }; 349 349 -
code/branches/cpp11_v2/src/libraries/core/command/IOConsolePOSIX.h
r8858 r10817 65 65 66 66 // Methods from ShellListener 67 void linesChanged() ;68 void lineAdded() ;69 void inputChanged() ;70 void cursorChanged() ;71 void executed() ;72 void exit() ;67 void linesChanged() override; 68 void lineAdded() override; 69 void inputChanged() override; 70 void cursorChanged() override; 71 void executed() override; 72 void exit() override; 73 73 74 74 bool willPrintStatusLines(); -
code/branches/cpp11_v2/src/libraries/core/command/IOConsoleWindows.h
r9676 r10817 67 67 68 68 // Methods from ShellListener 69 void linesChanged() ;70 void lineAdded() ;71 void inputChanged() ;72 void cursorChanged() ;73 void executed() ;74 void exit() ;69 void linesChanged() override; 70 void lineAdded() override; 71 void inputChanged() override; 72 void cursorChanged() override; 73 void executed() override; 74 void exit() override; 75 75 76 76 void resetTerminalMode(); -
code/branches/cpp11_v2/src/libraries/core/command/Shell.h
r10769 r10817 151 151 152 152 // DevModeListener 153 void devModeChanged(bool value) ;153 void devModeChanged(bool value) override; 154 154 155 155 void addToHistory(const std::string& command); … … 157 157 void clearInput(); 158 158 // BaseWriter 159 virtual void printLine(const std::string& line, OutputLevel level) ;159 virtual void printLine(const std::string& line, OutputLevel level) override; 160 160 161 161 void configureInputBuffer(); -
code/branches/cpp11_v2/src/libraries/core/commandline/CommandLineIncludes.h
r10535 r10817 64 64 ~StaticallyInitializedCommandLineArgument() { delete argument_; } 65 65 66 virtual void load() 66 virtual void load() override 67 67 { CommandLineParser::addArgument(this->argument_); } 68 68 69 virtual void unload() 69 virtual void unload() override 70 70 { CommandLineParser::removeArgument(this->argument_); } 71 71 -
code/branches/cpp11_v2/src/libraries/core/config/ConfigFile.cc
r10768 r10817 38 38 #include <iterator> 39 39 #include <algorithm> 40 #include <fstream> 40 41 41 42 #include "util/Convert.h" -
code/branches/cpp11_v2/src/libraries/core/config/ConfigFileEntryComment.h
r9559 r10817 56 56 inline virtual ~ConfigFileEntryComment() {} 57 57 58 inline virtual const std::string& getName() const 58 inline virtual const std::string& getName() const override 59 59 { return this->comment_; } 60 60 61 inline virtual void setComment(const std::string& comment) 61 inline virtual void setComment(const std::string& comment) override 62 62 { this->comment_ = comment; } 63 63 64 inline virtual void setValue(const std::string& value) 64 inline virtual void setValue(const std::string& value) override 65 65 {} 66 inline virtual const std::string& getValue() const 66 inline virtual const std::string& getValue() const override 67 67 { return BLANKSTRING; } 68 68 69 inline void setString(bool bString) 69 inline void setString(bool bString) override 70 70 {} 71 71 72 inline virtual const std::string& getFileEntry() const 72 inline virtual const std::string& getFileEntry() const override 73 73 { return this->comment_; } 74 74 -
code/branches/cpp11_v2/src/libraries/core/config/ConfigFileEntryValue.h
r9684 r10817 69 69 inline virtual ~ConfigFileEntryValue() {} 70 70 71 inline virtual const std::string& getName() const 71 inline virtual const std::string& getName() const override 72 72 { return this->name_; } 73 73 74 inline virtual void setComment(const std::string& comment) 74 inline virtual void setComment(const std::string& comment) override 75 75 { this->additionalComment_ = comment; this->update(); } 76 76 77 inline virtual void setValue(const std::string& value) 77 inline virtual void setValue(const std::string& value) override 78 78 { this->value_ = value; this->update(); } 79 inline virtual const std::string& getValue() const 79 inline virtual const std::string& getValue() const override 80 80 { return this->value_; } 81 81 82 inline void virtual setString(bool bString) 82 inline void virtual setString(bool bString) override 83 83 { this->bString_ = bString; this->update(); } 84 84 85 inline virtual const std::string& getFileEntry() const 85 inline virtual const std::string& getFileEntry() const override 86 86 { return this->fileEntry_; } 87 87 -
code/branches/cpp11_v2/src/libraries/core/config/ConfigFileEntryVectorValue.h
r9559 r10817 67 67 inline ~ConfigFileEntryVectorValue() {} 68 68 69 inline unsigned int getIndex() const 69 inline unsigned int getIndex() const override 70 70 { return this->index_; } 71 71 72 72 /// Returns the "key" of the value (the name of the vector plus the index of the element) 73 inline const std::string& getKeyString() const 73 inline const std::string& getKeyString() const override 74 74 { return this->keyString_; } 75 75 76 76 private: 77 void update() ;77 void update() override; 78 78 79 79 unsigned int index_; ///< The index of the element in the vector -
code/branches/cpp11_v2/src/libraries/core/config/ConfigValueContainer.h
r10765 r10817 68 68 inline ConfigValueCallback(void (T::*function) (void)) : function_(function) {} 69 69 inline virtual ~ConfigValueCallback() {} 70 inline virtual void call(void* object) 70 inline virtual void call(void* object) override 71 71 { 72 72 if (!IdentifierManager::getInstance().isCreatingHierarchy()) -
code/branches/cpp11_v2/src/libraries/core/input/HalfAxis.h
r10768 r10817 56 56 using Button::execute; 57 57 bool execute(); 58 bool addParamCommand(ParamCommand* command) ;59 void clear() ;58 bool addParamCommand(ParamCommand* command) override; 59 void clear() override; 60 60 void reset(); 61 61 -
code/branches/cpp11_v2/src/libraries/core/input/InputBuffer.h
r9667 r10817 66 66 { } 67 67 virtual ~InputBufferListenerTuple() { } 68 void callFunction() 68 void callFunction() override 69 69 { 70 70 (listener_->*function_)(); … … 165 165 { if (this->cursor_ > 0) { --this->cursor_; } } 166 166 167 void buttonPressed(const KeyEvent& evt) ;167 void buttonPressed(const KeyEvent& evt) override; 168 168 169 169 private: 170 170 bool charIsAllowed(const char& input); 171 171 172 void buttonHeld (const KeyEvent& evt) ;172 void buttonHeld (const KeyEvent& evt) override; 173 173 void processKey (const KeyEvent& evt); 174 174 175 void keyboardUpdated(float dt) ;175 void keyboardUpdated(float dt) override; 176 176 177 177 std::string buffer_; -
code/branches/cpp11_v2/src/libraries/core/input/InputCommands.h
r10768 r10817 76 76 { 77 77 public: 78 bool execute(float abs = 1.0f, float rel = 1.0f) ;79 CommandEvaluation* getEvaluation() ;80 virtual SimpleCommand* clone() { return new SimpleCommand(*this); }78 bool execute(float abs = 1.0f, float rel = 1.0f) override; 79 CommandEvaluation* getEvaluation() override; 80 virtual SimpleCommand* clone() override { return new SimpleCommand(*this); } 81 81 82 82 CommandEvaluation evaluation_; … … 104 104 public: 105 105 ParamCommand() : scale_(1.0f), paramCommand_(nullptr) { } 106 bool execute(float abs = 1.0f, float rel = 1.0f) ;107 CommandEvaluation* getEvaluation() ;108 virtual ParamCommand* clone() { return new ParamCommand(*this); }106 bool execute(float abs = 1.0f, float rel = 1.0f) override; 107 CommandEvaluation* getEvaluation() override; 108 virtual ParamCommand* clone() override { return new ParamCommand(*this); } 109 109 110 110 float scale_; -
code/branches/cpp11_v2/src/libraries/core/input/InputDevice.h
r8858 r10817 153 153 154 154 //! Captures OIS events (which then get distributed to the derived class) and creates the button held events 155 void update(const Clock& time) 155 void update(const Clock& time) override 156 156 { 157 157 oisDevice_->capture(); … … 160 160 for (unsigned int iB = 0; iB < pressedButtons_.size(); ++iB) 161 161 for (unsigned int iS = 0; iS < inputStates_.size(); ++iS) 162 inputStates_[iS]-> buttonEvent<ButtonEvent::THold, typename Traits::ButtonTypeParam>(162 inputStates_[iS]->template buttonEvent<ButtonEvent::THold, typename Traits::ButtonTypeParam>( 163 163 this->getDeviceID(), static_cast<DeviceClass*>(this)->getButtonEventArg(pressedButtons_[iB])); 164 164 … … 171 171 172 172 //! Clears the list of pressed buttons and calls the derived class's method 173 void clearBuffers() 173 void clearBuffers() override 174 174 { 175 175 pressedButtons_.clear(); … … 180 180 OISDeviceClass* getOISDevice() { return this->oisDevice_; } 181 181 // Returns the name of the derived class as string 182 std::string getClassName() const { return DeviceClass::getClassNameImpl(); }182 std::string getClassName() const override { return DeviceClass::getClassNameImpl(); } 183 183 184 184 protected: … … 197 197 // Call states 198 198 for (unsigned int i = 0; i < inputStates_.size(); ++i) 199 inputStates_[i]-> buttonEvent<ButtonEvent::TPress, typename Traits::ButtonTypeParam>(this->getDeviceID(), static_cast<DeviceClass*>(this)->getButtonEventArg(button));199 inputStates_[i]->template buttonEvent<ButtonEvent::TPress, typename Traits::ButtonTypeParam>(this->getDeviceID(), static_cast<DeviceClass*>(this)->getButtonEventArg(button)); 200 200 } 201 201 … … 219 219 // Call states 220 220 for (unsigned int i = 0; i < inputStates_.size(); ++i) 221 inputStates_[i]-> buttonEvent<ButtonEvent::TRelease, typename Traits::ButtonTypeParam>(this->getDeviceID(), static_cast<DeviceClass*>(this)->getButtonEventArg(button));221 inputStates_[i]->template buttonEvent<ButtonEvent::TRelease, typename Traits::ButtonTypeParam>(this->getDeviceID(), static_cast<DeviceClass*>(this)->getButtonEventArg(button)); 222 222 } 223 223 -
code/branches/cpp11_v2/src/libraries/core/input/InputManager.h
r10775 r10817 208 208 209 209 // From WindowEventListener 210 void windowFocusChanged(bool bFocus) ;210 void windowFocusChanged(bool bFocus) override; 211 211 212 212 private: // variables -
code/branches/cpp11_v2/src/libraries/core/input/InputState.h
r10775 r10817 157 157 ~InputState() { } 158 158 159 void JoyStickQuantityChanged(const std::vector<JoyStick*>& joyStickList) ;159 void JoyStickQuantityChanged(const std::vector<JoyStick*>& joyStickList) override; 160 160 161 161 //! Sets the priority (only to be used by the InputManager!) -
code/branches/cpp11_v2/src/libraries/core/input/JoyStick.h
r9667 r10817 77 77 78 78 private: 79 void calibrationStarted() ;80 void calibrationStopped() ;79 void calibrationStarted() override; 80 void calibrationStopped() override; 81 81 void evaluateCalibration(); 82 82 … … 86 86 87 87 //! OIS event handler 88 bool buttonPressed (const OIS::JoyStickEvent &arg, int button) 88 bool buttonPressed (const OIS::JoyStickEvent &arg, int button) override 89 89 { 90 90 super::buttonPressed(static_cast<JoyStickButtonCode::ByEnum>(button)); … … 93 93 94 94 //! OIS event handler 95 bool buttonReleased(const OIS::JoyStickEvent &arg, int button) 95 bool buttonReleased(const OIS::JoyStickEvent &arg, int button) override 96 96 { 97 97 super::buttonReleased(static_cast<JoyStickButtonCode::ByEnum>(button)); … … 99 99 } 100 100 101 bool axisMoved (const OIS::JoyStickEvent &arg, int axis) ;102 bool sliderMoved (const OIS::JoyStickEvent &arg, int id) ;103 bool povMoved (const OIS::JoyStickEvent &arg, int id) ;101 bool axisMoved (const OIS::JoyStickEvent &arg, int axis) override; 102 bool sliderMoved (const OIS::JoyStickEvent &arg, int id) override; 103 bool povMoved (const OIS::JoyStickEvent &arg, int id) override; 104 104 //! OIS event handler (don't remove that because of OIS version issues!) 105 bool vector3Moved (const OIS::JoyStickEvent &arg, int id) { return true; }105 bool vector3Moved (const OIS::JoyStickEvent &arg, int id) override { return true; } 106 106 107 107 //! Returns the class name as string -
code/branches/cpp11_v2/src/libraries/core/input/KeyBinder.h
r10771 r10817 84 84 void compilePointerLists(); 85 85 // from JoyStickQuantityListener interface 86 virtual void JoyStickQuantityChanged(const std::vector<JoyStick*>& joyStickList) ;87 88 void allDevicesUpdated(float dt) ;89 void mouseUpdated(float dt) ;90 void joyStickUpdated(unsigned int joyStick, float dt) ;86 virtual void JoyStickQuantityChanged(const std::vector<JoyStick*>& joyStickList) override; 87 88 void allDevicesUpdated(float dt) override; 89 void mouseUpdated(float dt) override; 90 void joyStickUpdated(unsigned int joyStick, float dt) override; 91 91 // internal 92 92 void tickHalfAxis(HalfAxis& halfAxis); 93 93 94 void buttonPressed (const KeyEvent& evt) ;95 void buttonReleased(const KeyEvent& evt) ;96 void buttonHeld (const KeyEvent& evt) ;97 98 void buttonPressed (MouseButtonCode::ByEnum button) ;99 void buttonReleased(MouseButtonCode::ByEnum button) ;100 void buttonHeld (MouseButtonCode::ByEnum button) ;101 void mouseMoved (IntVector2 abs, IntVector2 rel, IntVector2 clippingSize) ;102 void mouseScrolled (int abs, int rel) ;103 104 void buttonPressed (unsigned int device, JoyStickButtonCode::ByEnum button) ;105 void buttonReleased(unsigned int device, JoyStickButtonCode::ByEnum button) ;106 void buttonHeld (unsigned int device, JoyStickButtonCode::ByEnum button) ;107 void axisMoved (unsigned int device, unsigned int axis, float value) ;94 void buttonPressed (const KeyEvent& evt) override; 95 void buttonReleased(const KeyEvent& evt) override; 96 void buttonHeld (const KeyEvent& evt) override; 97 98 void buttonPressed (MouseButtonCode::ByEnum button) override; 99 void buttonReleased(MouseButtonCode::ByEnum button) override; 100 void buttonHeld (MouseButtonCode::ByEnum button) override; 101 void mouseMoved (IntVector2 abs, IntVector2 rel, IntVector2 clippingSize) override; 102 void mouseScrolled (int abs, int rel) override; 103 104 void buttonPressed (unsigned int device, JoyStickButtonCode::ByEnum button) override; 105 void buttonReleased(unsigned int device, JoyStickButtonCode::ByEnum button) override; 106 void buttonHeld (unsigned int device, JoyStickButtonCode::ByEnum button) override; 107 void axisMoved (unsigned int device, unsigned int axis, float value) override; 108 108 109 109 protected: // variables -
code/branches/cpp11_v2/src/libraries/core/input/KeyDetector.h
r8729 r10817 51 51 52 52 void callback(const std::string& name); 53 void JoyStickQuantityChanged(const std::vector<JoyStick*>& joyStickList) ;53 void JoyStickQuantityChanged(const std::vector<JoyStick*>& joyStickList) override; 54 54 void assignCommands(); 55 55 -
code/branches/cpp11_v2/src/libraries/core/input/Keyboard.h
r8729 r10817 75 75 } 76 76 77 bool keyPressed(const OIS::KeyEvent& arg) ;78 bool keyReleased(const OIS::KeyEvent& arg) ;77 bool keyPressed(const OIS::KeyEvent& arg) override; 78 bool keyReleased(const OIS::KeyEvent& arg) override; 79 79 80 80 //! Returns the class name as string -
code/branches/cpp11_v2/src/libraries/core/input/Mouse.h
r7809 r10817 74 74 private: 75 75 //! OIS event handler 76 bool mousePressed(const OIS::MouseEvent &arg, OIS::MouseButtonID id) 76 bool mousePressed(const OIS::MouseEvent &arg, OIS::MouseButtonID id) override 77 77 { 78 78 super::buttonPressed(static_cast<MouseButtonCode::ByEnum>(id)); … … 81 81 82 82 //! OIS event handler 83 bool mouseReleased(const OIS::MouseEvent &arg, OIS::MouseButtonID id) 83 bool mouseReleased(const OIS::MouseEvent &arg, OIS::MouseButtonID id) override 84 84 { 85 85 super::buttonReleased(static_cast<MouseButtonCode::ByEnum>(id)); … … 87 87 } 88 88 89 bool mouseMoved(const OIS::MouseEvent &arg) ;89 bool mouseMoved(const OIS::MouseEvent &arg) override; 90 90 91 void windowResized(unsigned int newWidth, unsigned int newHeight) ;91 void windowResized(unsigned int newWidth, unsigned int newHeight) override; 92 92 93 93 // Returns the class name as string -
code/branches/cpp11_v2/src/libraries/core/module/StaticInitializationHandlerIncludes.h
r10535 r10817 53 53 ~StaticallyInitializedStaticInitializationHandler() { delete handler_; } 54 54 55 virtual void load() ;56 virtual void unload() ;55 virtual void load() override; 56 virtual void unload() override; 57 57 58 58 inline StaticInitializationHandler& getHandler() -
code/branches/cpp11_v2/src/libraries/core/object/DestroyLaterManager.h
r10769 r10817 45 45 virtual ~DestroyLaterManager(); 46 46 47 virtual void preUpdate(const Clock& time) { /*no action*/ }48 virtual void postUpdate(const Clock& time) ;47 virtual void preUpdate(const Clock& time) override { /*no action*/ } 48 virtual void postUpdate(const Clock& time) override; 49 49 50 50 void retain(Destroyable* instance) -
code/branches/cpp11_v2/src/libraries/core/object/IteratorBase.h
r10774 r10817 175 175 @param object The object to compare with 176 176 */ 177 virtual void removedElement(ObjectListBaseElement* element) 177 virtual void removedElement(ObjectListBaseElement* element) override 178 178 { 179 179 if (this->element_ == element) -
code/branches/cpp11_v2/src/libraries/core/object/ObjectListBase.h
r10768 r10817 82 82 ObjectListElement(T* object) : ObjectListBaseElement(static_cast<Listable*>(object)), object_(object) {} 83 83 84 virtual void changeContext(Context* oldContext, Context* newContext) 84 virtual void changeContext(Context* oldContext, Context* newContext) override 85 85 { 86 86 // add object to new context, but only if this element belongs exactly to the old context (and not to a sub-context to avoid re-adding objects -
code/branches/cpp11_v2/src/libraries/core/object/WeakPtr.h
r10770 r10817 230 230 private: 231 231 /// Will be called by Destroyable::~Destroyable() if the stored object is deleted. Resets the wrapped pointer and executes the callback. 232 inline void objectDeleted() 232 inline void objectDeleted() override 233 233 { 234 234 this->base_ = nullptr; -
code/branches/cpp11_v2/src/libraries/core/singleton/ScopedSingletonIncludes.h
r10765 r10817 87 87 ~StaticallyInitializedScopedSingletonWrapper() { delete wrapper_; } 88 88 89 virtual void load() ;90 virtual void unload() ;89 virtual void load() override; 90 virtual void unload() override; 91 91 92 92 inline ScopedSingletonWrapper& getWrapper() -
code/branches/cpp11_v2/src/libraries/core/singleton/ScopedSingletonWrapper.h
r10765 r10817 102 102 103 103 //! Called if the Scope of the Singleton gets active (creates the instance) 104 void activated() 104 void activated() override 105 105 { 106 106 assert(singletonPtr_ == nullptr); … … 109 109 110 110 //! Called if the Scope of this Singleton gets deactivated (destroys the instance) 111 void deactivated() 111 void deactivated() override 112 112 { 113 113 assert(singletonPtr_ != nullptr); … … 157 157 158 158 //! Called if the Scope of the Singleton gets active (creates the instance) 159 void activated() 159 void activated() override 160 160 { 161 161 assert(singletonPtr_ == nullptr); … … 169 169 170 170 //! Called if the Scope of this Singleton gets deactivated (destroys the instance) 171 void deactivated() 171 void deactivated() override 172 172 { 173 173 if (singletonPtr_ != nullptr)
Note: See TracChangeset
for help on using the changeset viewer.