| /oneTBB/examples/common/utility/ |
| H A D | utility.hpp | 74 const std::string name; 75 const std::string description; 77 type_base(std::string a_name, std::string a_description) in type_base() 98 type_impl(std::string a_name, in type_impl() 168 argument(std::string a_name, in argument() 174 std::string value() const { in value() 177 std::string name() const { in name() 180 std::string description() const { in description() 265 std::string name_found = std::string(begin, assign_sign); in parse() 316 std::string usage_string(const std::string& binary_name) const { in usage_string() [all …]
|
| /oneTBB/test/tbb/ |
| H A D | test_join_node_msg_key_matching_n_args.cpp | 29 using T1 = std::tuple<MyMessageKeyWithoutKeyMethod<std::string, double>>; 30 using T2 = make_tuple<T1, MyMessageKeyWithBrokenKey<std::string, int>>; 31 using T3 = make_tuple < T2, MyMessageKeyWithoutKey<std::string, int>>; 32 using T4 = make_tuple < T3, MyMessageKeyWithoutKeyMethod<std::string, size_t>>; 33 using T5 = make_tuple < T4, MyMessageKeyWithBrokenKey<std::string, int>>; 34 using T6 = make_tuple < T5, MyMessageKeyWithoutKeyMethod<std::string, short>>; 35 using T7 = make_tuple < T6, MyMessageKeyWithoutKeyMethod<std::string, threebyte>>; 36 using T8 = make_tuple < T7, MyMessageKeyWithBrokenKey<std::string, int>>; 37 using T9 = make_tuple < T8, MyMessageKeyWithoutKeyMethod<std::string, threebyte>>; 38 using T10 = make_tuple < T9, MyMessageKeyWithBrokenKey<std::string, size_t>>; [all …]
|
| H A D | test_join_node_key_matching_n_args.cpp | 26 using T1 = std::tuple<MyKeyFirst<std::string, double>>; 27 using T2 = make_tuple<T1, MyKeySecond<std::string, int>>; 28 using T3 = make_tuple<T2, MyKeyFirst<std::string, int>>; 29 using T4 = make_tuple<T3, MyKeyWithBrokenMessageKey<std::string, size_t>>; 30 using T5 = make_tuple<T4, MyKeyWithBrokenMessageKey<std::string, int>>; 31 using T6 = make_tuple<T5, MyKeySecond<std::string, short>>; 32 using T7 = make_tuple<T6, MyKeySecond<std::string, threebyte>>; 33 using T8 = make_tuple<T7, MyKeyFirst<std::string, int>>; 34 using T9 = make_tuple<T8, MyKeySecond<std::string, threebyte>>; 35 using T10 = make_tuple<T9, MyKeyWithBrokenMessageKey<std::string, size_t>>; [all …]
|
| H A D | test_join_node_msg_key_matching.cpp | 56 …eyWithoutKeyMethod<std::string, double>, MyMessageKeyWithBrokenKey<std::string, float> >, message_… 64 …sageKeyWithoutKey<std::string, double>, MyMessageKeyWithoutKeyMethod<std::string, float> >, messag…
|
| H A D | test_environment_whitebox.cpp | 51 std::pair<std::string, T> test_case ) in set_and_get_test_variable() argument 102 std::pair<std::string, T> create_random_case( std::size_t length ) { in create_random_case() 104 std::string rand_string(length, ' '); in create_random_case() 113 void prepare_random_cases( std::vector<std::pair<std::string, T>>& cases ) { in prepare_random_cases() argument 125 std::vector<std::pair<std::string, bool>> initialize_cases( bool wrong_result ) { in initialize_cases() 126 std::vector<std::pair<std::string, bool>> cases; in initialize_cases() 133 cases.push_back(std::make_pair((std::string(large_length, ' ') + '1').c_str(), true)); in initialize_cases() 159 std::vector<std::pair<std::string, long>> initialize_cases( long wrong_result ) { in initialize_cases() 160 std::vector<std::pair<std::string, long>> cases; in initialize_cases() 185 cases.push_back(std::make_pair((std::string(large_length, ' ') + '1').c_str(), 1L)); in initialize_cases() [all …]
|
| H A D | test_join_node_key_matching.cpp | 60 …test, std::tuple<MyKeyFirst<std::string, double>, MyKeySecond<std::string, float> >, tbb::flow::ke… 61 …irst<std::string, double>, MyKeySecond<std::string, float>, MyKeyWithBrokenMessageKey<std::string,… 77 …test, std::tuple<MyKeyFirst<std::string, double>, MyKeySecond<std::string, float> >, tbb::flow::ke…
|
| H A D | test_mutex.h | 212 …std::string error_message_writer = std::string(mutex_name) + "::scoped_lock is not acquired for wr… in TestIsWriter() 213 …std::string error_message_not_writer = std::string(mutex_name) + "::scoped_lock is acquired for wr… in TestIsWriter()
|
| /oneTBB/test/conformance/ |
| H A D | conformance_concurrent_unordered_map.cpp | 129 using ComplexType = std::pair<int, std::string>; in test_deduction_guides() 130 using ComplexTypeConst = std::pair<const int, std::string>; in test_deduction_guides() 137 static_assert(std::is_same<decltype(m0), TMap<int, std::string>>::value); in test_deduction_guides() 141 static_assert(std::is_same<decltype(m1), TMap<int, std::string>>::value); in test_deduction_guides() 158 static_assert(std::is_same<decltype(m5), TMap<int, std::string, std::hash<int>, in test_deduction_guides() 168 static_assert(std::is_same<decltype(m7), TMap<int, std::string>>::value); in test_deduction_guides() 172 static_assert(std::is_same<decltype(m8), TMap<int, std::string>>::value); in test_deduction_guides() 220 …erogeneous_functions_key_string<oneapi::tbb::concurrent_unordered_map, std::string, std::string>(); in test_heterogeneous_functions() 221 …neous_functions_key_string<oneapi::tbb::concurrent_unordered_multimap, std::string, std::string>(); in test_heterogeneous_functions() 290 …erogeneous_functions_key_string<oneapi::tbb::concurrent_unordered_map, std::string, std::string>(); [all …]
|
| H A D | conformance_concurrent_unordered_set.cpp | 132 using ComplexType = const std::string *; in test_deduction_guides() 134 std::string s = "s"; in test_deduction_guides() 261 check_heterogeneous_functions_key_string<oneapi::tbb::concurrent_unordered_set, std::string>(); 324 …heck_heterogeneous_functions_key_string<oneapi::tbb::concurrent_unordered_multiset, std::string>();
|
| /oneTBB/examples/getting_started/sub_string_finder/ |
| H A D | sub_string_finder.cpp | 32 const std::string &str; 58 SubStringFinder(const std::string &s, std::vector<std::size_t> &m, std::vector<std::size_t> &p) in SubStringFinder() 72 std::string str[N] = { std::string("a"), std::string("b") }; in main() 75 std::string &to_scan = str[N - 1]; in main()
|
| H A D | sub_string_finder_pretty.cpp | 29 const std::string &str; 55 SubStringFinder(const std::string &s, std::vector<std::size_t> &m, std::vector<std::size_t> &p) in SubStringFinder() 62 std::string str[N] = { std::string("a"), std::string("b") }; in main() 65 std::string &to_scan = str[N - 1]; in main()
|
| H A D | sub_string_finder_extended.cpp | 28 void SerialSubStringFinder(const std::string &str, in SerialSubStringFinder() 86 std::string str[N] = { std::string("a"), std::string("b") }; in main() 89 std::string &to_scan = str[N - 1]; in main()
|
| H A D | README.md | 4 …string, the program displays the length of the largest matching substring elsewhere in the string.…
|
| /oneTBB/doc/main/tbb_userguide/ |
| H A D | concurrent_hash_map.rst | 15 string occurs in the array ``Data``. 24 #include <string> 33 static size_t hash( const string& x ) { 40 static bool equal( const string& x, const string& y ) { 47 typedef concurrent_hash_map<string,int,MyHashCompare> StringTable; 54 void operator()( const blocked_range<string*> range ) const { 55 for( string* p=range.begin(); p!=range.end(); ++p ) { 67 string Data[N]; 76 parallel_for( blocked_range<string*>( Data, Data+N, 1000 ), 117 for( string* p=range.begin(); p!=range.end(); ++p ) {
|
| H A D | concurrent_vector_ug.rst | 19 example, the following routine safely appends a C string to a shared 26 void Append( concurrent_vector<char>& vector, const char* string ) { 27 size_t n = strlen(string)+1; 28 std::copy( string, string+n, vector.grow_by(n) );
|
| H A D | More_on_HashCompare.rst | 70 size_t hash(const string& x) const { 77 bool equal(const string& x, const string& y) const { 87 typedef concurrent_hash_map<string,int, VariantHashCompare> VariantStringTable;
|
| /oneTBB/cmake/scripts/ |
| H A D | cmake_gen_github_configs.cmake | 26 string(REGEX REPLACE ".*#define TBB_VERSION_MAJOR ([0-9]+).*" "\\1" _tbb_ver_major "${_tbb_version_… 27 string(REGEX REPLACE ".*#define TBB_VERSION_MINOR ([0-9]+).*" "\\1" _tbb_ver_minor "${_tbb_version_… 28 string(REGEX REPLACE ".*#define TBB_VERSION_PATCH ([0-9]+).*" "\\1" _tbb_ver_patch "${_tbb_version_… 29 string(REGEX REPLACE ".*#define __TBB_BINARY_VERSION ([0-9]+).*" "\\1" TBB_BINARY_VERSION "${_tbb_v… 31 string(REGEX REPLACE ".*TBBMALLOC_BINARY_VERSION ([0-9]+).*" "\\1" TBBMALLOC_BINARY_VERSION "${_tbb… 33 string(REGEX REPLACE ".*TBBBIND_BINARY_VERSION ([0-9]+).*" "\\1" TBBBIND_BINARY_VERSION "${_tbb_cma…
|
| /oneTBB/include/oneapi/tbb/ |
| H A D | profiling.h | 204 const std::string my_name; 206 static void emit_trace(const std::string &input) { in emit_trace() 211 event(const std::string &input) in event() 219 static void emit(const std::string &description) { in emit() 227 event(const std::string &) { } in event() 231 static void emit(const std::string &) { } in emit()
|
| /oneTBB/ |
| H A D | CMakeLists.txt | 47 string(REGEX REPLACE ".*#define TBB_VERSION_MAJOR ([0-9]+).*" "\\1" _tbb_ver_major "${_tbb_version_… 48 string(REGEX REPLACE ".*#define TBB_VERSION_MINOR ([0-9]+).*" "\\1" _tbb_ver_minor "${_tbb_version_… 49 string(REGEX REPLACE ".*#define TBB_VERSION_PATCH ([0-9]+).*" "\\1" _tbb_ver_patch "${_tbb_version_… 50 string(REGEX REPLACE ".*#define TBB_INTERFACE_VERSION ([0-9]+).*" "\\1" TBB_INTERFACE_VERSION "${_t… 51 string(REGEX REPLACE ".*#define __TBB_BINARY_VERSION ([0-9]+).*" "\\1" TBB_BINARY_VERSION "${_tbb_v… 130 string(TOLOWER ${CMAKE_BUILD_TYPE} _tbb_build_type) 160 …string(REGEX MATCH "^([0-9]+\.[0-9]+|[0-9]+)" _tbb_compiler_version_short ${CMAKE_CXX_COMPILER_VER… 161 …string(TOLOWER ${CMAKE_CXX_COMPILER_ID}_${_tbb_compiler_version_short}_cxx${CMAKE_CXX_STANDARD}_${… 169 string(TOLOWER ${CMAKE_BUILD_TYPE} _tbb_build_type_lower) 176 string(TOUPPER ${suffix} _tbb_suffix_upper) [all …]
|
| /oneTBB/examples/graph/fgbzip2/ |
| H A D | fgbzip2.cpp | 280 bool endsWith(const std::string& str, const std::string& suffix) { in endsWith() 281 return str.find(suffix, str.length() - suffix.length()) != std::string::npos; in endsWith() 289 const std::string archiveExtension = ".bz2"; in main() 292 std::string inputFileName; in main() 334 std::string outputFileName(inputFileName + archiveExtension); in main()
|
| /oneTBB/doc/main/tbb_userguide/design_patterns/ |
| H A D | Fenced_Data_Transfer.rst | 40 std::string Message; 43 void Send( const std::string& src ) {. // Executed by thread 1 49 bool Receive( std::string& dst ) { // Executed by thread 2 96 std::string Message; 99 void Send( const std::string& src ) {. // Executed by thread 1 105 bool Receive( std::string& dst ) { // Executed by thread 2
|
| /oneTBB/examples/graph/cholesky/ |
| H A D | cholesky.cpp | 66 std::string g_alg_name; 121 std::string name; 163 algorithm(const std::string &alg_name, bool t) : name(alg_name), is_tiled(t) {} in algorithm() 192 std::string s(g_output_prefix); in operator ()() 203 std::string s(g_output_prefix); in operator ()() 674 typedef std::map<std::string, algorithm *> algmap_t; in main() 678 algmap.insert(std::pair<std::string, algorithm *>("dpotrf", new algorithm_dpotrf)); in main() 679 algmap.insert(std::pair<std::string, algorithm *>("crout", new algorithm_crout)); in main() 680 algmap.insert(std::pair<std::string, algorithm *>("depend", new algorithm_depend)); in main() 681 algmap.insert(std::pair<std::string, algorithm *>("join", new algorithm_join)); in main() [all …]
|
| /oneTBB/test/common/ |
| H A D | concurrent_lru_cache_common.h | 176 struct preset1 : preset_base<std::string, std::string> { 181 static std::string callback(std::string key) { return key; } in callback()
|
| H A D | doctest.h | 729 String string; variable 5100 std::string m_str; 5144 XmlWriter& writeAttribute( std::string const& name, std::string const& attribute ); 5176 std::string m_indent; 5398 XmlWriter& XmlWriter::writeAttribute( std::string const& name, std::string const& attribute ) { 5794 …JUnitTestMessage(const std::string& _message, const std::string& _type, const std::string& _detail… 5797 JUnitTestMessage(const std::string& _message, const std::string& _details) 5805 JUnitTestCase(const std::string& _classname, const std::string& _name) 5813 void add(const std::string& classname, const std::string& name) { 5830 … void addFailure(const std::string& message, const std::string& type, const std::string& details) { [all …]
|
| /oneTBB/examples/graph/logic_sim/ |
| H A D | basics.hpp | 606 std::string& label; 611 led_body(signal_t& s, std::string& l, bool r) in led_body() 631 std::string label; 637 led(oneapi::tbb::flow::graph& g, std::string l, bool rc = false) in led() 682 std::string& label; 686 digit_body(unsigned int& s, std::string& l, bool& r) in digit_body() 712 std::string label; 717 digit(oneapi::tbb::flow::graph& g, std::string l, bool rc = false) in digit()
|