Commit b2f1d883 authored by Anonymous's avatar Anonymous

Debug json output for multisets

parent 4f3d0508
......@@ -39,9 +39,9 @@ MSetOcc::txt (const std::vector<std::string>& events, bool empty) const {
}
std::string
MSetOcc::json (const std::vector<std::string>& events, const bool& chronicle) const {
MSetOcc::json (const std::vector<std::string>& events, bool empty) const {
if (!chronicle) {
if (empty) {
std::stringstream os;
int nb_e = (int) _elements.size();
......
......@@ -6,6 +6,7 @@
#include <sstream>
#include <cmath>
#include <iostream>
#include <utility>
#include "Chronicle.hh"
#include "Rule.hh"
......@@ -23,14 +24,14 @@ class MSetOcc {
public:
MSetOcc(
const std::vector<int>& e,
const std::vector<std::vector<std::pair<int,unsigned int>>>& occ
std::vector<int> e,
std::vector<std::vector<std::pair<int, unsigned int>>> occ
):
frequency(0),
ofrequency(-1),
classe(0),
_elements(e),
_occurrences(occ)
_elements(std::move(e)),
_occurrences(std::move(occ))
{}
std::string
......@@ -39,7 +40,7 @@ class MSetOcc {
std::string
json (
const std::vector<std::string>& events,
const bool& chronicle
bool empty
) const;
const std::vector<int>&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment