Changeset 3280 for code/trunk/src/core/OrxonoxClass.cc
- Timestamp:
- Jul 12, 2009, 11:58:01 PM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/core4 (added) merged: 3235-3237,3245-3250,3253-3254,3260-3261,3265,3270
- Property svn:mergeinfo changed
-
code/trunk/src/core/OrxonoxClass.cc
r3196 r3280 78 78 79 79 /** @brief Returns true if the objects class is of the given type or a derivative. */ 80 bool OrxonoxClass::isA(const SubclassIdentifier<classB>* identifier)80 template <class B> bool OrxonoxClass::isA(const SubclassIdentifier<B>* identifier) 81 81 { return this->getIdentifier()->isA(identifier->getIdentifier()); } 82 82 /** @brief Returns true if the objects class is exactly of the given type. */ 83 bool OrxonoxClass::isExactlyA(const SubclassIdentifier<classB>* identifier)83 template <class B> bool OrxonoxClass::isExactlyA(const SubclassIdentifier<B>* identifier) 84 84 { return this->getIdentifier()->isExactlyA(identifier->getIdentifier()); } 85 85 /** @brief Returns true if the objects class is a child of the given type. */ 86 bool OrxonoxClass::isChildOf(const SubclassIdentifier<classB>* identifier)86 template <class B> bool OrxonoxClass::isChildOf(const SubclassIdentifier<B>* identifier) 87 87 { return this->getIdentifier()->isChildOf(identifier->getIdentifier()); } 88 88 /** @brief Returns true if the objects class is a direct child of the given type. */ 89 bool OrxonoxClass::isDirectChildOf(const SubclassIdentifier<classB>* identifier)89 template <class B> bool OrxonoxClass::isDirectChildOf(const SubclassIdentifier<B>* identifier) 90 90 { return this->getIdentifier()->isDirectChildOf(identifier->getIdentifier()); } 91 91 /** @brief Returns true if the objects class is a parent of the given type. */ 92 bool OrxonoxClass::isParentOf(const SubclassIdentifier<classB>* identifier)92 template <class B> bool OrxonoxClass::isParentOf(const SubclassIdentifier<B>* identifier) 93 93 { return this->getIdentifier()->isParentOf(identifier->getIdentifier()); } 94 94 /** @brief Returns true if the objects class is a direct parent of the given type. */ 95 bool OrxonoxClass::isDirectParentOf(const SubclassIdentifier<classB>* identifier)95 template <class B> bool OrxonoxClass::isDirectParentOf(const SubclassIdentifier<B>* identifier) 96 96 { return this->getIdentifier()->isDirectParentOf(identifier->getIdentifier()); } 97 97 98 98 99 99 /** @brief Returns true if the objects class is of the given type or a derivative. */ 100 bool OrxonoxClass::isA(const SubclassIdentifier<classB> identifier)100 template <class B> bool OrxonoxClass::isA(const SubclassIdentifier<B> identifier) 101 101 { return this->getIdentifier()->isA(identifier.getIdentifier()); } 102 102 /** @brief Returns true if the objects class is exactly of the given type. */ 103 bool OrxonoxClass::isExactlyA(const SubclassIdentifier<classB> identifier)103 template <class B> bool OrxonoxClass::isExactlyA(const SubclassIdentifier<B> identifier) 104 104 { return this->getIdentifier()->isExactlyA(identifier.getIdentifier()); } 105 105 /** @brief Returns true if the objects class is a child of the given type. */ 106 bool OrxonoxClass::isChildOf(const SubclassIdentifier<classB> identifier)106 template <class B> bool OrxonoxClass::isChildOf(const SubclassIdentifier<B> identifier) 107 107 { return this->getIdentifier()->isChildOf(identifier.getIdentifier()); } 108 108 /** @brief Returns true if the objects class is a direct child of the given type. */ 109 bool OrxonoxClass::isDirectChildOf(const SubclassIdentifier<classB> identifier)109 template <class B> bool OrxonoxClass::isDirectChildOf(const SubclassIdentifier<B> identifier) 110 110 { return this->getIdentifier()->isDirectChildOf(identifier.getIdentifier()); } 111 111 /** @brief Returns true if the objects class is a parent of the given type. */ 112 bool OrxonoxClass::isParentOf(const SubclassIdentifier<classB> identifier)112 template <class B> bool OrxonoxClass::isParentOf(const SubclassIdentifier<B> identifier) 113 113 { return this->getIdentifier()->isParentOf(identifier.getIdentifier()); } 114 114 /** @brief Returns true if the objects class is a direct parent of the given type. */ 115 bool OrxonoxClass::isDirectParentOf(const SubclassIdentifier<classB> identifier)115 template <class B> bool OrxonoxClass::isDirectParentOf(const SubclassIdentifier<B> identifier) 116 116 { return this->getIdentifier()->isDirectParentOf(identifier.getIdentifier()); } 117 117
Note: See TracChangeset
for help on using the changeset viewer.