66 auto size() const ->
size_t 76 virtual auto operator[](
size_t)
const->std::vector<
size_t> = 0;
81 auto at(
size_t index)
const -> std::vector<size_t>
83 if (index > this->
size())
84 throw std::out_of_range(
"index number overs number of cases.");
92 auto n() const ->
size_t 100 auto r() const ->
size_t 117 std::vector<std::vector<size_t>> matrix(size_, std::vector<std::size_t>(r_, 0));
119 for (
size_t i = 0; i <
size_; i++)
120 matrix[i] =
operator[](i);
auto size() const -> size_t
Get size of all cases.
size_t size_
Size, the number of all cases.
size_t r_
R, size of elements of each case.
size_t n_
N, size of the candidates.
virtual auto operator[](size_t) const -> std::vector< size_t >=0
Get x'th case.
auto r() const -> size_t
Get size of the R.
auto toMatrix() const -> std::vector< std::vector< size_t >>
Create a matrix containing all cases.
auto at(size_t index) const -> std::vector< size_t >
CaseGenerator(size_t n, size_t r)
Construct from size of N and R.
auto n() const -> size_t
Get size of the N.