21 void setAverage(
int _interval, T f,
int _offset = 0) {
22 average =
new FunctionArgs<const ItemList &>::Function(f);
23 aInterval = _interval / interval;
26 Rrd(
int size,
int interval,
int fillInterval,
const std::string &name);
27 Rrd(
int size,
int interval,
int fillInterval);
28 Rrd(
int size,
const std::string &name);
31 uint64_t read(
DataArrayList *list, uint64_t from = 0, uint32_t size = 0, uint64_t *lastIndex =
nullptr);
32 void setFillInterval(
int interval);
33 uint32_t size() {
return dbSize; }
37 Item readFromArray(uint32_t);
39 void writeToArray(uint32_t,
const Item &);
41 void append(
const Item &data, uint64_t index = 0);
42 void save(
const std::string &fn = {});
46 FunctionConnectorProtected<Rrd>::Connector<> updated;
48 Thread *thread() {
return thread_; }
56 bool readOnly =
false;
59 AbstractFunction<const ItemList &> *average =
nullptr;
67 bool saveToFile(
const std::string &fn = {});