Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
shamalgs Namespace Reference

namespace to contain everything implemented by shamalgs More...

Namespaces

namespace  algorithm
 namespace to store algorithms implemented by shamalgs
namespace  memory
 memory manipulation algorithms
namespace  numeric
 namespace containing the numeric algorithms of shamalgs
namespace  random
 namespace to contain utility related to random number generation in shamalgs
namespace  primitives
 namespace for primitive algorithm (e.g. sort, scan, reductions, ...)

Classes

struct  BufferEventHandler
struct  impl_param
struct  ImplVariantParams
 Customization point controlling how an alternative's fields (if any) are serialized to / parsed from the "parameters" json value carried alongside its name. More...
class  IImplVariant
 Non-template virtual interface exposed by ImplVariantGlobal, for code that needs to hold or pass around an implementation selector without knowing its alternative types. More...
class  ImplVariantGlobal
 Drop-in replacement for the hand-rolled "global variable + enum + name mapping. More...
struct  SerializeSize
class  SerializeHelper
struct  ImplVariantParams< shamalgs::primitives::impl::AtomicEarlyExit >
struct  ImplVariantParams< shamalgs::primitives::impl::BitonicSort >

Concepts

concept  HasCustomDefaults
 Detects whether Alt opts into exposing more than one default instance of itself (e.g. the same alternative with different tunable field values) via a static variant_custom_defaults() method, for example:

Functions

u32 gen_buf_hash ()
template<class Variant>
std::string variant_to_config_string (const Variant &v)
 Serialize the currently active alternative of a variant to a single config json string.
template<class Variant>
Variant variant_from_config_string (std::string_view s)
 Parse a variant back from a config string produced by variant_to_config_string.
template<class Variant>
std::vector< std::string > variant_default_type_names ()
 List the variant_type_name of every alternative of a variant, with no params.

Detailed Description

namespace to contain everything implemented by shamalgs

namespace for algorithms

Function Documentation

◆ gen_buf_hash()

u32 shamalgs::gen_buf_hash ( )

Definition at line 21 of file BufferEventHandler.cpp.

◆ variant_default_type_names()

template<class Variant>
std::vector< std::string > shamalgs::variant_default_type_names ( )
inline

List the variant_type_name of every alternative of a variant, with no params.

Definition at line 203 of file ImplVariant.hpp.

◆ variant_from_config_string()

template<class Variant>
Variant shamalgs::variant_from_config_string ( std::string_view s)
inline

Parse a variant back from a config string produced by variant_to_config_string.

Definition at line 197 of file ImplVariant.hpp.

◆ variant_to_config_string()

template<class Variant>
std::string shamalgs::variant_to_config_string ( const Variant & v)
inline

Serialize the currently active alternative of a variant to a single config json string.

Definition at line 183 of file ImplVariant.hpp.

Here is the call graph for this function: