| 119 | } |
| 120 | |
| 121 | bool Table::FilteredAddRow(std::vector<LivestatusRowValue>& rs, const Filter::Ptr& filter, int limit, const Value& row, LivestatusGroupByType groupByType, const Object::Ptr& groupByObject) |
| 122 | { |
| 123 | if (limit != -1 && static_cast<int>(rs.size()) == limit) |
| 124 | return false; |
| 125 | |
| 126 | if (!filter || filter->Apply(this, row)) { |
| 127 | LivestatusRowValue rval; |
| 128 | rval.Row = row; |
| 129 | rval.GroupByType = groupByType; |
| 130 | rval.GroupByObject = groupByObject; |
| 131 | |
| 132 | rs.emplace_back(std::move(rval)); |
| 133 | } |
| 134 | |
| 135 | return true; |
| 136 | } |
| 137 | |
| 138 | Value Table::ZeroAccessor(const Value&) |
| 139 | { |