|
| | SettingGroup (SettingChangeController *controller=nullptr) |
| | ~SettingGroup ()=default |
| template<class Assignee, class Value> |
| void | controlAssignment (const Messaging::Char *description, Assignee &assignee, Value value) const |
| template<class Changeable> |
| void | controlChange (const Messaging::Char *description, void(Changeable::*change)(), Changeable &changeable) const |
| template<class Change, class Changeable, class Arg> |
| void | controlChange (const Messaging::Char *description, Change change, Changeable &changeable, const Arg &arg) const |
| template<class Change, class Changeable, class Arg1, class Arg2> |
| void | controlChange (const Messaging::Char *description, Change change, Changeable &changeable, const Arg1 &arg1, const Arg2 &arg2) const |
The group does not own its controller. A supplied controller must outlive the group and every setting that refers to the group. Groups are non-copyable.
Definition at line 111 of file SettingGroup.h.
template<class Change, class Changeable, class Arg1, class Arg2>
| void controlChange |
( |
const Messaging::Char * | description, |
|
|
Change | change, |
|
|
Changeable & | changeable, |
|
|
const Arg1 & | arg1, |
|
|
const Arg2 & | arg2 ) const |
|
inline |
Invokes a two-argument member function as a guarded change.
- Template Parameters
-
| Change | Type of the member-function pointer. |
| Changeable | Type of the object being changed. |
| Arg1 | Type of the first argument passed to the member function. |
| Arg2 | Type of the second argument passed to the member function. |
- Parameters
-
| description | Human-readable change description forwarded to the controller; may be null. |
| change | Member function to invoke. |
| changeable | Object on which to invoke the member function. |
| arg1 | First argument passed to the member function. |
| arg2 | Second argument passed to the member function. |
- Exceptions
-
| Any | exception thrown while starting the change or invoking the member function. |
- Note
- A successfully started change is completed even if the member function throws.
Definition at line 186 of file SettingGroup.h.