Changeset 10817 for code/branches/cpp11_v2/src/libraries
- Timestamp:
- Nov 19, 2015, 11:40:28 AM (9 years ago)
- Location:
- code/branches/cpp11_v2/src/libraries
- Files:
-
- 82 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) -
code/branches/cpp11_v2/src/libraries/network/Client.h
r8858 r10817 76 76 static Client* getInstance(){ return singletonPtr_s; } // tolua_export 77 77 78 bool establishConnection() ;78 bool establishConnection() override; 79 79 void setDestination( const std::string& serverAddress, unsigned int port ); // tolua_export 80 bool closeConnection() ;81 void queuePacket(ENetPacket* packet, int clientID, uint8_t channelID) ;82 virtual bool sendPacket( packet::Packet* packet ) { return packet->send( static_cast<Host*>(this) ); }83 virtual void doSendChat(const std::string& message, unsigned int sourceID, unsigned int targetID) ;84 virtual void doReceiveChat(const std::string& message, unsigned int sourceID, unsigned int targetID) ;85 virtual void printRTT() ;80 bool closeConnection() override; 81 void queuePacket(ENetPacket* packet, int clientID, uint8_t channelID) override; 82 virtual bool sendPacket( packet::Packet* packet ) override{ return packet->send( static_cast<Host*>(this) ); } 83 virtual void doSendChat(const std::string& message, unsigned int sourceID, unsigned int targetID) override; 84 virtual void doReceiveChat(const std::string& message, unsigned int sourceID, unsigned int targetID) override; 85 virtual void printRTT() override; 86 86 87 87 void update(const Clock& time); 88 88 protected: 89 virtual void connectionClosed() ;89 virtual void connectionClosed() override; 90 90 private: 91 91 Client(const Client& copy); // not used 92 virtual bool isServer_() {return false;}93 void processPacket(packet::Packet* packet) ;92 virtual bool isServer_() override{return false;} 93 void processPacket(packet::Packet* packet) override; 94 94 95 95 static Client* singletonPtr_s; -
code/branches/cpp11_v2/src/libraries/network/ClientConnection.h
r8327 r10817 57 57 uint32_t getRTT(); 58 58 private: 59 virtual void addPeer(uint32_t peerID) ;60 virtual void removePeer(uint32_t peerID) ;59 virtual void addPeer(uint32_t peerID) override; 60 virtual void removePeer(uint32_t peerID) override; 61 61 62 62 bool disconnectConnection(); -
code/branches/cpp11_v2/src/libraries/network/GamestateManager.h
r10774 r10817 83 83 ~GamestateManager(); 84 84 85 virtual bool addGamestate(packet::Gamestate *gs, unsigned int peerID) ;86 virtual bool ackGamestate(unsigned int gamestateID, unsigned int peerID) ;87 virtual uint32_t getLastReceivedGamestateID( unsigned int peerID ) ;88 virtual uint32_t getCurrentGamestateID() { if( currentGamestate_) return currentGamestate_->getID(); else return GAMESTATEID_INITIAL; }85 virtual bool addGamestate(packet::Gamestate *gs, unsigned int peerID) override; 86 virtual bool ackGamestate(unsigned int gamestateID, unsigned int peerID) override; 87 virtual uint32_t getLastReceivedGamestateID( unsigned int peerID ) override; 88 virtual uint32_t getCurrentGamestateID() override{ if( currentGamestate_) return currentGamestate_->getID(); else return GAMESTATEID_INITIAL; } 89 89 90 90 bool processGamestates(); -
code/branches/cpp11_v2/src/libraries/network/LANDiscoverable.cc
r10768 r10817 109 109 { 110 110 case ENET_EVENT_TYPE_CONNECT: 111 orxout(verbose, context::network) << "Received LAN discovery connect from client " << event.peer->host->receivedAddress << endl;111 //orxout(verbose, context::network) << "Received LAN discovery connect from client " << event.peer->host->receivedAddress << endl; 112 112 break; 113 113 case ENET_EVENT_TYPE_DISCONNECT: … … 117 117 if( strcmp( LAN_DISCOVERY_MESSAGE, (char*)event.packet->data ) == 0 ) // check for a suitable orxonox client 118 118 { 119 orxout(internal_info, context::network) << "Received LAN discovery message from client " << event.peer->host->receivedAddress << endl;119 //orxout(internal_info, context::network) << "Received LAN discovery message from client " << event.peer->host->receivedAddress << endl; 120 120 packet::ServerInformation info; 121 121 info.setServerName(this->ownName); -
code/branches/cpp11_v2/src/libraries/network/NetworkFunction.h
r10768 r10817 114 114 115 115 // ignore the objectID because its a static function 116 virtual bool call(uint32_t objectID) { (*this->functor_)(); return true; }117 virtual bool call(uint32_t objectID, const MultiType& mt1) { (*this->functor_)(mt1); return true; }118 virtual bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2) { (*this->functor_)(mt1, mt2); return true; }119 virtual bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3) { (*this->functor_)(mt1, mt2, mt3); return true; }120 virtual bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4) { (*this->functor_)(mt1, mt2, mt3, mt4); return true; }121 virtual bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4, const MultiType& mt5) { (*this->functor_)(mt1, mt2, mt3, mt4, mt5); return true; }116 virtual bool call(uint32_t objectID) override{ (*this->functor_)(); return true; } 117 virtual bool call(uint32_t objectID, const MultiType& mt1) override{ (*this->functor_)(mt1); return true; } 118 virtual bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2) override{ (*this->functor_)(mt1, mt2); return true; } 119 virtual bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3) override{ (*this->functor_)(mt1, mt2, mt3); return true; } 120 virtual bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4) override{ (*this->functor_)(mt1, mt2, mt3, mt4); return true; } 121 virtual bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4, const MultiType& mt5) override{ (*this->functor_)(mt1, mt2, mt3, mt4, mt5); return true; } 122 122 123 123 private: … … 142 142 { } 143 143 144 inline bool call(uint32_t objectID) 144 inline bool call(uint32_t objectID) override 145 145 { 146 146 if ( Synchronisable::getSynchronisable(objectID)!=nullptr ) … … 152 152 return false; 153 153 } 154 inline bool call(uint32_t objectID, const MultiType& mt1) 154 inline bool call(uint32_t objectID, const MultiType& mt1) override 155 155 { 156 156 if ( Synchronisable::getSynchronisable(objectID)!=nullptr ) … … 162 162 return false; 163 163 } 164 inline bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2) 164 inline bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2) override 165 165 { 166 166 if ( Synchronisable::getSynchronisable(objectID)!=nullptr ) … … 172 172 return false; 173 173 } 174 inline bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3) 174 inline bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3) override 175 175 { 176 176 if ( Synchronisable::getSynchronisable(objectID)!=nullptr ) … … 182 182 return false; 183 183 } 184 inline bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4) 184 inline bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4) override 185 185 { 186 186 if ( Synchronisable::getSynchronisable(objectID)!=nullptr ) … … 192 192 return false; 193 193 } 194 inline bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4, const MultiType& mt5) 194 inline bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4, const MultiType& mt5) override 195 195 { 196 196 if ( Synchronisable::getSynchronisable(objectID)!=nullptr ) -
code/branches/cpp11_v2/src/libraries/network/NetworkFunctionIncludes.h
r10774 r10817 56 56 ~StaticallyInitializedNetworkFunction() { delete function_; } 57 57 58 virtual void load() ;59 virtual void unload() ;58 virtual void load() override; 59 virtual void unload() override; 60 60 61 61 inline NetworkFunctionBase& getFunction() -
code/branches/cpp11_v2/src/libraries/network/NetworkStaticInitializationHandler.h
r10624 r10817 39 39 { 40 40 public: 41 virtual void setupHandler() ;42 virtual void shutdownHandler() ;41 virtual void setupHandler() override; 42 virtual void shutdownHandler() override; 43 43 44 virtual void loadModule(ModuleInstance* module) ;45 virtual void unloadModule(ModuleInstance* module) ;44 virtual void loadModule(ModuleInstance* module) override; 45 virtual void unloadModule(ModuleInstance* module) override; 46 46 }; 47 47 } -
code/branches/cpp11_v2/src/libraries/network/Server.h
r10622 r10817 61 61 void open(); 62 62 void close(); 63 void queuePacket(ENetPacket *packet, int clientID, uint8_t channelID) ;64 virtual bool sendPacket( packet::Packet* packet ) { return packet->send( static_cast<Host*>(this) ); }63 void queuePacket(ENetPacket *packet, int clientID, uint8_t channelID) override; 64 virtual bool sendPacket( packet::Packet* packet ) override{ return packet->send( static_cast<Host*>(this) ); } 65 65 void update(const Clock& time); 66 66 unsigned int getRTT(unsigned int clientID); 67 virtual void printRTT() ;67 virtual void printRTT() override; 68 68 float getPacketLoss(unsigned int clientID); 69 69 int getClientCount() { return this->clientIDs_.size();} … … 73 73 void updateGamestate(); 74 74 private: 75 virtual bool isServer_() {return true;}75 virtual bool isServer_() override{return true;} 76 76 unsigned int playerID(){return 0;} 77 77 78 void addPeer(uint32_t peerID) ;79 void removePeer(uint32_t peerID) ;80 void processPacket(packet::Packet* packet) ;78 void addPeer(uint32_t peerID) override; 79 void removePeer(uint32_t peerID) override; 80 void processPacket(packet::Packet* packet) override; 81 81 82 82 bool createClient(int clientID); … … 85 85 bool sendObjectDeletes(); 86 86 bool isValidTarget(unsigned int targetID); 87 virtual void doSendChat(const std::string& message, unsigned int sourceID, unsigned int targetID) ;88 virtual void doReceiveChat(const std::string& message, unsigned int sourceID, unsigned int targetID) ;87 virtual void doSendChat(const std::string& message, unsigned int sourceID, unsigned int targetID) override; 88 virtual void doReceiveChat(const std::string& message, unsigned int sourceID, unsigned int targetID) override; 89 89 void syncClassid(unsigned int clientID); 90 90 -
code/branches/cpp11_v2/src/libraries/network/TrafficControl.h
r10769 r10817 109 109 110 110 //ClientConnectionListener functions 111 virtual void clientConnected(unsigned int clientID) {};112 virtual void clientDisconnected(unsigned int clientID) ;111 virtual void clientConnected(unsigned int clientID) override{}; 112 virtual void clientDisconnected(unsigned int clientID) override; 113 113 114 114 -
code/branches/cpp11_v2/src/libraries/network/packet/Acknowledgement.h
r7801 r10817 46 46 ~Acknowledgement(); 47 47 48 inline unsigned int getSize() const ;49 virtual bool process(orxonox::Host* host) ;48 inline unsigned int getSize() const override; 49 virtual bool process(orxonox::Host* host) override; 50 50 51 51 unsigned int getAckID(); -
code/branches/cpp11_v2/src/libraries/network/packet/Chat.h
r8858 r10817 49 49 50 50 /* get size of packet */ 51 inline unsigned int getSize() const ;51 inline unsigned int getSize() const override; 52 52 53 53 /* process chat message packet and remove it afterwards */ 54 virtual bool process(orxonox::Host* host) ;54 virtual bool process(orxonox::Host* host) override; 55 55 56 56 /* Get the length of the message (not the full size of the packet) */ -
code/branches/cpp11_v2/src/libraries/network/packet/ClassID.h
r7801 r10817 47 47 ~ClassID(); 48 48 49 uint32_t getSize() const ;50 virtual bool process(orxonox::Host* host) ;49 uint32_t getSize() const override; 50 virtual bool process(orxonox::Host* host) override; 51 51 52 52 private: -
code/branches/cpp11_v2/src/libraries/network/packet/DeleteObjects.h
r7801 r10817 48 48 bool fetchIDs(); 49 49 50 inline unsigned int getSize() const ;51 virtual bool process(orxonox::Host* host) ;50 inline unsigned int getSize() const override; 51 virtual bool process(orxonox::Host* host) override; 52 52 53 53 private: -
code/branches/cpp11_v2/src/libraries/network/packet/FunctionCalls.h
r10624 r10817 52 52 ~FunctionCalls(); 53 53 54 inline unsigned int getSize() const 54 inline unsigned int getSize() const override 55 55 { assert(!this->isDataENetAllocated()); return currentSize_; } 56 virtual bool process(orxonox::Host* host) ;56 virtual bool process(orxonox::Host* host) override; 57 57 58 58 void addCall( uint32_t networkID, uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4, const MultiType& mt5); 59 virtual bool send(orxonox::Host* host) ;59 virtual bool send(orxonox::Host* host) override; 60 60 private: 61 61 std::queue<orxonox::FunctionCall> functionCalls_; -
code/branches/cpp11_v2/src/libraries/network/packet/FunctionIDs.h
r7801 r10817 47 47 ~FunctionIDs(); 48 48 49 virtual uint32_t getSize() const ;50 virtual bool process(orxonox::Host* host) ;49 virtual uint32_t getSize() const override; 50 virtual bool process(orxonox::Host* host) override; 51 51 52 52 private: -
code/branches/cpp11_v2/src/libraries/network/packet/Gamestate.h
r10768 r10817 138 138 // void rawDiff( uint8_t* newdata, uint8_t* data, uint8_t* basedata, uint32_t datalength, uint32_t baselength); 139 139 // inline uint32_t findObject( const SynchronisableHeader& header, uint8_t* mem, uint32_t dataLength, uint32_t startPosition = 0 ); 140 virtual uint32_t getSize() const ;141 virtual bool process(orxonox::Host* host) ;140 virtual uint32_t getSize() const override; 141 virtual bool process(orxonox::Host* host) override; 142 142 uint32_t calcGamestateSize(uint32_t id, uint8_t mode=0x0); 143 143 // inline void diffObject( uint8_t*& newData, uint8_t*& origData, uint8_t*& baseData, SynchronisableHeader& objectHeader, std::vector<uint32_t>::iterator& sizes ); -
code/branches/cpp11_v2/src/libraries/network/packet/Welcome.h
r8706 r10817 45 45 virtual ~Welcome(); 46 46 47 uint8_t *getData() ;48 inline unsigned int getSize() const ;49 virtual bool process(orxonox::Host* host) ;47 uint8_t *getData() override; 48 inline unsigned int getSize() const override; 49 virtual bool process(orxonox::Host* host) override; 50 50 51 51 private: -
code/branches/cpp11_v2/src/libraries/network/synchronisable/NetworkCallback.h
r6417 r10817 53 53 NetworkCallback(T* object, void (T::*function) (void)) : object_(object), function_(function) {} 54 54 virtual ~NetworkCallback() {} 55 virtual void call() 55 virtual void call() override 56 56 { (this->object_->*function_)(); } 57 57 … … 68 68 NetworkCallbackNotify() {} 69 69 virtual ~NetworkCallbackNotify() {} 70 virtual void call() 70 virtual void call() override 71 71 { (this->object_->*function_)( this->oldValue_ ); } 72 72 void setOldValue(const U& value){ this->oldValue_ = value; } -
code/branches/cpp11_v2/src/libraries/network/synchronisable/SynchronisableVariable.h
r10768 r10817 74 74 virtual ~SynchronisableVariable(); 75 75 76 virtual inline uint8_t getMode() { return mode_; }77 virtual inline uint32_t getData(uint8_t*& mem, uint8_t mode) ;78 virtual inline void putData(uint8_t*& mem, uint8_t mode, bool forceCallback = false) ;79 virtual inline uint32_t getSize(uint8_t mode) ;80 virtual inline void* getReference() { return static_cast<void*>(const_cast<typename Loki::TypeTraits<T>::UnqualifiedType*>(&this->variable_)); }76 virtual inline uint8_t getMode() override{ return mode_; } 77 virtual inline uint32_t getData(uint8_t*& mem, uint8_t mode) override; 78 virtual inline void putData(uint8_t*& mem, uint8_t mode, bool forceCallback = false) override; 79 virtual inline uint32_t getSize(uint8_t mode) override; 80 virtual inline void* getReference() override{ return static_cast<void*>(const_cast<typename Loki::TypeTraits<T>::UnqualifiedType*>(&this->variable_)); } 81 81 protected: 82 82 T& variable_; -
code/branches/cpp11_v2/src/libraries/tools/BulletDebugDrawer.h
r10733 r10817 23 23 BulletDebugDrawer(Ogre::SceneManager* sceneManager); 24 24 ~BulletDebugDrawer(); 25 virtual void drawLine(const btVector3& from, const btVector3& to, const btVector3& color) ;25 virtual void drawLine(const btVector3& from, const btVector3& to, const btVector3& color) override; 26 26 // virtual void drawTriangle(const btVector3& v0, const btVector3& v1, const btVector3& v2, const btVector3& color, btScalar); 27 virtual void drawSphere (const btVector3& p, btScalar radius, const btVector3& color) ;28 virtual void drawSphere(btScalar radius, const btTransform& transform, const btVector3& color) ;29 virtual void drawBox(const btVector3& bbMin, const btVector3& bbMax, const btVector3& color) ;30 virtual void drawBox(const btVector3& bbMin, const btVector3& bbMax, const btTransform& trans, const btVector3& color) ;31 virtual void drawCylinder(btScalar radius, btScalar halfHeight, int upAxis, const btTransform& transform, const btVector3& color) ;32 virtual void drawCone(btScalar radius, btScalar height, int upAxis, const btTransform& transform, const btVector3& color) ;27 virtual void drawSphere (const btVector3& p, btScalar radius, const btVector3& color) override; 28 virtual void drawSphere(btScalar radius, const btTransform& transform, const btVector3& color) override; 29 virtual void drawBox(const btVector3& bbMin, const btVector3& bbMax, const btVector3& color) override; 30 virtual void drawBox(const btVector3& bbMin, const btVector3& bbMax, const btTransform& trans, const btVector3& color) override; 31 virtual void drawCylinder(btScalar radius, btScalar halfHeight, int upAxis, const btTransform& transform, const btVector3& color) override; 32 virtual void drawCone(btScalar radius, btScalar height, int upAxis, const btTransform& transform, const btVector3& color) override; 33 33 // virtual void drawPlane(const btVector3& planeNormal, btScalar planeConst, const btTransform& transform, const btVector3& color); 34 34 35 virtual void drawContactPoint(const btVector3& PointOnB, const btVector3& normalOnB, btScalar distance, int lifeTime, const btVector3& color) ;35 virtual void drawContactPoint(const btVector3& PointOnB, const btVector3& normalOnB, btScalar distance, int lifeTime, const btVector3& color) override; 36 36 37 virtual void reportErrorWarning(const char* warningString) ;38 virtual void draw3dText(const btVector3& location, const char* textString) ;37 virtual void reportErrorWarning(const char* warningString) override; 38 virtual void draw3dText(const btVector3& location, const char* textString) override; 39 39 40 virtual void setDebugMode(int debugMode) ;41 virtual int getDebugMode() const ;40 virtual void setDebugMode(int debugMode) override; 41 virtual int getDebugMode() const override; 42 42 43 43 void configure(bool bFill, float fillAlpha); 44 44 45 45 protected: 46 bool frameStarted(const Ogre::FrameEvent& evt) ;47 bool frameEnded(const Ogre::FrameEvent& evt) ;46 bool frameStarted(const Ogre::FrameEvent& evt) override; 47 bool frameEnded(const Ogre::FrameEvent& evt) override; 48 48 49 49 private: -
code/branches/cpp11_v2/src/libraries/tools/DynamicLines.h
r5781 r10817 84 84 protected: 85 85 /// Implementation DynamicRenderable, creates a simple vertex-only decl 86 virtual void createVertexDeclaration() ;86 virtual void createVertexDeclaration() override; 87 87 /// Implementation DynamicRenderable, pushes point list out to hardware memory 88 virtual void fillHardwareBuffers() ;88 virtual void fillHardwareBuffers() override; 89 89 90 90 private: -
code/branches/cpp11_v2/src/libraries/tools/DynamicRenderable.h
r5781 r10817 61 61 62 62 /// Implementation of SimpleRenderable 63 virtual Real getBoundingRadius(void) const ;63 virtual Real getBoundingRadius(void) const override; 64 64 /// Implementation of SimpleRenderable 65 virtual Real getSquaredViewDepth(const Camera* cam) const ;65 virtual Real getSquaredViewDepth(const Camera* cam) const override; 66 66 67 67 protected: -
code/branches/cpp11_v2/src/libraries/tools/ParticleInterface.h
r10624 r10817 76 76 77 77 protected: 78 virtual void changedTimeFactor(float factor_new, float factor_old) ;78 virtual void changedTimeFactor(float factor_new, float factor_old) override; 79 79 80 80 private: -
code/branches/cpp11_v2/src/libraries/tools/ResourceCollection.h
r9667 r10817 44 44 virtual ~ResourceCollection(); 45 45 46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 47 47 48 48 void setResourceGroup(const std::string& resourceGroup); -
code/branches/cpp11_v2/src/libraries/tools/ResourceLocation.h
r9667 r10817 46 46 virtual ~ResourceLocation(); 47 47 48 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;48 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 49 49 50 50 void setPath(const std::string& path) { path_ = path; } -
code/branches/cpp11_v2/src/libraries/tools/Shader.h
r10768 r10817 87 87 { return this->scenemanager_; } 88 88 89 virtual void cameraChanged(Ogre::Viewport* viewport, Ogre::Camera* oldCamera) ;89 virtual void cameraChanged(Ogre::Viewport* viewport, Ogre::Camera* oldCamera) override; 90 90 91 91 void setParameter(unsigned short technique, unsigned short pass, const std::string& parameter, float value); 92 92 void setParameter(unsigned short technique, unsigned short pass, const std::string& parameter, int value); 93 93 94 virtual void notifyMaterialRender(Ogre::uint32 pass_id, Ogre::MaterialPtr& materialPtr) ;94 virtual void notifyMaterialRender(Ogre::uint32 pass_id, Ogre::MaterialPtr& materialPtr) override; 95 95 96 96 private: -
code/branches/cpp11_v2/src/libraries/tools/Timer.h
r9667 r10817 175 175 176 176 protected: 177 virtual float getTimeFactor() ;177 virtual float getTimeFactor() override; 178 178 }; 179 179 } -
code/branches/cpp11_v2/src/libraries/util/ExprParser.cc
r8351 r10817 402 402 { 403 403 this->failed_ = true; 404 return '\0';404 return str; 405 405 } 406 406 }; -
code/branches/cpp11_v2/src/libraries/util/MultiType.h
r10768 r10817 428 428 } 429 429 /// Creates a new value container (works only with specialized types). 430 template <typename T> inline void createNewValueContainer(const T& value) { /* STATIC ASSERT */ *****value; return false;}430 template <typename T> inline void createNewValueContainer(const T& value) { /* STATIC ASSERT */ *****value; } 431 431 432 432 MT_ValueBase* value_; //!< A pointer to the value container -
code/branches/cpp11_v2/src/libraries/util/MultiTypeValue.h
r10768 r10817 58 58 59 59 /// Creates a copy of itself. 60 inline MT_ValueBase* clone() const { return new MT_Value<T>(this->value_, this->type_); }60 inline MT_ValueBase* clone() const override { return new MT_Value<T>(this->value_, this->type_); } 61 61 62 62 /// Resets the current value to the default. 63 inline void reset() { this->value_ = zeroise<T>(); bLastConversionSuccessful = true; }64 65 inline bool getValue(char* value) const { return convertValue<T, char >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.66 inline bool getValue(unsigned char* value) const { return convertValue<T, unsigned char >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.67 inline bool getValue(short* value) const { return convertValue<T, short >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.68 inline bool getValue(unsigned short* value) const { return convertValue<T, unsigned short >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.69 inline bool getValue(int* value) const { return convertValue<T, int >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.70 inline bool getValue(unsigned int* value) const { return convertValue<T, unsigned int >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.71 inline bool getValue(long* value) const { return convertValue<T, long >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.72 inline bool getValue(unsigned long* value) const { return convertValue<T, unsigned long >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.73 inline bool getValue(long long* value) const { return convertValue<T, long long >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.74 inline bool getValue(unsigned long long* value) const { return convertValue<T, unsigned long long >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.75 inline bool getValue(float* value) const { return convertValue<T, float >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.76 inline bool getValue(double* value) const { return convertValue<T, double >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.77 inline bool getValue(long double* value) const { return convertValue<T, long double >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.78 inline bool getValue(bool* value) const { return convertValue<T, bool >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.79 inline bool getValue(void** value) const { return convertValue<T, void* >(value, value_, nullptr); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.80 inline bool getValue(std::string* value) const { return convertValue<T, std::string >(value, value_, NilValue<std::string> ()); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.81 inline bool getValue(orxonox::Vector2* value) const { return convertValue<T, orxonox::Vector2 >(value, value_, NilValue<orxonox::Vector2> ()); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.82 inline bool getValue(orxonox::Vector3* value) const { return convertValue<T, orxonox::Vector3 >(value, value_, NilValue<orxonox::Vector3> ()); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.83 inline bool getValue(orxonox::Vector4* value) const { return convertValue<T, orxonox::Vector4 >(value, value_, NilValue<orxonox::Vector4> ()); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.84 inline bool getValue(orxonox::ColourValue* value) const { return convertValue<T, orxonox::ColourValue>(value, value_, NilValue<orxonox::ColourValue>()); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.85 inline bool getValue(orxonox::Quaternion* value) const { return convertValue<T, orxonox::Quaternion >(value, value_, NilValue<orxonox::Quaternion> ()); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.86 inline bool getValue(orxonox::Radian* value) const { return convertValue<T, orxonox::Radian >(value, value_, NilValue<orxonox::Radian> ()); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.87 inline bool getValue(orxonox::Degree* value) const { return convertValue<T, orxonox::Degree >(value, value_, NilValue<orxonox::Degree> ()); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.63 inline void reset() override { this->value_ = zeroise<T>(); bLastConversionSuccessful = true; } 64 65 inline bool getValue(char* value) const override { return convertValue<T, char >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 66 inline bool getValue(unsigned char* value) const override { return convertValue<T, unsigned char >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 67 inline bool getValue(short* value) const override { return convertValue<T, short >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 68 inline bool getValue(unsigned short* value) const override { return convertValue<T, unsigned short >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 69 inline bool getValue(int* value) const override { return convertValue<T, int >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 70 inline bool getValue(unsigned int* value) const override { return convertValue<T, unsigned int >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 71 inline bool getValue(long* value) const override { return convertValue<T, long >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 72 inline bool getValue(unsigned long* value) const override { return convertValue<T, unsigned long >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 73 inline bool getValue(long long* value) const override { return convertValue<T, long long >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 74 inline bool getValue(unsigned long long* value) const override { return convertValue<T, unsigned long long >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 75 inline bool getValue(float* value) const override { return convertValue<T, float >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 76 inline bool getValue(double* value) const override { return convertValue<T, double >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 77 inline bool getValue(long double* value) const override { return convertValue<T, long double >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 78 inline bool getValue(bool* value) const override { return convertValue<T, bool >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 79 inline bool getValue(void** value) const override { return convertValue<T, void* >(value, value_, nullptr); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 80 inline bool getValue(std::string* value) const override { return convertValue<T, std::string >(value, value_, NilValue<std::string> ()); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 81 inline bool getValue(orxonox::Vector2* value) const override { return convertValue<T, orxonox::Vector2 >(value, value_, NilValue<orxonox::Vector2> ()); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 82 inline bool getValue(orxonox::Vector3* value) const override { return convertValue<T, orxonox::Vector3 >(value, value_, NilValue<orxonox::Vector3> ()); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 83 inline bool getValue(orxonox::Vector4* value) const override { return convertValue<T, orxonox::Vector4 >(value, value_, NilValue<orxonox::Vector4> ()); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 84 inline bool getValue(orxonox::ColourValue* value) const override { return convertValue<T, orxonox::ColourValue>(value, value_, NilValue<orxonox::ColourValue>()); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 85 inline bool getValue(orxonox::Quaternion* value) const override { return convertValue<T, orxonox::Quaternion >(value, value_, NilValue<orxonox::Quaternion> ()); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 86 inline bool getValue(orxonox::Radian* value) const override { return convertValue<T, orxonox::Radian >(value, value_, NilValue<orxonox::Radian> ()); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 87 inline bool getValue(orxonox::Degree* value) const override { return convertValue<T, orxonox::Degree >(value, value_, NilValue<orxonox::Degree> ()); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 88 88 89 89 /** … … 91 91 @param other The other MultiType 92 92 */ 93 inline bool setValue(const MultiType& other) 93 inline bool setValue(const MultiType& other) override 94 94 { 95 95 if (other.value_) … … 104 104 } 105 105 106 inline bool setValue(const char& value) { return (bLastConversionSuccessful = convertValue<char , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.107 inline bool setValue(const unsigned char& value) { return (bLastConversionSuccessful = convertValue<unsigned char , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.108 inline bool setValue(const short& value) { return (bLastConversionSuccessful = convertValue<short , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.109 inline bool setValue(const unsigned short& value) { return (bLastConversionSuccessful = convertValue<unsigned short , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.110 inline bool setValue(const int& value) { return (bLastConversionSuccessful = convertValue<int , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.111 inline bool setValue(const unsigned int& value) { return (bLastConversionSuccessful = convertValue<unsigned int , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.112 inline bool setValue(const long& value) { return (bLastConversionSuccessful = convertValue<long , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.113 inline bool setValue(const unsigned long& value) { return (bLastConversionSuccessful = convertValue<unsigned long , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.114 inline bool setValue(const long long& value) { return (bLastConversionSuccessful = convertValue<long long , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.115 inline bool setValue(const unsigned long long& value) { return (bLastConversionSuccessful = convertValue<unsigned long long , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.116 inline bool setValue(const float& value) { return (bLastConversionSuccessful = convertValue<float , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.117 inline bool setValue(const double& value) { return (bLastConversionSuccessful = convertValue<double , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.118 inline bool setValue(const long double& value) { return (bLastConversionSuccessful = convertValue<long double , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.119 inline bool setValue(const bool& value) { return (bLastConversionSuccessful = convertValue<bool , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.120 inline bool setValue( void* const& value) { return (bLastConversionSuccessful = convertValue<void* , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.121 inline bool setValue(const std::string& value) { return (bLastConversionSuccessful = convertValue<std::string , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.122 inline bool setValue(const orxonox::Vector2& value) { return (bLastConversionSuccessful = convertValue<orxonox::Vector2 , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.123 inline bool setValue(const orxonox::Vector3& value) { return (bLastConversionSuccessful = convertValue<orxonox::Vector3 , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.124 inline bool setValue(const orxonox::Vector4& value) { return (bLastConversionSuccessful = convertValue<orxonox::Vector4 , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.125 inline bool setValue(const orxonox::ColourValue& value) { return (bLastConversionSuccessful = convertValue<orxonox::ColourValue, T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.126 inline bool setValue(const orxonox::Quaternion& value) { return (bLastConversionSuccessful = convertValue<orxonox::Quaternion , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.127 inline bool setValue(const orxonox::Radian& value) { return (bLastConversionSuccessful = convertValue<orxonox::Radian , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.128 inline bool setValue(const orxonox::Degree& value) { return (bLastConversionSuccessful = convertValue<orxonox::Degree , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.106 inline bool setValue(const char& value) override { return (bLastConversionSuccessful = convertValue<char , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 107 inline bool setValue(const unsigned char& value) override { return (bLastConversionSuccessful = convertValue<unsigned char , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 108 inline bool setValue(const short& value) override { return (bLastConversionSuccessful = convertValue<short , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 109 inline bool setValue(const unsigned short& value) override { return (bLastConversionSuccessful = convertValue<unsigned short , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 110 inline bool setValue(const int& value) override { return (bLastConversionSuccessful = convertValue<int , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 111 inline bool setValue(const unsigned int& value) override { return (bLastConversionSuccessful = convertValue<unsigned int , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 112 inline bool setValue(const long& value) override { return (bLastConversionSuccessful = convertValue<long , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 113 inline bool setValue(const unsigned long& value) override { return (bLastConversionSuccessful = convertValue<unsigned long , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 114 inline bool setValue(const long long& value) override { return (bLastConversionSuccessful = convertValue<long long , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 115 inline bool setValue(const unsigned long long& value) override { return (bLastConversionSuccessful = convertValue<unsigned long long , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 116 inline bool setValue(const float& value) override { return (bLastConversionSuccessful = convertValue<float , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 117 inline bool setValue(const double& value) override { return (bLastConversionSuccessful = convertValue<double , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 118 inline bool setValue(const long double& value) override { return (bLastConversionSuccessful = convertValue<long double , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 119 inline bool setValue(const bool& value) override { return (bLastConversionSuccessful = convertValue<bool , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 120 inline bool setValue( void* const& value) override { return (bLastConversionSuccessful = convertValue<void* , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 121 inline bool setValue(const std::string& value) override { return (bLastConversionSuccessful = convertValue<std::string , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 122 inline bool setValue(const orxonox::Vector2& value) override { return (bLastConversionSuccessful = convertValue<orxonox::Vector2 , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 123 inline bool setValue(const orxonox::Vector3& value) override { return (bLastConversionSuccessful = convertValue<orxonox::Vector3 , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 124 inline bool setValue(const orxonox::Vector4& value) override { return (bLastConversionSuccessful = convertValue<orxonox::Vector4 , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 125 inline bool setValue(const orxonox::ColourValue& value) override { return (bLastConversionSuccessful = convertValue<orxonox::ColourValue, T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 126 inline bool setValue(const orxonox::Quaternion& value) override { return (bLastConversionSuccessful = convertValue<orxonox::Quaternion , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 127 inline bool setValue(const orxonox::Radian& value) override { return (bLastConversionSuccessful = convertValue<orxonox::Radian , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 128 inline bool setValue(const orxonox::Degree& value) override { return (bLastConversionSuccessful = convertValue<orxonox::Degree , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 129 129 130 130 /// Puts the current value on the stream 131 inline void toString(std::ostream& outstream) const { outstream << this->value_; }131 inline void toString(std::ostream& outstream) const override { outstream << this->value_; } 132 132 133 133 /// loads data from the bytestream (mem) into the MT and increases the bytestream pointer by the size of the data 134 inline void importData( uint8_t*& mem ) { loadAndIncrease( /*(const T&)*/this->value_, mem ); }134 inline void importData( uint8_t*& mem ) override { loadAndIncrease( /*(const T&)*/this->value_, mem ); } 135 135 /// saves data from the MT into the bytestream (mem) and increases the bytestream pointer by the size of the data 136 inline void exportData( uint8_t*& mem ) const { saveAndIncrease( /*(const T&)*/this->value_, mem ); }136 inline void exportData( uint8_t*& mem ) const override { saveAndIncrease( /*(const T&)*/this->value_, mem ); } 137 137 /// returns the size of the data that would be saved by exportData 138 inline uint8_t getSize() const { return returnSize( this->value_ ); }138 inline uint8_t getSize() const override { return returnSize( this->value_ ); } 139 139 140 140 T value_; ///< The stored value -
code/branches/cpp11_v2/src/libraries/util/SharedPtr.h
r10770 r10817 176 176 SharedCounterImpl(T* pointer) : pointer_(pointer) {} 177 177 178 void destroy() 178 void destroy() override 179 179 { 180 180 delete this->pointer_; -
code/branches/cpp11_v2/src/libraries/util/output/BaseWriter.h
r8858 r10817 103 103 104 104 protected: 105 virtual void output(OutputLevel level, const OutputContextContainer& context, const std::vector<std::string>& lines) ;105 virtual void output(OutputLevel level, const OutputContextContainer& context, const std::vector<std::string>& lines) override; 106 106 107 107 private: -
code/branches/cpp11_v2/src/libraries/util/output/ConsoleWriter.h
r9550 r10817 63 63 64 64 protected: 65 virtual void printLine(const std::string& line, OutputLevel level) ;65 virtual void printLine(const std::string& line, OutputLevel level) override; 66 66 67 67 private: -
code/branches/cpp11_v2/src/libraries/util/output/LogWriter.h
r9550 r10817 70 70 71 71 protected: 72 virtual void printLine(const std::string& line, OutputLevel level) ;72 virtual void printLine(const std::string& line, OutputLevel level) override; 73 73 74 74 private: -
code/branches/cpp11_v2/src/libraries/util/output/MemoryWriter.h
r9550 r10817 75 75 76 76 protected: 77 virtual void output(OutputLevel level, const OutputContextContainer& context, const std::vector<std::string>& lines) ;77 virtual void output(OutputLevel level, const OutputContextContainer& context, const std::vector<std::string>& lines) override; 78 78 79 79 private: -
code/branches/cpp11_v2/src/libraries/util/output/OutputManager.h
r9550 r10817 81 81 virtual void unregisterListener(OutputListener* listener); 82 82 83 virtual void updatedLevelMask(const OutputListener* listener) 83 virtual void updatedLevelMask(const OutputListener* listener) override 84 84 { this->updateCombinedLevelMask(); } 85 virtual void updatedAdditionalContextsLevelMask(const OutputListener* listener) 85 virtual void updatedAdditionalContextsLevelMask(const OutputListener* listener) override 86 86 { this->updateCombinedAdditionalContextsLevelMask(); } 87 virtual void updatedAdditionalContextsMask(const OutputListener* listener) 87 virtual void updatedAdditionalContextsMask(const OutputListener* listener) override 88 88 { this->updateCombinedAdditionalContextsMask(); } 89 89 -
code/branches/cpp11_v2/src/libraries/util/output/SubcontextOutputListener.h
r9550 r10817 73 73 virtual ~SubcontextOutputListener(); 74 74 75 virtual void setAdditionalContextsMask(OutputContextMask mask) ;75 virtual void setAdditionalContextsMask(OutputContextMask mask) override; 76 76 void setAdditionalSubcontexts(const std::set<const OutputContextContainer*>& subcontexts); 77 77 78 virtual bool acceptsOutput(OutputLevel level, const OutputContextContainer& context) const ;78 virtual bool acceptsOutput(OutputLevel level, const OutputContextContainer& context) const override; 79 79 80 80 inline const std::set<OutputContextSubID>& getSubcontexts() const
Note: See TracChangeset
for help on using the changeset viewer.