Class documentation of Concepts

Loading...
Searching...
No Matches
resultsTable.hh
1
6#ifndef resultsTable_hh
7#define resultsTable_hh
8
9#include <map>
10#include <string>
12#include "inputOutput.hh"
13
14namespace concepts {
15
16 // ********************************************************** ResultsTable **
17
23 class ResultsTable : public virtual OutputOperator {
24 public:
25 enum tableTypes { SCREEN, GNUPLOT, HTML };
29 template<enum tableTypes t>
31
33 enum mapTypes { DOUBLE, STRING, INT, BOOL };
34
38
40 void addMap(enum mapTypes type, const char* name,
41 const InOutParameters& holder);
42
43 template<enum tableTypes t>
44 void print(std::ostream& os) const;
45
46 template<enum tableTypes t>
47 void print(std::ostream& os, enum mapTypes typeL, const char* nameL) const;
48 protected:
49 virtual std::ostream& info(std::ostream& os) const;
50 private:
51 std::map<const char*, const std::map<int, double>*, ltstr> doubleMaps_;
52 std::map<const char*,
53 const std::map<int, std::string>*, ltstr> stringMaps_;
54 std::map<const char*, const std::map<int, int>*, ltstr> intMaps_;
55 std::map<const char*, const std::map<int, bool>*, ltstr> boolMaps_;
56 bool leader_;
57 enum mapTypes typeL_;
58 char* nameL_;
59 template<enum tableTypes t>
60 void headline_(std::ostream& os) const;
61 template<enum tableTypes t>
62 void tableline_(std::ostream& os, const int idx) const;
63 };
64
65} // namespace concepts
66
67#endif // resultsTable_hh
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
mapTypes
Types of maps in InOutParameters.
ResultsTable()
Constructor.
Set< F > makeSet(uint n, const F &first,...)
Definition set.hh:320