Lines Matching refs:mChoices
41 explicit RandomVariableRange(int value) : mChoices({value}) {} in RandomVariableRange()
42 RandomVariableRange(int lower, int upper) : mChoices(upper - lower + 1) { in RandomVariableRange()
43 std::iota(mChoices.begin(), mChoices.end(), lower); in RandomVariableRange()
45 explicit RandomVariableRange(const std::vector<int>& vec) : mChoices(vec) {} in RandomVariableRange()
46 explicit RandomVariableRange(const std::set<int>& st) : mChoices(st.begin(), st.end()) {} in RandomVariableRange()
50 bool empty() const { return mChoices.empty(); } in empty()
52 return std::binary_search(mChoices.begin(), mChoices.end(), value); in has()
54 size_t size() const { return mChoices.size(); } in size()
55 int min() const { return *mChoices.begin(); } in min()
56 int max() const { return *mChoices.rbegin(); } in max()
57 const std::vector<int>& getChoices() const { return mChoices; } in getChoices()
70 std::vector<int> mChoices;