operator_test.hpp 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. namespace {
  2. /*!
  3. * Finds the optimal cycle ratio of the policy graph
  4. */
  5. float_t policy_mcr()
  6. {
  7. std::fill(m_col_bfs.begin(), m_col_bfs.end(), my_white);
  8. color_map_t vcm_ = color_map_t(m_col_bfs.begin(), m_vim);
  9. typename graph_traits<Graph>::vertex_iterator uv_itr, vie;
  10. boost::tie(uv_itr, vie) = vertices(m_g);
  11. float_t mcr = m_bound;
  12. while ( (uv_itr = std::find_if(uv_itr, vie,
  13. boost::bind(std::equal_to<my_color_type>(),
  14. my_white,
  15. boost::bind(&color_map_t::operator[], vcm_, _1)
  16. )
  17. )
  18. ) != vie )
  19. ///While there are undiscovered vertices
  20. {
  21. vertex_t gv = find_cycle_vertex(*uv_itr);
  22. float_t cr = cycle_ratio(gv) ;
  23. mcr_bfv(gv, cr, vcm_);
  24. if ( m_cmp(mcr, cr) ) mcr = cr;
  25. ++uv_itr;
  26. }
  27. return mcr;
  28. }
  29. function_after(){}
  30. }
  31. class ALL_operators {
  32. operator int () {}
  33. operator new () {}
  34. operator delete () {}
  35. operator new[ ] () {}
  36. operator delete [] () {}
  37. operator+ () {}
  38. operator - () {}
  39. operator * () {}
  40. operator / () {}
  41. operator= () {}
  42. operator< () {}
  43. operator > () {}
  44. operator+= () {}
  45. operator -= () {}
  46. operator*= () {}
  47. operator/= () {}
  48. operator<<() {}
  49. operator >> () {}
  50. operator <<=() {}
  51. operator>>=() {}
  52. operator==() {}
  53. operator!=() {}
  54. operator<=() {}
  55. operator >= () {}
  56. operator ++ () {}
  57. operator--() {}
  58. operator%() {}
  59. operator &() {}
  60. operator ^() {}
  61. operator !() {}
  62. operator|() {}
  63. operator~() {}
  64. operator &=() {}
  65. operator ^=() {}
  66. operator |=() {}
  67. operator &&() {}
  68. operator || () {}
  69. operator %=() {}
  70. operator [] () {}
  71. operator () () {}
  72. operator() () {}
  73. operator()(){}
  74. operator() (){}
  75. operator ()() {}
  76. operator ()(){}
  77. operator ,() {}
  78. operator ->*() {}
  79. operator->() {}
  80. operator.() {}
  81. };