Changeset 808 for code/branches/core/src
- Timestamp:
- Feb 12, 2008, 9:26:58 PM (17 years ago)
- Location:
- code/branches/core/src/orxonox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core/src/orxonox/Orxonox.cc
r807 r808 925 925 std::cout << "Mask 1 ^ Mask 2:\n"; 926 926 TestClassTreeMask(test13_10); 927 test13_10 = test13_10;928 TestClassTreeMask(test13_10);929 927 930 928 std::cout << "8\n"; … … 962 960 TestClassTreeMask(test13_11); 963 961 TestClassTreeMask(test13_13); 962 963 test13_1 = test13_1; 964 std::cout << std::endl; 965 std::cout << "Mask 1 assigned with = operator to itself:\n"; 966 TestClassTreeMask(test13_1); 964 967 965 968 std::cout << "9\n"; -
code/branches/core/src/orxonox/core/ClassTreeMask.cc
r807 r808 278 278 void ClassTreeMask::clean(ClassTreeMaskNode* node) 279 279 { 280 //std::cout << "4_1: " << node->getClass()->getName() << ": " << node->isIncluded() << "\n"; 280 281 for (std::list<ClassTreeMaskNode*>::iterator it = node->subnodes_.begin(); it != node->subnodes_.end(); ) 281 282 { 283 //std::cout << "4_2: " << (*it)->getClass()->getName() << ": " << (*it)->isIncluded() << "\n"; 284 this->clean(*it); 285 //std::cout << "4_3\n"; 282 286 if ((*it)->isIncluded() == node->isIncluded()) 283 287 { 288 //std::cout << "4_4\n"; 284 289 node->subnodes_.insert(node->subnodes_.end(), (*it)->subnodes_.begin(), (*it)->subnodes_.end()); 285 290 (*it)->subnodes_.clear(); 286 291 node->subnodes_.erase(it); 287 292 it = node->subnodes_.begin(); 293 //std::cout << "4_5\n"; 288 294 } 289 295 else 290 296 { 297 //std::cout << "4_6\n"; 291 298 ++it; 292 299 } 293 300 } 301 //std::cout << "4_7\n"; 294 302 } 295 303
Note: See TracChangeset
for help on using the changeset viewer.