Turi Create  4.0
turi::globals::register_global< int64_t > Struct Template Reference

#include <core/globals/globals.hpp>

Detailed Description

template<>
struct turi::globals::register_global< int64_t >

Registers an integral point global value.

Registers an integral point global value.

This should not be used directly. Use REGISTER_GLOBAL or REGISTER_GLOBAL_WITH_CHECKS

Parameters
Thename of the value. TURI_{name} will be the environment variable which modifies this value. By convention, this should be in all caps
valueA reference to the value. Value should be initialized the the default values.
runtime_modifiableWhether this can be set only by environment variables or at runtime.
value_checkA callback function which checks the value of the value. This should be a simple lambda. (preferable +[](double) {...}) and should not capture anything. If the lambda returns true, the value changes are accepted. Defaults to nullptr in which case all value changes will be accepted.

Definition at line 54 of file globals.hpp.


The documentation for this struct was generated from the following file: