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 7 #ifndef BOOST_REGEX_PERFRMANCE_HPP 8 #define BOOST_REGEX_PERFRMANCE_HPP 9 10 #include <string> 11 #include <boost/shared_ptr.hpp> 12 13 struct abstract_regex 14 { 15 virtual bool set_expression(const char*, bool isperl) = 0; 16 virtual bool match_test(const char* text) = 0; 17 virtual unsigned find_all(const char* text) = 0; 18 virtual std::string name() = 0; 19 static void register_instance(boost::shared_ptr<abstract_regex> item); 20 }; 21 22 void report_execution_time(double t, std::string table, std::string row, std::string heading); 23 std::string boost_name(); 24 std::string compiler_name(); 25 std::string platform_name(); 26 27 28 #endif 29 30 31