Changeset 806 for code/branches/core/src/orxonox/core/ClassTreeMask.cc
- Timestamp:
- Feb 12, 2008, 4:43:22 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core/src/orxonox/core/ClassTreeMask.cc
r805 r806 237 237 bool ClassTreeMask::isIncluded(ClassTreeMaskNode* node, const Identifier* subclass) const 238 238 { 239 std::cout << "1_1: " << subclass->getName() << " (" << subclass << ") / " << node->getClass()->getName() << " (" << node->getClass() << ")" << std::endl;239 //std::cout << "1_1: " << subclass->getName() << " (" << subclass << ") / " << node->getClass()->getName() << " (" << node->getClass() << ")" << std::endl; 240 240 // Check if the searched subclass is of the same type as the class in the current node or a derivative 241 241 if (subclass->isA(node->getClass())) 242 242 { 243 std::cout << "1_2\n";243 //std::cout << "1_2\n"; 244 244 // Check for the special case 245 245 if (subclass == node->getClass()) 246 246 { 247 std::cout << "1_3\n";247 //std::cout << "1_3\n"; 248 248 return node->isIncluded(); 249 249 } 250 250 251 std::cout << "1_4\n";251 //std::cout << "1_4\n"; 252 252 // Go through the list of subnodes and look for a node containing the searched subclass 253 253 for (std::list<ClassTreeMaskNode*>::iterator it = node->subnodes_.begin(); it != node->subnodes_.end(); ++it) … … 255 255 return isIncluded(*it, subclass); 256 256 257 std::cout << "1_5\n";257 //std::cout << "1_5\n"; 258 258 // There is no subnode containing our class -> the rule of the current node takes in effect 259 259 return node->isIncluded(); … … 261 261 else 262 262 { 263 std::cout << "1_6\n";263 //std::cout << "1_6\n"; 264 264 // The class is not included in the mask: return false 265 265 return false;
Note: See TracChangeset
for help on using the changeset viewer.