|
@ -16,6 +16,18 @@ void get_status() { |
|
|
std::cout << "basic ranges available" << std::endl; |
|
|
std::cout << "basic ranges available" << std::endl; |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
switch (AllCases::all_cases_status()) { |
|
|
|
|
|
case AllCases::NO_INIT: |
|
|
|
|
|
std::cout << "all cases no init" << std::endl; |
|
|
|
|
|
break; |
|
|
|
|
|
case AllCases::BUILDING: |
|
|
|
|
|
std::cout << "all cases building" << std::endl; |
|
|
|
|
|
break; |
|
|
|
|
|
case AllCases::AVAILABLE: |
|
|
|
|
|
std::cout << "all cases available" << std::endl; |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
int main() { |
|
|
int main() { |
|
@ -36,18 +48,27 @@ int main() { |
|
|
// std::cout << BasicRanges::get_basic_ranges()->size() << std::endl;
|
|
|
// std::cout << BasicRanges::get_basic_ranges()->size() << std::endl;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
get_status(); |
|
|
|
|
|
|
|
|
std::thread t1(AllCases::build_all_cases); |
|
|
std::thread t1(AllCases::build_all_cases); |
|
|
std::thread t2(AllCases::build_all_cases); |
|
|
std::thread t2(AllCases::build_all_cases); |
|
|
std::thread t3(AllCases::build_all_cases); |
|
|
std::thread t3(AllCases::build_all_cases); |
|
|
|
|
|
std::thread t(get_status); |
|
|
t1.join(); |
|
|
t1.join(); |
|
|
t2.join(); |
|
|
t2.join(); |
|
|
t3.join(); |
|
|
t3.join(); |
|
|
|
|
|
t.join(); |
|
|
|
|
|
|
|
|
AllCases::build_all_cases(); |
|
|
// AllCases::build_all_cases();
|
|
|
|
|
|
|
|
|
|
|
|
get_status(); |
|
|
|
|
|
|
|
|
for (auto const &all_case : *AllCases::get_all_cases()) { |
|
|
for (auto const &all_case : *AllCases::get_all_cases()) { |
|
|
std::cout << all_case.size() << std::endl; |
|
|
std::cout << " " << all_case.size() << std::endl; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
std::cout << BasicRanges::get_basic_ranges() << std::endl; |
|
|
|
|
|
std::cout << AllCases::get_basic_ranges() << std::endl; |
|
|
|
|
|
|
|
|
return 0; |
|
|
return 0; |
|
|
} |
|
|
} |
|
|