Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 29, 2015, 5:35:59 PM (9 years ago)
Author:
landauf
Message:

renamed SmartPtr to StrongPtr (now we have weak and strong pointers)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/src/libraries/core/BaseObject.h

    r10298 r10555  
    5151#include "class/OrxonoxClass.h"
    5252#include "class/Super.h"
    53 #include "object/SmartPtr.h"
     53#include "object/StrongPtr.h"
    5454
    5555namespace orxonox
     
    138138                { return this->templates_; }
    139139
    140             inline void setNamespace(const SmartPtr<Namespace>& ns) { this->namespace_ = ns; }
    141             inline const SmartPtr<Namespace>& getNamespace() const { return this->namespace_; }
     140            inline void setNamespace(const StrongPtr<Namespace>& ns) { this->namespace_ = ns; }
     141            inline const StrongPtr<Namespace>& getNamespace() const { return this->namespace_; }
    142142
    143143            inline void setCreator(BaseObject* creator) { this->creator_ = creator; }
    144144            inline BaseObject* getCreator() const { return this->creator_; }
    145145
    146             inline void setScene(const SmartPtr<Scene>& scene, uint32_t sceneID) { this->scene_ = scene; this->sceneID_=sceneID; }
    147             inline const SmartPtr<Scene>& getScene() const { return this->scene_; }
     146            inline void setScene(const StrongPtr<Scene>& scene, uint32_t sceneID) { this->scene_ = scene; this->sceneID_=sceneID; }
     147            inline const StrongPtr<Scene>& getScene() const { return this->scene_; }
    148148            inline virtual uint32_t getSceneID() const { return this->sceneID_; }
    149149
    150             inline void setGametype(const SmartPtr<Gametype>& gametype)
     150            inline void setGametype(const StrongPtr<Gametype>& gametype)
    151151            {
    152152                if (gametype != this->gametype_)
     
    157157                }
    158158            }
    159             inline const SmartPtr<Gametype>& getGametype() const { return this->gametype_; }
     159            inline const StrongPtr<Gametype>& getGametype() const { return this->gametype_; }
    160160            inline Gametype* getOldGametype() const { return this->oldGametype_; }
    161161            virtual void changedGametype() {}
    162162
    163             inline void setLevel(const SmartPtr<Level>& level)
     163            inline void setLevel(const StrongPtr<Level>& level)
    164164            {
    165165                if (level != this->level_)
     
    169169                }
    170170            }
    171             inline const SmartPtr<Level>& getLevel() const { return this->level_; }
     171            inline const StrongPtr<Level>& getLevel() const { return this->level_; }
    172172            virtual void changedLevel() {}
    173173
     
    222222            std::map<std::string, std::string> xmlAttributes_; //!< Lowercase XML attributes
    223223            std::string            loaderIndentation_;         //!< Indentation of the debug output in the Loader
    224             SmartPtr<Namespace>    namespace_;
     224            StrongPtr<Namespace>   namespace_;
    225225            BaseObject*            creator_;
    226             SmartPtr<Scene>        scene_;
     226            StrongPtr<Scene>       scene_;
    227227            uint32_t               sceneID_;
    228             SmartPtr<Gametype>     gametype_;
     228            StrongPtr<Gametype>    gametype_;
    229229            Gametype*              oldGametype_;
    230             SmartPtr<Level>        level_;
     230            StrongPtr<Level>       level_;
    231231            std::set<Template*>    templates_;
    232232
Note: See TracChangeset for help on using the changeset viewer.