MCPcopy Create free account
hub / github.com/Icinga/icinga2 / FilteredAddRow

Method FilteredAddRow

lib/livestatus/table.cpp:121–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121bool 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
138Value Table::ZeroAccessor(const Value&)
139{

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
ApplyMethod · 0.45

Tested by

no test coverage detected