BioCMAMC-ST
Common Namespace Reference

Classes

class  ConfigFactory
class  ConfigFile

Functions

template<typename T>
std::optional< T > read_env (std::string_view varname)
 Wrapper arround get_env to get optional envariable.
template<typename T>
read_env_or (std::string_view varname, T vdefault)
 Wrapper arround get_env to get envariable with fallback to default.
template<typename T>
bool set_local_env (std::string_view varname, T val)
 Wrapper arround set_env.
constexpr bool is_power_of_2 (std::size_t x)
std::size_t c_league_size (std::size_t n_tot, std::size_t n_per_team) noexcept
template<typename Tag = void>
Kokkos::TeamPolicy< ComputeSpace, Tag > get_policy_team (std::size_t league_size=1)
template<typename Tag = void>
Kokkos::TeamPolicy< ComputeSpace, Tag > get_policy_team_from_npt (std::size_t n_tot, std::size_t n_per_team)
template<>
bool read_env_or (std::string_view varname, bool vdefault)
template<>
bool set_local_env< std::string > (std::string_view varname, std::string val)
template<>
bool set_local_env< bool > (std::string_view varname, bool val)

Function Documentation

◆ c_league_size()

std::size_t Common::c_league_size ( std::size_t n_tot,
std::size_t n_per_team )
noexcept
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_policy_team()

template<typename Tag = void>
Kokkos::TeamPolicy< ComputeSpace, Tag > Common::get_policy_team ( std::size_t league_size = 1)
Here is the call graph for this function:

◆ get_policy_team_from_npt()

template<typename Tag = void>
Kokkos::TeamPolicy< ComputeSpace, Tag > Common::get_policy_team_from_npt ( std::size_t n_tot,
std::size_t n_per_team )
Here is the call graph for this function:

◆ is_power_of_2()

bool Common::is_power_of_2 ( std::size_t x)
inlineconstexpr
Here is the caller graph for this function:

◆ read_env()

template<typename T>
std::optional< T > Common::read_env ( std::string_view varname)

Wrapper arround get_env to get optional envariable.

Note
: UB if T is not trivial type
Here is the caller graph for this function:

◆ read_env_or() [1/2]

template<>
bool Common::read_env_or ( std::string_view varname,
bool vdefault )

◆ read_env_or() [2/2]

template<typename T>
T Common::read_env_or ( std::string_view varname,
T vdefault )

Wrapper arround get_env to get envariable with fallback to default.

Note
: UB if T is not trivial type
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_local_env()

template<typename T>
bool Common::set_local_env ( std::string_view varname,
T val )

Wrapper arround set_env.

Note
: UB if T is not trivial type

◆ set_local_env< bool >()

template<>
bool Common::set_local_env< bool > ( std::string_view varname,
bool val )

◆ set_local_env< std::string >()

template<>
bool Common::set_local_env< std::string > ( std::string_view varname,
std::string val )