Public Member Functions | Public Attributes | Private Member Functions | List of all members
VarDict Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-11-28/SliceLID/var_dict/VarDict.h"

Public Member Functions

void pprint () const
 

Public Attributes

std::unordered_map< std::string, double > scalarVarMap
 
std::unordered_map< std::string, std::vector< double > > vectorVarMap
 

Private Member Functions

void pprintVectorVars () const
 
void pprintScalarVars () const
 

Detailed Description

Definition at line 7 of file VarDict.h.

Member Function Documentation

void VarDict::pprint ( ) const

Definition at line 48 of file VarDict.cxx.

References om::cout, allTimeWatchdog::endl, pprintScalarVars(), and pprintVectorVars().

49 {
50  std::cout << "VarDict {" << std::endl;
53  std::cout << "}" << std::endl;
54 }
void pprintVectorVars() const
Definition: VarDict.cxx:32
void pprintScalarVars() const
Definition: VarDict.cxx:19
OStream cout
Definition: OStream.cxx:6
void VarDict::pprintScalarVars ( ) const
private

Definition at line 19 of file VarDict.cxx.

References om::cout, allTimeWatchdog::endl, get_sorted_keys(), findDuplicateFiles::key, and scalarVarMap.

Referenced by pprint().

20 {
21  std::cout << "\tScalar Vars: {" << std::endl;
22 
23  for (auto &key : get_sorted_keys(scalarVarMap))
24  {
25  std::cout << "\t\t" << key
26  << "\t : \t" << scalarVarMap.at(key)
27  << std::endl;
28  }
29  std::cout << "\t}" << std::endl;
30 }
std::vector< std::string > get_sorted_keys(const std::unordered_map< std::string, T > &varMap)
Definition: VarDict.cxx:6
OStream cout
Definition: OStream.cxx:6
std::unordered_map< std::string, double > scalarVarMap
Definition: VarDict.h:10
void VarDict::pprintVectorVars ( ) const
private

Definition at line 32 of file VarDict.cxx.

References om::cout, allTimeWatchdog::endl, get_sorted_keys(), findDuplicateFiles::key, registry_explorer::v, and vectorVarMap.

Referenced by pprint().

33 {
34  std::cout << "\tVector Vars: {" << std::endl;
35 
36  for (auto &key : get_sorted_keys(vectorVarMap))
37  {
38  std::cout << "\t\t" << key << "\t : \t\"";
39  for (auto &v : vectorVarMap.at(key)) {
40  std::cout << v << ',';
41  }
42  std::cout << '"' << std::endl;
43  }
44 
45  std::cout << "\t}" << std::endl;
46 }
std::unordered_map< std::string, std::vector< double > > vectorVarMap
Definition: VarDict.h:11
std::vector< std::string > get_sorted_keys(const std::unordered_map< std::string, T > &varMap)
Definition: VarDict.cxx:6
OStream cout
Definition: OStream.cxx:6

Member Data Documentation

std::unordered_map<std::string, double> VarDict::scalarVarMap
std::unordered_map<std::string, std::vector<double> > VarDict::vectorVarMap

The documentation for this class was generated from the following files: