Skip to main content

chronon::params

Namespaces

Name
chronon::params::detail

Classes

Name
classchronon::params::StandaloneParameter
Generic parameter descriptor with default, validation, and string serialization.
classchronon::params::Size
Memory size with automatic unit parsing (B/KiB/MiB/GiB/KB/MB/GB).
classchronon::params::ParameterSet
Base for parameter sets backed by self-registering Param members.
classchronon::params::ParamBase
Type-erased interface for self-registering parameters.
classchronon::params::Param
Self-registering parameter that hooks into its owning ParameterSet.
classchronon::params::Latency
Latency/time value with automatic unit parsing (ns/us/ms/s).
classchronon::params::Frequency
Frequency value with automatic unit parsing (Hz/kHz/MHz/GHz).
classchronon::params::Bandwidth
Bandwidth value with automatic unit parsing ("/s").

Types

Name
template <ParameterType T>
using StandaloneParameter< T >
Parameter

Functions

Name
template <typename T >
void
toYAML(YAML::Emitter & out, const T & value)
voidtoYAML(YAML::Emitter & out, const std::string & value)
voidtoYAML(YAML::Emitter & out, bool value)
voidtoYAML(YAML::Emitter & out, const Frequency & freq)
voidtoYAML(YAML::Emitter & out, const Latency & lat)
voidtoYAML(YAML::Emitter & out, const Size & size)
voidtoYAML(YAML::Emitter & out, const Bandwidth & bw)
template <typename T >
std::string
toString(T value)
std::stringtoString(bool value)
std::stringtoString(const std::string & value)
std::stringtoString(const Frequency & f)
std::stringtoString(const Latency & l)
std::stringtoString(const Size & s)
std::stringtoString(const Bandwidth & b)
template <ParameterType T>
void
serializeStandaloneParameter(YAML::Emitter & out, const StandaloneParameter< T > & param)
voidserializeParameterSet(YAML::Emitter & out, const ParameterSet & params)
template <ParameterType T>
void
serializeParameter(YAML::Emitter & out, const StandaloneParameter< T > & param)
template <typename T >
void
serializeParamValue(YAML::Emitter & out, const StandaloneParameter< T > & param)
template <ParameterType T>
void
serializeParamValue(YAML::Emitter & out, const Param< T > & param)
template <typename T >
T
fromYAML(const YAML::Node & node, std::type_identity< T > ={})
template <typename T >
T
fromYAML(const YAML::Node & node, std::type_identity< T > ={})
std::stringfromYAML(const YAML::Node & node, std::type_identity< std::string > )
FrequencyfromYAML(const YAML::Node & node, std::type_identity< Frequency > )
LatencyfromYAML(const YAML::Node & node, std::type_identity< Latency > )
SizefromYAML(const YAML::Node & node, std::type_identity< Size > )
BandwidthfromYAML(const YAML::Node & node, std::type_identity< Bandwidth > )
template <typename T >
T
fromString(const std::string & s, std::type_identity< T > ={})
Parse string to integer with tag-dispatched return type.
template <typename T >
T
fromString(const std::string & s, std::type_identity< T > ={})
Parse string to floating-point value with tag-dispatched return type.
std::stringfromString(const std::string & s, std::type_identity< std::string > )
FrequencyfromString(const std::string & s, std::type_identity< Frequency > )
LatencyfromString(const std::string & s, std::type_identity< Latency > )
SizefromString(const std::string & s, std::type_identity< Size > )
BandwidthfromString(const std::string & s, std::type_identity< Bandwidth > )
template <ParameterType T>
void
deserializeStandaloneParameter(const YAML::Node & node, StandaloneParameter< T > & param)
template <ParameterType T>
void
deserializeParameter(const YAML::Node & node, StandaloneParameter< T > & param)
template <typename T >
void
deserializeParamValue(const YAML::Node & node, const std::string & name, StandaloneParameter< T > & param)

Types Documentation

using Parameter

template <ParameterType T>
using chronon::params::Parameter = StandaloneParameter<T>;

