Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 9, 2009, 8:27:59 PM (15 years ago)
Author:
rgrieder
Message:

Modifying some strange template function declarations to avoid forward declaring a non-existent type (like class B).

File:
1 edited

Legend:

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

    r3224 r3271  
    7070            bool isDirectParentOf(const Identifier* identifier);
    7171
    72             bool isA(const SubclassIdentifier<class B>* identifier);
    73             bool isExactlyA(const SubclassIdentifier<class B>* identifier);
    74             bool isChildOf(const SubclassIdentifier<class B>* identifier);
    75             bool isDirectChildOf(const SubclassIdentifier<class B>* identifier);
    76             bool isParentOf(const SubclassIdentifier<class B>* identifier);
    77             bool isDirectParentOf(const SubclassIdentifier<class B>* identifier);
     72            template <class B> bool isA(const SubclassIdentifier<B>* identifier);
     73            template <class B> bool isExactlyA(const SubclassIdentifier<B>* identifier);
     74            template <class B> bool isChildOf(const SubclassIdentifier<B>* identifier);
     75            template <class B> bool isDirectChildOf(const SubclassIdentifier<B>* identifier);
     76            template <class B> bool isParentOf(const SubclassIdentifier<B>* identifier);
     77            template <class B> bool isDirectParentOf(const SubclassIdentifier<B>* identifier);
    7878
    79             bool isA(const SubclassIdentifier<class B> identifier);
    80             bool isExactlyA(const SubclassIdentifier<class B> identifier);
    81             bool isChildOf(const SubclassIdentifier<class B> identifier);
    82             bool isDirectChildOf(const SubclassIdentifier<class B> identifier);
    83             bool isParentOf(const SubclassIdentifier<class B> identifier);
    84             bool isDirectParentOf(const SubclassIdentifier<class B> identifier);
     79            template <class B> bool isA(const SubclassIdentifier<B> identifier);
     80            template <class B> bool isExactlyA(const SubclassIdentifier<B> identifier);
     81            template <class B> bool isChildOf(const SubclassIdentifier<B> identifier);
     82            template <class B> bool isDirectChildOf(const SubclassIdentifier<B> identifier);
     83            template <class B> bool isParentOf(const SubclassIdentifier<B> identifier);
     84            template <class B> bool isDirectParentOf(const SubclassIdentifier<B> identifier);
    8585
    8686            bool isA(const OrxonoxClass* object);
Note: See TracChangeset for help on using the changeset viewer.