C++ Library Extensions 2022.12.09
To help learn modern C++ programming
016-parallel_permutation.cpp File Reference
#include <tpf_set.hpp>
#include <tpf_chrono_random.hpp>
#include <tpf_ncrnpr.hpp>
#include <tpf_output.hpp>
Include dependency graph for 016-parallel_permutation.cpp:

Go to the source code of this file.

Classes

struct  tuv::thread_bundle
 

Namespaces

namespace  tuv
 

Functions

template<template< typename, typename... > class ContainerType, typename EleType , typename... Types, typename... OuterTypes>
void tuv::enum_permu (ContainerType< ContainerType< EleType, Types... >, OuterTypes... > &permutations, ContainerType< EleType, Types... > &L, ContainerType< EleType, Types... > &R)
 
template<typename NRType >
auto tuv::build_permutations (NRType n)
 
template<typename CallbackType , template< typename, typename... > class ContainerType, typename EleType , typename... Types>
void tuv::enum_permu (CallbackType &&callback, ContainerType< EleType, Types... > &L, ContainerType< EleType, Types... > &R)
 
template<typename CallbackType , typename NRType >
void tuv::build_permutations (CallbackType &&callback, NRType n)
 
template<typename CallbackType , template< typename, typename... > class ContainerType, typename EleType , typename... Types>
void tuv::enum_permu (thread_bundle &tb, CallbackType &&callback, ContainerType< EleType, Types... > &L, ContainerType< EleType, Types... > &R)
 
template<typename CallbackType , typename NRType >
void tuv::build_permutations (thread_bundle &tb, CallbackType &&callback, NRType n)
 
void test_build_permutations (int n)
 
template<typename ThreadFactorType >
void performance_test_build_permutations (ThreadFactorType factor, int n)
 
int main (int argc, char *argv[])
 

Variables

tpf::sstream stream
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 319 of file 016-parallel_permutation.cpp.

Here is the call graph for this function:

◆ performance_test_build_permutations()

template<typename ThreadFactorType >
void performance_test_build_permutations ( ThreadFactorType  factor,
int  n 
)

Definition at line 279 of file 016-parallel_permutation.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_build_permutations()

void test_build_permutations ( int  n)

Definition at line 262 of file 016-parallel_permutation.cpp.

Here is the call graph for this function:

Variable Documentation

◆ stream

tpf::sstream stream

Definition at line 11 of file 016-parallel_permutation.cpp.