Lines Matching full:action
18 #include "action.hpp"
31 * Executes an action and negates its return value.
33 * Implements the "not" action in the JSON config file.
35 class NotAction : public Action
49 * @param action action to execute
51 explicit NotAction(std::unique_ptr<Action> action) : in NotAction() argument
52 action{std::move(action)} in NotAction()
56 * Executes the action specified in the constructor.
58 * Returns the opposite of the return value from the action. For example,
59 * if the action returned true, then false will be returned.
61 * Throws an exception if an error occurs and the action cannot be
64 * @param environment action execution environment
65 * @return negated return value from action executed
69 return !(action->execute(environment)); in execute()
73 * Returns the action to execute.
75 * @return action
77 const std::unique_ptr<Action>& getAction() const in getAction()
79 return action; in getAction()
83 * Returns a string description of this action.
85 * @return description of action
94 * Action to execute.
96 std::unique_ptr<Action> action; member in phosphor::power::regulators::NotAction