|
const T & | get (void) const |
|
void | set (const T &v) |
|
void | set_and_notify (const T &v) |
|
bool | set_and_save (const T &v) |
|
| operator const T & () const |
|
AP_ParamV< T, PT > & | operator= (const T &v) |
|
| AP_Param (const struct Info *info) |
|
| AP_Param () |
|
void | copy_name_info (const struct AP_Param::Info *info, const struct GroupInfo *ginfo, const struct GroupNesting &group_nesting, uint8_t idx, char *buffer, size_t bufferSize, bool force_scalar=false) const |
|
void | copy_name_token (const ParamToken &token, char *buffer, size_t bufferSize, bool force_scalar=false) const |
|
void | notify () const |
|
bool | save (bool force_save=false) |
|
bool | load (void) |
|
void | set_float (float value, enum ap_var_type var_type) |
|
float | cast_to_float (enum ap_var_type type) const |
| cast a variable to a float given its type More...
|
|
bool | configured_in_defaults_file (void) const |
|
bool | configured_in_storage (void) const |
|
bool | configured (void) const |
|
|
enum | { CONVERT_FLAG_REVERSE =1,
CONVERT_FLAG_FORCE =2
} |
|
static bool | setup () |
|
static bool | initialised (void) |
|
static uint32_t | group_id (const struct GroupInfo *grpinfo, uint32_t base, uint8_t i, uint8_t shift) |
|
static AP_Param * | find (const char *name, enum ap_var_type *ptype) |
|
static bool | set_default_by_name (const char *name, float value) |
|
static bool | set_by_name (const char *name, float value) |
|
static bool | set_and_save_by_name (const char *name, float value) |
|
static AP_Param * | find_by_index (uint16_t idx, enum ap_var_type *ptype, ParamToken *token) |
|
static bool | find_key_by_pointer_group (const void *ptr, uint16_t vindex, const struct GroupInfo *group_info, ptrdiff_t offset, uint16_t &key) |
|
static bool | find_key_by_pointer (const void *ptr, uint16_t &key) |
|
static AP_Param * | find_object (const char *name) |
|
static bool | load_all (bool check_defaults_file=true) |
|
static void | reload_defaults_file (bool panic_on_error=true) |
|
static void | load_object_from_eeprom (const void *object_pointer, const struct GroupInfo *group_info) |
|
static void | set_value (enum ap_var_type type, void *ptr, float def_value) |
|
static void | setup_object_defaults (const void *object_pointer, const struct GroupInfo *group_info) |
|
static bool | set_object_value (const void *object_pointer, const struct GroupInfo *group_info, const char *name, float value) |
|
static void | setup_sketch_defaults (void) |
|
static bool | find_old_parameter (const struct ConversionInfo *info, AP_Param *value) |
|
static void | convert_old_parameters (const struct ConversionInfo *conversion_table, uint8_t table_size, uint8_t flags=0) |
|
static void | convert_old_parameter (const struct ConversionInfo *info, float scaler, uint8_t flags=0) |
|
static void | convert_parent_class (uint8_t param_key, void *object_pointer, const struct AP_Param::GroupInfo *group_info) |
|
static void | erase_all (void) |
|
static AP_Param * | first (ParamToken *token, enum ap_var_type *ptype) |
|
static AP_Param * | next (ParamToken *token, enum ap_var_type *ptype) |
|
static AP_Param * | next_scalar (ParamToken *token, enum ap_var_type *ptype) |
|
static bool | check_var_info (void) |
|
static uint16_t | count_parameters (void) |
|
static void | set_hide_disabled_groups (bool value) |
|
static void | set_frame_type_flags (uint16_t flags_to_set) |
|
static bool | check_frame_type (uint16_t flags) |
|
template<typename T, ap_var_type PT>
class AP_ParamV< T, PT >
Template class for non-scalar variables.
Objects of this type have a value, and can be treated in many ways as though they were the value.
- Template Parameters
-
T | The scalar type of the variable |
PT | AP_PARAM_* type |
Definition at line 739 of file AP_Param.h.