SMT-RAT  24.02
Toolbox for Strategic and Parallel Satisfiability-Modulo-Theories Solving
GBCalculationStatistics.h
Go to the documentation of this file.
1 /*
2  * File: GBCalculationStatistics.h
3  * Author: square
4  *
5  * Created on October 1, 2012, 3:10 PM
6  */
7 
8 #pragma once
9 
11 
12 #ifdef SMTRAT_DEVOPTION_Statistics
13 #include <vector>
14 #include <map>
15 #include <iostream>
16 
18 
19 #include <carl/groebner/gb-buchberger/BuchbergerStats.h>
20 
21 
22 namespace smtrat {
23 class GBCalculationStats : public Statistics
24 {
25  public:
26  static GBCalculationStats& getInstance(unsigned key);
27 
28  static void printAll(std::ostream& = std::cout);
29 
30  /**
31  * Override Statistics::collect
32  */
33  void collect();
34 
35  void print(std::ostream& os = std::cout);
36  void exportKeyValue(std::ostream& os = std::cout);
37  GBCalculationStats() : mBuchbergerStats(carl::BuchbergerStats::getInstance())
38  {}
39  protected:
40 
41  carl::BuchbergerStats* mBuchbergerStats;
42 
43  private:
44  static std::map<unsigned,GBCalculationStats*> instances;
45 };
46 
47 }
48 
49 #endif
50 
void print(std::ostream &stream, const FormulaDB &db, const FormulaID id, const std::size_t level)
Class to create the formulas for axioms.
carl::statistics::Statistics Statistics
Definition: Statistics.h:7