Backward-compatible name for standalone, non-self-registering parameters. Use Param for ParameterSet members that must self-register.

Functions Documentation

function toYAML

template <typename T >
inline void toYAML(
YAML::Emitter & out,
const T & value
)

function toYAML

inline void toYAML(
YAML::Emitter & out,
const std::string & value
)

function toYAML

inline void toYAML(
YAML::Emitter & out,
bool value
)

function toYAML

inline void toYAML(
YAML::Emitter & out,
const Frequency & freq
)

function toYAML

inline void toYAML(
YAML::Emitter & out,
const Latency & lat
)

function toYAML

inline void toYAML(
YAML::Emitter & out,
const Size & size
)

function toYAML

inline void toYAML(
YAML::Emitter & out,
const Bandwidth & bw
)

function toString

template <typename T >
inline std::string toString(
T value
)

function toString

inline std::string toString(
bool value
)

function toString

inline std::string toString(
const std::string & value
)

function toString

inline std::string toString(
const Frequency & f
)

function toString

inline std::string toString(
const Latency & l
)

function toString

inline std::string toString(
const Size & s
)

function toString

inline std::string toString(
const Bandwidth & b
)

function serializeStandaloneParameter

template <ParameterType T>
void serializeStandaloneParameter(
YAML::Emitter & out,
const StandaloneParameter< T > & param
)

function serializeParameterSet

inline void serializeParameterSet(
YAML::Emitter & out,
const ParameterSet & params
)

function serializeParameter

template <ParameterType T>
void serializeParameter(
YAML::Emitter & out,
const StandaloneParameter< T > & param
)

function serializeParamValue

template <typename T >
inline void serializeParamValue(
YAML::Emitter & out,
const StandaloneParameter< T > & param
)

function serializeParamValue

template <ParameterType T>
inline void serializeParamValue(
YAML::Emitter & out,
const Param< T > & param
)

function fromYAML

template <typename T >
inline T fromYAML(
const YAML::Node & node,
std::type_identity< T > ={}
)

function fromYAML

template <typename T >
inline T fromYAML(
const YAML::Node & node,
std::type_identity< T > ={}
)

function fromYAML

inline std::string fromYAML(
const YAML::Node & node,
std::type_identity< std::string >
)

function fromYAML

inline Frequency fromYAML(
const YAML::Node & node,
std::type_identity< Frequency >
)

function fromYAML

inline Latency fromYAML(
const YAML::Node & node,
std::type_identity< Latency >
)

function fromYAML

inline Size fromYAML(
const YAML::Node & node,
std::type_identity< Size >
)

function fromYAML

inline Bandwidth fromYAML(
const YAML::Node & node,
std::type_identity< Bandwidth >
)

function fromString

template <typename T >
inline T fromString(
const std::string & s,
std::type_identity< T > ={}
)

Parse string to integer with tag-dispatched return type.

function fromString

template <typename T >
inline T fromString(
const std::string & s,
std::type_identity< T > ={}
)

Parse string to floating-point value with tag-dispatched return type.

function fromString

inline std::string fromString(
const std::string & s,
std::type_identity< std::string >
)

function fromString

inline Frequency fromString(
const std::string & s,
std::type_identity< Frequency >
)

function fromString

inline Latency fromString(
const std::string & s,
std::type_identity< Latency >
)

function fromString

inline Size fromString(
const std::string & s,
std::type_identity< Size >
)

function fromString

inline Bandwidth fromString(
const std::string & s,
std::type_identity< Bandwidth >
)

function deserializeStandaloneParameter

template <ParameterType T>
void deserializeStandaloneParameter(
const YAML::Node & node,
StandaloneParameter< T > & param
)

function deserializeParameter

template <ParameterType T>
void deserializeParameter(
const YAML::Node & node,
StandaloneParameter< T > & param
)

function deserializeParamValue

template <typename T >
inline void deserializeParamValue(
const YAML::Node & node,
const std::string & name,
StandaloneParameter< T > & param
)

Updated on 2026-05-26 at 05:42:32 +0000