chore(userspace/engine): fix indentations and use improve indexed_vector

Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
This commit is contained in:
Jason Dellaluce
2022-04-08 09:59:04 +00:00
committed by poiana
parent 47426fbe0d
commit 2934ef29b9
6 changed files with 118 additions and 98 deletions

View File

@@ -36,13 +36,15 @@ public:
\brief Callback for when a rule with a given index matches an event
*/
virtual void on_event(
indexed_vector<falco_rule>& rules, uint32_t index);
const indexed_vector<falco_rule>& rules,
uint32_t index);
/*!
\brief Formats the internal statistics into the out sring
*/
virtual void format_stats(
indexed_vector<falco_rule>& rules, std::string& out);
virtual void format(
const indexed_vector<falco_rule>& rules,
std::string& out);
private:
uint64_t m_total;