cgblock.cpp 366 B

123456789101112131415161718192021222324
  1. #include "cgstd.h"
  2. #include "cgblock.h"
  3. void CGBlock::removeSucc( CGBlock *blk ){
  4. CGBlockIter it;
  5. for( it=succ.begin();it!=succ.end();++it ){
  6. if( *it==blk ){
  7. succ.erase(it);
  8. return;
  9. }
  10. }
  11. }
  12. void CGBlock::removePred( CGBlock *blk ){
  13. CGBlockIter it;
  14. for( it=pred.begin();it!=pred.end();++it ){
  15. if( *it==blk ){
  16. pred.erase(it);
  17. return;
  18. }
  19. }
  20. }