Class sh::actions::Predicate¶
-
class
sh::actions
::
Predicate
¶ Controls when and how an action is created in the action factory.
Subclassed by sh::actions::ByRegExpPredicate, sh::actions::DontResolveLinksPredicate, sh::actions::HideOnCurrentDirectoryLevelPredicate, sh::actions::HideOnSelectionLevelPredicate, sh::actions::KeyShortcutPredicate, sh::actions::OnDirectoriesPredicate, sh::actions::OnFilesPredicate, sh::actions::OnLinksPredicate, sh::actions::OnSingleEntrySelectionPredicate, sh::actions::PositionIndexPredicate
Public Functions
-
Predicate
()¶
-
void
prepare
(ActionInstantiation *instantiation)¶ Prepares the evaluation.
-
bool
evaluate
(ActionInstantiation *instantiation)¶ Evaluates if the predicate is solved.
If it returns
true
, the evaluation proceeds and eventually succeeds. Iffalse
, it stops at this place.
-
~Predicate
()¶
-