Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 24, 2010, 4:56:37 PM (14 years ago)
Author:
landauf
Message:

re-implemented Functor - without macros!

Location:
code/branches/consolecommands3/src/libraries/util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/consolecommands3/src/libraries/util/MultiType.h

    r7189 r7212  
    493493    template <> inline bool MultiType::isType<orxonox::Degree>()      const { return (this->value_ && this->value_->type_ == MT_Type::Degree);           } /** @brief Returns true if the current type equals the given type. */
    494494
     495    template <> inline bool MultiType::convert<void>()                 { this->reset(); return true; } /** @brief Deletes the content, type becomes MT_Type::Null. */
     496
    495497    // Specialization to avoid ambiguities with the conversion operator
    496498    template <> inline bool MultiType::convert<std::string>()          { return this->setValue<std::string>         (this->operator std::string());          } /** @brief Converts the current value to the given type. */
  • code/branches/consolecommands3/src/libraries/util/SharedPtr.h

    r7205 r7212  
    137137            }
    138138
     139            inline T* get() const
     140            {
     141                return this->pointer_;
     142            }
     143
    139144            inline operator bool() const
    140145            {
Note: See TracChangeset for help on using the changeset viewer.