Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 23, 2009, 10:48:09 PM (15 years ago)
Author:
landauf
Message:

fixed an issue with SubclassIdentifier comparisons in OrxonoxClass

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core5/src/libraries/core/OrxonoxClass.h

    r5738 r5772  
    7272            bool isDirectParentOf(const Identifier* identifier);
    7373
    74             template <class B> bool isA(const SubclassIdentifier<B>* identifier);
    75             template <class B> bool isExactlyA(const SubclassIdentifier<B>* identifier);
    76             template <class B> bool isChildOf(const SubclassIdentifier<B>* identifier);
    77             template <class B> bool isDirectChildOf(const SubclassIdentifier<B>* identifier);
    78             template <class B> bool isParentOf(const SubclassIdentifier<B>* identifier);
    79             template <class B> bool isDirectParentOf(const SubclassIdentifier<B>* identifier);
    80 
    81             template <class B> bool isA(const SubclassIdentifier<B> identifier);
    82             template <class B> bool isExactlyA(const SubclassIdentifier<B> identifier);
    83             template <class B> bool isChildOf(const SubclassIdentifier<B> identifier);
    84             template <class B> bool isDirectChildOf(const SubclassIdentifier<B> identifier);
    85             template <class B> bool isParentOf(const SubclassIdentifier<B> identifier);
    86             template <class B> bool isDirectParentOf(const SubclassIdentifier<B> identifier);
     74            template <class B> inline bool isA(const SubclassIdentifier<B>* identifier)
     75                { return this->isA(*identifier); }
     76            template <class B> inline bool isExactlyA(const SubclassIdentifier<B>* identifier)
     77                { return this->isExactlyA(*identifier); }
     78            template <class B> inline bool isChildOf(const SubclassIdentifier<B>* identifier)
     79                { return this->isChildOf(*identifier); }
     80            template <class B> inline bool isDirectChildOf(const SubclassIdentifier<B>* identifier)
     81                { return this->isDirectChildOf(*identifier); }
     82            template <class B> inline bool isParentOf(const SubclassIdentifier<B>* identifier)
     83                { return this->isParentOf(*identifier); }
     84            template <class B> inline bool isDirectParentOf(const SubclassIdentifier<B>* identifier)
     85                { return this->isDirectParentOf(*identifier); }
    8786
    8887            bool isA(const OrxonoxClass* object);
Note: See TracChangeset for help on using the changeset viewer.