category
flags
ï
Implementation of persistent object flags.
logtalk_load(flags(loader))
static
Public predicatesï
get_flag_value/2
ï
Gets or tests the value of a flag.
static
get_flag_value(Flag,Value)
get_flag_value(+atom,?nonvar)
- zero_or_one
set_flag_value/2
ï
Sets the value of a flag.
static
set_flag_value(Flag,NewValue)
set_flag_value(+atom,@nonvar)
- one
set_flag_value/3
ï
Sets the value of a flag, returning the old value.
static
set_flag_value(Flag,OldValue,NewValue)
set_flag_value(+atom,?nonvar,@nonvar)
- one
reset_flags/0
ï
Resets all flags to their default values.
static
reset_flags
- one
reset_flags/1
ï
Resets all flags in a group to their default values.
static
reset_flags(Group)
reset_flags(+atom)
- one
flag_groups/1
ï
Returns a list of all flag groups.
static
flag_groups(Groups)
flag_groups(-list(atom))
- one
flag_group_chk/1
ï
Checks if a given atom is a flag group.
static
flag_group_chk(Group)
flag_group_chk(+atom)
- zero_or_one
print_flags/0
ï
Prints a listing of all flags.
static
print_flags
- one
print_flags/1
ï
Prints a listing of all flags in a group.
static
print_flags(Group)
print_flags(+atom)
- one
defined_flag/6
ï
Gets or test the existing (visible) flag definitions.
static
defined_flag(Flag,Group,Type,DefaultValue,Description,Access)
defined_flag(?atom,?atom,?nonvar,?nonvar,?atom,?atom)
- zero_or_more
built_in_flag/2
ï
True if the argument is a built-in flag type with the specified default value.
static
built_in_flag(Type,DefaultValue)
built_in_flag(?atom,?nonvar)
- zero_or_more
Protected predicatesï
unsafe_set_flag_value/2
ï
Sets the value of a flag without performing any validation checks.
static
unsafe_set_flag_value(Flag,NewValue)
unsafe_set_flag_value(+atom,@nonvar)
- one
define_flag/1
ï
Defines a new flag using default options.
static
define_flag(Flag)
define_flag(+atom)
- one
define_flag/2
ï
Defines a new flag using a given set of options (for example, [group(general), type(nonvar), default(true), description(Flag), access(read_write)]).
static
define_flag(Flag,Options)
define_flag(+atom,@list)
- one
Private predicatesï
defined_flag_/6
ï
Gets or test the existing flag definitions.
dynamic
defined_flag_(Flag,Group,Type,DefaultValue,Description,Access)
defined_flag_(?atom,?atom,?nonvar,?nonvar,?atom,?atom)
- zero_or_more
flag_value_/2
ï
Table of flag values.
dynamic
flag_value_(Flag,Value)
flag_value_(?atom,?nonvar)
- zero_or_more
validate/3
ï
static
validate_type/1
ï
static
is_validator/1
ï
static
Operatorsï
(none)