From 134160a5613733c875ba403abf7c30cf81cd76c4 Mon Sep 17 00:00:00 2001 From: AlexandreHiroyuki Date: Tue, 2 Jan 2024 19:22:50 -0300 Subject: [PATCH] style: :art: add missing methods to keywords.txt --- keywords.txt | 20 +++++++++++++++++--- src/DataTomeMvAvg.h | 4 ++-- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/keywords.txt b/keywords.txt index 6d65ede..e7bd8b1 100644 --- a/keywords.txt +++ b/keywords.txt @@ -7,9 +7,11 @@ ####################################### DataTomeMvAvg KEYWORD1 +DataTomeAnalysis KEYWORD1 ####################################### # Methods and Functions (KEYWORD2) +# DataTomeMvAvg ####################################### push KEYWORD2 @@ -21,10 +23,22 @@ back KEYWORD2 atIndex KEYWORD2 size KEYWORD2 +point_count KEYWORD2 resize KEYWORD2 clear KEYWORD2 -fill KEYWORD2 -create_partial KEYWORD2 -get_partial KEYWORD2 \ No newline at end of file +partial_create KEYWORD2 +partial_get KEYWORD2 +partial_size KEYWORD2 +partial_point_count KEYWORD2 + +####################################### +# Methods and Functions (KEYWORD2) +# DataTomeAnalysis +####################################### + +std KEYWORD2 +var KEYWORD2 +partial_var KEYWORD2 +partial_std KEYWORD2 \ No newline at end of file diff --git a/src/DataTomeMvAvg.h b/src/DataTomeMvAvg.h index 1a2a111..ab66a59 100644 --- a/src/DataTomeMvAvg.h +++ b/src/DataTomeMvAvg.h @@ -117,12 +117,12 @@ class DataTomeMvAvg { TypeOfArray at_index(size_t index) { return _array[index]; } - // Modify array - size_t size() { return _array_size; } size_t point_count() { return _average_counter; } + // Modify array + DataTomeMvAvg &resize(size_t new_size) { if (new_size == _array_size) return *this;