Changeset 817 for code/branches/core/src/orxonox/core/OrxonoxClass.h
- Timestamp:
- Feb 16, 2008, 7:31:18 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core/src/orxonox/core/OrxonoxClass.h
r813 r817 72 72 inline void createParents() { this->parents_ = new std::list<const Identifier*>(); } 73 73 74 // /** @brief Sets the Parents of the object. Used by the RegisterObject-macro. */75 // inline void setParents(std::list<const Identifier*>* parents) { this->parents_ = parents; }76 77 74 /** @brief Returns the MetaObjectList of the object, containing a link to all ObjectLists and ObjectListElements the object is registered in. @return The list */ 78 75 inline MetaObjectList& getMetaList() { return this->metaList_; } … … 83 80 { return this->getIdentifier()->isA(identifier); } 84 81 /** @brief Returns true if the objects class is exactly of the given type. */ 85 inline bool is DirectlyA(const Identifier* identifier)86 { return this->getIdentifier()->is DirectlyA(identifier); }82 inline bool isExactlyA(const Identifier* identifier) 83 { return this->getIdentifier()->isExactlyA(identifier); } 87 84 /** @brief Returns true if the objects class is a child of the given type. */ 88 85 inline bool isChildOf(const Identifier* identifier) 89 86 { return this->getIdentifier()->isChildOf(identifier); } 87 /** @brief Returns true if the objects class is a direct child of the given type. */ 88 inline bool isDirectChildOf(const Identifier* identifier) 89 { return this->getIdentifier()->isDirectChildOf(identifier); } 90 90 /** @brief Returns true if the objects class is a parent of the given type. */ 91 91 inline bool isParentOf(const Identifier* identifier) 92 92 { return this->getIdentifier()->isParentOf(identifier); } 93 /** @brief Returns true if the objects class is a direct parent of the given type. */ 94 inline bool isDirectParentOf(const Identifier* identifier) 95 { return this->getIdentifier()->isDirectParentOf(identifier); } 93 96 94 97 … … 97 100 { return this->getIdentifier()->isA(identifier->getIdentifier()); } 98 101 /** @brief Returns true if the objects class is exactly of the given type. */ 99 inline bool is DirectlyA(const SubclassIdentifier<class B>* identifier)100 { return this->getIdentifier()->is DirectlyA(identifier->getIdentifier()); }102 inline bool isExactlyA(const SubclassIdentifier<class B>* identifier) 103 { return this->getIdentifier()->isExactlyA(identifier->getIdentifier()); } 101 104 /** @brief Returns true if the objects class is a child of the given type. */ 102 105 inline bool isChildOf(const SubclassIdentifier<class B>* identifier) 103 106 { return this->getIdentifier()->isChildOf(identifier->getIdentifier()); } 107 /** @brief Returns true if the objects class is a direct child of the given type. */ 108 inline bool isDirectChildOf(const SubclassIdentifier<class B>* identifier) 109 { return this->getIdentifier()->isDirectChildOf(identifier->getIdentifier()); } 104 110 /** @brief Returns true if the objects class is a parent of the given type. */ 105 111 inline bool isParentOf(const SubclassIdentifier<class B>* identifier) 106 112 { return this->getIdentifier()->isParentOf(identifier->getIdentifier()); } 113 /** @brief Returns true if the objects class is a direct parent of the given type. */ 114 inline bool isDirectParentOf(const SubclassIdentifier<class B>* identifier) 115 { return this->getIdentifier()->isDirectParentOf(identifier->getIdentifier()); } 107 116 108 117 … … 111 120 { return this->getIdentifier()->isA(identifier.getIdentifier()); } 112 121 /** @brief Returns true if the objects class is exactly of the given type. */ 113 inline bool is DirectlyA(const SubclassIdentifier<class B> identifier)114 { return this->getIdentifier()->is DirectlyA(identifier.getIdentifier()); }122 inline bool isExactlyA(const SubclassIdentifier<class B> identifier) 123 { return this->getIdentifier()->isExactlyA(identifier.getIdentifier()); } 115 124 /** @brief Returns true if the objects class is a child of the given type. */ 116 125 inline bool isChildOf(const SubclassIdentifier<class B> identifier) 117 126 { return this->getIdentifier()->isChildOf(identifier.getIdentifier()); } 127 /** @brief Returns true if the objects class is a direct child of the given type. */ 128 inline bool isDirectChildOf(const SubclassIdentifier<class B> identifier) 129 { return this->getIdentifier()->isDirectChildOf(identifier.getIdentifier()); } 118 130 /** @brief Returns true if the objects class is a parent of the given type. */ 119 131 inline bool isParentOf(const SubclassIdentifier<class B> identifier) 120 132 { return this->getIdentifier()->isParentOf(identifier.getIdentifier()); } 133 /** @brief Returns true if the objects class is a direct parent of the given type. */ 134 inline bool isDirectParentOf(const SubclassIdentifier<class B> identifier) 135 { return this->getIdentifier()->isDirectParentOf(identifier.getIdentifier()); } 121 136 122 137 … … 125 140 { return this->getIdentifier()->isA(object->getIdentifier()); } 126 141 /** @brief Returns true if the objects class is exactly of the given type. */ 127 inline bool is DirectlyA(const OrxonoxClass* object)128 { return this->getIdentifier()->is DirectlyA(object->getIdentifier()); }142 inline bool isExactlyA(const OrxonoxClass* object) 143 { return this->getIdentifier()->isExactlyA(object->getIdentifier()); } 129 144 /** @brief Returns true if the objects class is a child of the given type. */ 130 145 inline bool isChildOf(const OrxonoxClass* object) 131 146 { return this->getIdentifier()->isChildOf(object->getIdentifier()); } 147 /** @brief Returns true if the objects class is a direct child of the given type. */ 148 inline bool isDirectChildOf(const OrxonoxClass* object) 149 { return this->getIdentifier()->isDirectChildOf(object->getIdentifier()); } 132 150 /** @brief Returns true if the objects class is a parent of the given type. */ 133 151 inline bool isParentOf(const OrxonoxClass* object) 134 152 { return this->getIdentifier()->isParentOf(object->getIdentifier()); } 153 /** @brief Returns true if the objects class is a direct child of the given type. */ 154 inline bool isDirectParentOf(const OrxonoxClass* object) 155 { return this->getIdentifier()->isDirectParentOf(object->getIdentifier()); } 135 156 136 157
Note: See TracChangeset
for help on using the changeset viewer.