19 template <
typename ObjType>
24 "Returns true if object is specified in "
25 "given selection (default MASTER). "
26 "Ex: 'selected_in(myselection.txt)'") {}
30 "Returns true if configuration is specified "
31 "in given selection (default MASTER). "
32 "Ex: 'selected_in(myselection.txt)'"),
37 "Returns true if configuration is specified "
38 "in given selection (default MASTER). "
39 "Ex: 'selected_in(myselection.txt)'"),
44 std::unique_ptr<Selected>
clone()
const;
47 bool evaluate(
const ObjType &_obj)
const override;
51 bool init(
const ObjType &_tmplt)
const override;
53 std::string
short_header(
const ObjType &_config)
const override;
55 bool parse_args(
const std::string &args)
override;
Returns true if configuration is specified in given selection (default: MASTER)
bool parse_args(const std::string &args) override
std::string m_selection_name
bool init(const ObjType &_tmplt) const override
std::string short_header(const ObjType &_config) const override
notstd::cloneable_ptr< Selection< ObjType > > m_selection
std::unique_ptr< Selected > clone() const
Selected(const Selection< ObjType > &_selection)
Selected * _clone() const override
Clone.
bool evaluate(const ObjType &_obj) const override
True if obj is in Selection and it is selected.
Selected(std::unique_ptr< Selection< ObjType > > _selection)
A 'cloneable_ptr' can be used in place of 'unique_ptr'.
Non-std smart pointer classes and functions.