Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 11, 2009, 6:22:15 PM (15 years ago)
Author:
rgrieder
Message:

Added a few inline keywords to template functions (Visual Studio does not seem to inline the small ones if defined outside of the class)
Added FORCEINLINE (which expands to forceinline for msvc) to all conversion functions (except the larger ones of course).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pch/src/core/Identifier.h

    r2784 r3145  
    383383    */
    384384    template <class T>
    385     ClassIdentifier<T>* ClassIdentifier<T>::getIdentifier()
     385    inline ClassIdentifier<T>* ClassIdentifier<T>::getIdentifier()
    386386    {
    387387        // check if the static field has already been filled
     
    398398    */
    399399    template <class T>
    400     ClassIdentifier<T>* ClassIdentifier<T>::getIdentifier(const std::string& name)
     400    inline ClassIdentifier<T>* ClassIdentifier<T>::getIdentifier(const std::string& name)
    401401    {
    402402        ClassIdentifier<T>* identifier = ClassIdentifier<T>::getIdentifier();
     
    435435    */
    436436    template <class T>
    437     void ClassIdentifier<T>::addObject(T* object)
     437    inline void ClassIdentifier<T>::addObject(T* object)
    438438    {
    439439        COUT(5) << "*** ClassIdentifier: Added object to " << this->getName() << "-list." << std::endl;
Note: See TracChangeset for help on using the changeset viewer.