44 , myIsStrict(is_strict)
51 return (myType != eInvalid) && mySet.empty();
58 if (myType == eInvalid)
60 else if (mySet.size() == 0)
63 return mySet.contains(
id);
95 for (
int i = start; i <=
end; i++)
109 if (myType != eSingle || !mySet.empty())
128 bool strict()
const {
return myIsStrict; }
exint PDG_WorkItemID
Type defs for unique work item IDs.
void setRange(PDG_WorkItemID start, PDG_WorkItemID end)
Configures the filter to cook an inclusive range of work items.
void eraseFromSet(PDG_WorkItemID id)
An inclusive range of item ids.
Type
Storage method the filter uses to keep track of ids.
void setSet(const PDG_WorkItemIDSet &set)
Configures the filter to cook a set of items.
void setAll()
Configures the filter so that it specifies all static items.
bool isAll() const
Returns true if the filter is set to cook all static items.
PDG_Filter(bool is_strict)
Type type() const
Returns the filter cook type.
void appendToSet(PDG_WorkItemID id)
Appends an id to the set of static items to cook.
bool apply(PDG_WorkItemID id) const
void setSingle(PDG_WorkItemID single)
Configures the filter to cook a single static item.
void setNone()
Configures the filter to cook nothing.
PDG_Filter()
Constructs a new filter, which is all by default.
const PDG_WorkItemIDSet & set() const
Returns the filter id set.
A set of aribitrary ids, possibly disjoint.
bool strict() const
Returns true if the filter is strict.