performance.hpp 863 B

123456789101112131415161718192021222324252627282930
  1. ///////////////////////////////////////////////////////////////
  2. // Copyright 2015 John Maddock. Distributed under the Boost
  3. // Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_
  5. //
  6. #ifndef BOOST_REGEX_PERFRMANCE_HPP
  7. #define BOOST_REGEX_PERFRMANCE_HPP
  8. #include <string>
  9. #include <boost/shared_ptr.hpp>
  10. struct abstract_regex
  11. {
  12. virtual bool set_expression(const char*, bool isperl) = 0;
  13. virtual bool match_test(const char* text) = 0;
  14. virtual unsigned find_all(const char* text) = 0;
  15. virtual std::string name() = 0;
  16. static void register_instance(boost::shared_ptr<abstract_regex> item);
  17. };
  18. void report_execution_time(double t, std::string table, std::string row, std::string heading);
  19. std::string boost_name();
  20. std::string compiler_name();
  21. std::string platform_name();
  22. #endif