forked from gmgu/graph-analysis-tool
-
Notifications
You must be signed in to change notification settings - Fork 20
/
statanalyzer.h
39 lines (32 loc) · 943 Bytes
/
statanalyzer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef STATANALYZER_H
#define STATANALYZER_H
#include <memory>
#include <vector>
#include "stat.h"
/*
* Calculate stats that were added
*/
namespace snu {
class StatAnalyzer {
public:
StatAnalyzer(std::string _graph_name,
std::shared_ptr<Graph> _graph_shptr,
bool _file_output,
bool _display_time,
bool _verify);
bool run();
void addCommonStats(std::vector<CommonStat *> vec);
void addDirectedStats(std::vector<DirectedStat *> vec);
void addUndirectedStats(std::vector<UndirectedStat *> vec);
private:
std::vector<CommonStat *> common_stats;
std::vector<snu::DirectedStat *> directed_only_stats;
std::vector<snu::UndirectedStat *> undirected_only_stats;
std::string graph_name;
std::shared_ptr<Graph> graph_shptr;
bool file_output;
bool display_time;
bool verify;
};
} // namespace snu
#endif // STATANALYZER_H