MINT2
HyperName.h
Go to the documentation of this file.
1 
12 #ifndef HYPERNAME_HH
13 #define HYPERNAME_HH
14 
15 // HyperPlot includes
16 #include "Mint/MessageService.h"
17 
18 // Root includes
19 #include "TString.h"
20 
21 // std includes
22 
23 
24 class HyperName {
25 
26  std::vector<TString> _names;
27  std::vector<TString> _units;
29  public:
30 
31  HyperName(int dim);
32 
33  HyperName(std::vector<TString> names);
34 
35  HyperName(TString name0);
36  HyperName(TString name0, TString name1);
37  HyperName(TString name0, TString name1, TString name2);
38  HyperName(TString name0, TString name1, TString name2, TString name3);
39  HyperName(TString name0, TString name1, TString name2, TString name3, TString name4);
40 
41  void setUnits(TString units);
42  void setUnits(TString units, int dim);
43 
44  TString getAxisString(int dim);
45 
46  int getDimension() const;
47 
48  HyperName slice(std::vector<int> sliceDims);
49 
50  const TString& at(int dim) const{return _names.at(dim);}
51  TString& at(int dim) {return _names.at(dim);}
53  ~HyperName();
54 
55 };
56 
57 
58 #endif
59 
std::vector< TString > _units
Definition: HyperName.h:27
TString getAxisString(int dim)
Definition: HyperName.cpp:96
void setUnits(TString units)
Definition: HyperName.cpp:78
int getDimension() const
Definition: HyperName.cpp:107
HyperName slice(std::vector< int > sliceDims)
Definition: HyperName.cpp:114
std::vector< TString > _names
Definition: HyperName.h:26
const TString & at(int dim) const
Definition: HyperName.h:50
HyperName(int dim)
Definition: HyperName.cpp:5
TString & at(int dim)
Definition: HyperName.h:51