Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
DataMap Class Reference

#include <DataMap.h>

Classes

struct  MapEntry
 
struct  MapEntry< std::vector< T > >
 

Public Types

using Name = std::string
 
using String = std::string
 
using StringMap = std::map< Name, String >
 
using IntVector = std::vector< int >
 
using IntMap = std::map< Name, int >
 
using IntVectorMap = std::map< Name, IntVector >
 
using Float = float
 
using FloatVector = std::vector< float >
 
using FloatMap = std::map< Name, Float >
 
using FloatVectorMap = std::map< Name, FloatVector >
 
using HistVector = std::vector< TH1 * >
 
using HistMap = std::map< Name, TH1 * >
 
using HistVectorMap = std::map< Name, HistVector >
 
using GraphPtr = std::shared_ptr< TGraph >
 
using GraphMap = std::map< Name, GraphPtr >
 
using SharedHistPtr = std::shared_ptr< TH1 >
 
using SharedHistVector = std::vector< SharedHistPtr >
 

Public Member Functions

 DataMap (int stat=0)
 
 ~DataMap ()
 
DataMapsetStatus (int stat)
 
void setInt (Name name, int val)
 
void setIntVector (Name name, const IntVector &val)
 
void setFloat (Name name, float val)
 
void setFloatVector (Name name, const FloatVector &val)
 
void setString (Name name, String val)
 
void setHist (Name name, TH1 *ph, bool own=false)
 
void setHist (TH1 *ph, bool own=false)
 
void setHist (std::shared_ptr< TH1 > ph)
 
void setHistVector (Name name, const HistVector &hsts, bool own=false)
 
void setHistVector (Name name, const SharedHistVector &hsts)
 
void setGraph (Name name, TGraph *pg)
 
void setGraph (TGraph *pg)
 
void extend (const DataMap &rhs)
 
DataMapoperator+= (const DataMap &rhs)
 
int status () const
 
 operator int () const
 
 operator bool () const
 
bool haveInt (Name name) const
 
bool haveIntVector (Name name) const
 
bool haveFloat (Name name) const
 
bool haveFloatVector (Name name) const
 
bool haveString (Name name) const
 
bool haveHist (Name name) const
 
bool haveHistVector (Name name) const
 
bool haveGraph (Name name) const
 
int getInt (Name name, int def=0) const
 
const IntVectorgetIntVector (Name name) const
 
Float getFloat (Name name, Float def=0.0) const
 
const FloatVectorgetFloatVector (Name name) const
 
String getString (Name name, String def="") const
 
TH1 * getHist (Name name, TH1 *def=nullptr) const
 
const HistVectorgetHistVector (Name name) const
 
TGraph * getGraph (Name name) const
 
const IntMapgetIntMap () const
 
const IntVectorMapgetIntVectorMap () const
 
const FloatMapgetFloatMap () const
 
const FloatVectorMapgetFloatVectorMap () const
 
const StringMapgetStringMap () const
 
const HistMapgetHistMap () const
 
const HistVectorMapgetHistVectorMap () const
 
const GraphMapgetGraphMap () const
 
HistVector getHists () const
 
void print (std::ostream *pout) const
 
void print (std::string prefix="", std::ostream *pout=&std::cout) const
 

Static Public Member Functions

static int dbg (int setDbg=-1)
 

Private Member Functions

template<typename T >
bool maphas (const std::map< Name, T > &vals, Name name) const
 
template<typename T >
mapget (const std::map< Name, T > &vals, Name name, T def) const
 
template<typename T >
const T & mapgetobj (const std::map< Name, T > &vals, Name name) const
 
template<typename T >
void mapextend (std::map< Name, T > &lhs, const std::map< Name, T > &rhs)
 

Private Attributes

int m_stat
 
IntMap m_ints
 
IntVectorMap m_intvecs
 
FloatMap m_flts
 
FloatVectorMap m_fltvecs
 
StringMap m_strs
 
HistMap m_hsts
 
HistVectorMap m_hstvecs
 
SharedHistVector m_sharedHsts
 
GraphMap m_grfs
 

Detailed Description

Definition at line 43 of file DataMap.h.

Member Typedef Documentation

using DataMap::Float = float

Definition at line 53 of file DataMap.h.

using DataMap::FloatMap = std::map<Name,Float>

Definition at line 55 of file DataMap.h.

Definition at line 54 of file DataMap.h.

Definition at line 56 of file DataMap.h.

using DataMap::GraphMap = std::map<Name,GraphPtr>

Definition at line 61 of file DataMap.h.

using DataMap::GraphPtr = std::shared_ptr<TGraph>

Definition at line 60 of file DataMap.h.

using DataMap::HistMap = std::map<Name,TH1*>

Definition at line 58 of file DataMap.h.

Definition at line 57 of file DataMap.h.

Definition at line 59 of file DataMap.h.

using DataMap::IntMap = std::map<Name,int>

Definition at line 51 of file DataMap.h.

Definition at line 50 of file DataMap.h.

Definition at line 52 of file DataMap.h.

Definition at line 47 of file DataMap.h.

using DataMap::SharedHistPtr = std::shared_ptr<TH1>

Definition at line 62 of file DataMap.h.

Definition at line 63 of file DataMap.h.

Definition at line 48 of file DataMap.h.

using DataMap::StringMap = std::map<Name, String>

Definition at line 49 of file DataMap.h.

Constructor & Destructor Documentation

DataMap::DataMap ( int  stat = 0)
inlineexplicit

Definition at line 114 of file DataMap.h.

114 : m_stat(stat) { }
int m_stat
Definition: DataMap.h:332
DataMap::~DataMap ( )
inline

Definition at line 117 of file DataMap.h.

117  {
118  const std::string myname = "DataMap::dtor: ";
119  //std::cout << myname << "@" << this << std::endl;
120  }
std::string string
Definition: nybbler.cc:12

Member Function Documentation

static int DataMap::dbg ( int  setDbg = -1)
inlinestatic

Definition at line 71 of file DataMap.h.

71  {
72  static int val = 0;
73  if ( setDbg >= 0 ) {
74  val = setDbg;
75  }
76  return val;
77  }
void DataMap::extend ( const DataMap rhs)
inline

Definition at line 186 of file DataMap.h.

186  {
187  m_stat += rhs.status();
188  mapextend<int>(m_ints, rhs.m_ints);
189  mapextend<IntVector>(m_intvecs, rhs.m_intvecs);
190  mapextend<Float>(m_flts, rhs.m_flts);
191  mapextend<FloatVector>(m_fltvecs, rhs.m_fltvecs);
192  mapextend<String>(m_strs, rhs.m_strs);
193  mapextend<TH1*>(m_hsts, rhs.m_hsts);
194  mapextend<HistVector>(m_hstvecs, rhs.m_hstvecs);
195  m_sharedHsts.insert(m_sharedHsts.end(), rhs.m_sharedHsts.begin(), rhs.m_sharedHsts.end());
196  mapextend<GraphPtr>(m_grfs, rhs.m_grfs);
197  }
IntMap m_ints
Definition: DataMap.h:333
StringMap m_strs
Definition: DataMap.h:337
int status() const
Definition: DataMap.h:202
HistVectorMap m_hstvecs
Definition: DataMap.h:339
GraphMap m_grfs
Definition: DataMap.h:341
FloatMap m_flts
Definition: DataMap.h:335
int m_stat
Definition: DataMap.h:332
HistMap m_hsts
Definition: DataMap.h:338
SharedHistVector m_sharedHsts
Definition: DataMap.h:340
FloatVectorMap m_fltvecs
Definition: DataMap.h:336
IntVectorMap m_intvecs
Definition: DataMap.h:334
Float DataMap::getFloat ( Name  name,
Float  def = 0.0 
) const
inline

Definition at line 220 of file DataMap.h.

220 { return mapget<Float>(m_flts, name, def); }
static QCString name
Definition: declinfo.cpp:673
FloatMap m_flts
Definition: DataMap.h:335
const FloatMap& DataMap::getFloatMap ( ) const
inline

Definition at line 230 of file DataMap.h.

230 { return m_flts; }
FloatMap m_flts
Definition: DataMap.h:335
const FloatVector& DataMap::getFloatVector ( Name  name) const
inline

Definition at line 221 of file DataMap.h.

221 { return mapgetobj<FloatVector>(m_fltvecs, name); }
static QCString name
Definition: declinfo.cpp:673
FloatVectorMap m_fltvecs
Definition: DataMap.h:336
const FloatVectorMap& DataMap::getFloatVectorMap ( ) const
inline

Definition at line 231 of file DataMap.h.

231 { return m_fltvecs; }
FloatVectorMap m_fltvecs
Definition: DataMap.h:336
TGraph* DataMap::getGraph ( Name  name) const
inline

Definition at line 225 of file DataMap.h.

225 { return mapgetobj<GraphPtr>(m_grfs, name).get(); }
static QCString name
Definition: declinfo.cpp:673
GraphMap m_grfs
Definition: DataMap.h:341
const GraphMap& DataMap::getGraphMap ( ) const
inline

Definition at line 235 of file DataMap.h.

235 { return m_grfs; }
GraphMap m_grfs
Definition: DataMap.h:341
TH1* DataMap::getHist ( Name  name,
TH1 *  def = nullptr 
) const
inline

Definition at line 223 of file DataMap.h.

223 { return mapget<TH1*>(m_hsts, name, def); }
static QCString name
Definition: declinfo.cpp:673
HistMap m_hsts
Definition: DataMap.h:338
const HistMap& DataMap::getHistMap ( ) const
inline

Definition at line 233 of file DataMap.h.

233 { return m_hsts; }
HistMap m_hsts
Definition: DataMap.h:338
HistVector DataMap::getHists ( ) const
inline

Definition at line 238 of file DataMap.h.

238  {
239  HistVector hsts;
240  for ( HistMap::value_type ihst : m_hsts ) hsts.push_back(ihst.second);
241  return hsts;
242  }
HistMap m_hsts
Definition: DataMap.h:338
std::vector< TH1 * > HistVector
Definition: DataMap.h:57
const HistVector& DataMap::getHistVector ( Name  name) const
inline

Definition at line 224 of file DataMap.h.

224 { return mapgetobj<HistVector>(m_hstvecs, name); }
static QCString name
Definition: declinfo.cpp:673
HistVectorMap m_hstvecs
Definition: DataMap.h:339
const HistVectorMap& DataMap::getHistVectorMap ( ) const
inline

Definition at line 234 of file DataMap.h.

234 { return m_hstvecs; }
HistVectorMap m_hstvecs
Definition: DataMap.h:339
int DataMap::getInt ( Name  name,
int  def = 0 
) const
inline

Definition at line 218 of file DataMap.h.

218 { return mapget<int>(m_ints, name, def); }
static QCString name
Definition: declinfo.cpp:673
IntMap m_ints
Definition: DataMap.h:333
const IntMap& DataMap::getIntMap ( ) const
inline

Definition at line 228 of file DataMap.h.

228 { return m_ints; }
IntMap m_ints
Definition: DataMap.h:333
const IntVector& DataMap::getIntVector ( Name  name) const
inline

Definition at line 219 of file DataMap.h.

219 { return mapgetobj<IntVector>(m_intvecs, name); }
static QCString name
Definition: declinfo.cpp:673
IntVectorMap m_intvecs
Definition: DataMap.h:334
const IntVectorMap& DataMap::getIntVectorMap ( ) const
inline

Definition at line 229 of file DataMap.h.

229 { return m_intvecs; }
IntVectorMap m_intvecs
Definition: DataMap.h:334
String DataMap::getString ( Name  name,
String  def = "" 
) const
inline

Definition at line 222 of file DataMap.h.

222 { return mapget<String>(m_strs, name, def); }
static QCString name
Definition: declinfo.cpp:673
StringMap m_strs
Definition: DataMap.h:337
const StringMap& DataMap::getStringMap ( ) const
inline

Definition at line 232 of file DataMap.h.

232 { return m_strs; }
StringMap m_strs
Definition: DataMap.h:337
bool DataMap::haveFloat ( Name  name) const
inline

Definition at line 209 of file DataMap.h.

209 { return maphas<Float>(m_flts, name); }
static QCString name
Definition: declinfo.cpp:673
FloatMap m_flts
Definition: DataMap.h:335
bool DataMap::haveFloatVector ( Name  name) const
inline

Definition at line 210 of file DataMap.h.

210 { return maphas<FloatVector>(m_fltvecs, name); }
static QCString name
Definition: declinfo.cpp:673
FloatVectorMap m_fltvecs
Definition: DataMap.h:336
bool DataMap::haveGraph ( Name  name) const
inline

Definition at line 214 of file DataMap.h.

214 { return maphas<GraphPtr>(m_grfs, name); }
static QCString name
Definition: declinfo.cpp:673
GraphMap m_grfs
Definition: DataMap.h:341
bool DataMap::haveHist ( Name  name) const
inline

Definition at line 212 of file DataMap.h.

212 { return maphas<TH1*>(m_hsts, name); }
static QCString name
Definition: declinfo.cpp:673
HistMap m_hsts
Definition: DataMap.h:338
bool DataMap::haveHistVector ( Name  name) const
inline

Definition at line 213 of file DataMap.h.

213 { return maphas<HistVector>(m_hstvecs, name); }
static QCString name
Definition: declinfo.cpp:673
HistVectorMap m_hstvecs
Definition: DataMap.h:339
bool DataMap::haveInt ( Name  name) const
inline

Definition at line 207 of file DataMap.h.

207 { return maphas<int>(m_ints, name); }
static QCString name
Definition: declinfo.cpp:673
IntMap m_ints
Definition: DataMap.h:333
bool DataMap::haveIntVector ( Name  name) const
inline

Definition at line 208 of file DataMap.h.

208 { return maphas<IntVector>(m_intvecs, name); }
static QCString name
Definition: declinfo.cpp:673
IntVectorMap m_intvecs
Definition: DataMap.h:334
bool DataMap::haveString ( Name  name) const
inline

Definition at line 211 of file DataMap.h.

211 { return maphas<String>(m_strs, name); }
static QCString name
Definition: declinfo.cpp:673
StringMap m_strs
Definition: DataMap.h:337
template<typename T >
void DataMap::mapextend ( std::map< Name, T > &  lhs,
const std::map< Name, T > &  rhs 
)
inlineprivate

Definition at line 381 of file DataMap.h.

381  {
382  for ( typename std::map<Name,T>::value_type ient : rhs ) {
383  Name key = ient.first;
384  T val = ient.second;
385  lhs[key] = val;
386  }
387  }
ChannelGroupService::Name Name
def key(type, name=None)
Definition: graph.py:13
template<typename T >
T DataMap::mapget ( const std::map< Name, T > &  vals,
Name  name,
def 
) const
inlineprivate

Definition at line 352 of file DataMap.h.

352  {
353  const std::string myname = "DataMap::mapget: ";
354  typename std::map<Name,T>::const_iterator ival = vals.find(name);
355  if ( ival == vals.end() ) {
356  if ( dbg() ) std::cout << myname << "Unknown entry: " << name << std::endl;
357  return def;
358  }
359  //if ( dbg() == 2 ) std::cout << myname << ient->first << std::endl;
360  if ( dbg() == 2 ) std::cout << myname << MapEntry<T>(ival).toString() << std::endl;
361  return ival->second;
362  }
static QCString name
Definition: declinfo.cpp:673
std::string string
Definition: nybbler.cc:12
intermediate_table::const_iterator const_iterator
static int dbg(int setDbg=-1)
Definition: DataMap.h:71
QTextStream & endl(QTextStream &s)
template<typename T >
const T& DataMap::mapgetobj ( const std::map< Name, T > &  vals,
Name  name 
) const
inlineprivate

Definition at line 366 of file DataMap.h.

366  {
367  const std::string myname = "DataMap::mapgetobj: ";
368  static T def;
369  typename std::map<Name,T>::const_iterator ival = vals.find(name);
370  if ( ival == vals.end() ) {
371  if ( dbg() ) std::cout << myname << "Unknown entry: " << name << std::endl;
372  return def;
373  }
374  //if ( dbg() == 2 ) std::cout << myname << ient->first << std::endl;
375  if ( dbg() == 2 ) std::cout << myname << MapEntry<T>(ival).toString() << std::endl;
376  return ival->second;
377  }
static QCString name
Definition: declinfo.cpp:673
std::string string
Definition: nybbler.cc:12
intermediate_table::const_iterator const_iterator
static int dbg(int setDbg=-1)
Definition: DataMap.h:71
QTextStream & endl(QTextStream &s)
template<typename T >
bool DataMap::maphas ( const std::map< Name, T > &  vals,
Name  name 
) const
inlineprivate

Definition at line 345 of file DataMap.h.

345  {
346  typename std::map<Name,T>::const_iterator ival = vals.find(name);
347  return ival != vals.end();
348  }
static QCString name
Definition: declinfo.cpp:673
intermediate_table::const_iterator const_iterator
DataMap::operator bool ( ) const
inlineexplicit

Definition at line 204 of file DataMap.h.

204 { return m_stat; }
int m_stat
Definition: DataMap.h:332
DataMap::operator int ( ) const
inline

Definition at line 203 of file DataMap.h.

203 { return m_stat; }
int m_stat
Definition: DataMap.h:332
DataMap& DataMap::operator+= ( const DataMap rhs)
inline

Definition at line 198 of file DataMap.h.

198 { extend(rhs); return *this; }
void extend(const DataMap &rhs)
Definition: DataMap.h:186
void DataMap::print ( std::ostream *  pout) const
inline

Definition at line 245 of file DataMap.h.

245  {
246  print("", pout);
247  }
void print(std::ostream *pout) const
Definition: DataMap.h:245
void DataMap::print ( std::string  prefix = "",
std::ostream *  pout = &std::cout 
) const
inline

Definition at line 248 of file DataMap.h.

248  {
249  if ( pout == nullptr ) return;
250  std::ostream& sout = *pout;
251  using std::endl;
252  sout << prefix << "Status: " << status() << endl;
253  if ( m_ints.size() ) {
254  sout << prefix << "Integers:" << endl;
255  for ( typename IntMap::value_type ient : m_ints ) {
256  sout << prefix << " " << ient.first << ": " << ient.second << endl;
257  }
258  }
259  if ( m_intvecs.size() ) {
260  sout << prefix << "Int vectors:" << endl;
261  unsigned int maxval = 20;
262  for ( typename IntVectorMap::value_type ient : m_intvecs ) {
263  unsigned nval = ient.second.size();
264  sout << prefix << " " << ient.first << "[" << nval << "]:";
265  for ( unsigned int ival=0; ival<nval; ++ival ) {
266  if ( ival ) sout << ",";
267  sout << " " << ient.second[ival];
268  if ( ival > maxval ) {
269  sout << ", ...";
270  break;
271  }
272  }
273  sout << endl;
274  }
275  }
276  if ( m_flts.size() ) {
277  sout << prefix << "Floats:" << endl;
278  for ( typename FloatMap::value_type ient : m_flts ) {
279  sout << prefix << " " << ient.first << ": " << ient.second << endl;
280  }
281  }
282  if ( m_fltvecs.size() ) {
283  sout << prefix << "Float vectors:" << endl;
284  unsigned int maxval = 20;
285  for ( typename FloatVectorMap::value_type ient : m_fltvecs ) {
286  unsigned nval = ient.second.size();
287  sout << prefix << " " << ient.first << "[" << nval << "]:";
288  for ( unsigned int ival=0; ival<nval; ++ival ) {
289  if ( ival ) sout << ",";
290  sout << " " << ient.second[ival];
291  if ( ival > maxval ) {
292  sout << ", ...";
293  break;
294  }
295  }
296  sout << endl;
297  }
298  }
299  if ( m_strs.size() ) {
300  sout << prefix << "Strings:" << endl;
301  for ( typename StringMap::value_type ient : m_strs ) {
302  sout << prefix << " " << ient.first << ": " << ient.second << endl;
303  }
304  }
305  if ( m_hsts.size() ) {
306  sout << prefix << "Histograms:" << endl;
307  for ( typename HistMap::value_type ient : m_hsts ) {
308  TH1* ph = ient.second;
309  //Name hnam = ph == nullptr ? "NULL" : ph->GetName();
310  sout << prefix << " " << ient.first << ": " << ph << endl;
311  }
312  }
313  if ( m_hstvecs.size() ) {
314  sout << prefix << "Histogram vectors:" << endl;
315  for ( typename HistVectorMap::value_type ient : m_hstvecs ) {
316  unsigned nhst = ient.second.size();
317  sout << prefix << " " << ient.first << "[" << nhst << "]" << endl;
318  }
319  }
320  if ( m_grfs.size() ) {
321  sout << prefix << "Graphs:" << endl;
322  for ( typename GraphMap::value_type ient : m_grfs ) {
323  GraphPtr pg = ient.second;
324  //Name hnam = ph == nullptr ? "NULL" : ph->GetName();
325  sout << prefix << " " << ient.first << ": " << pg.get() << endl;
326  }
327  }
328  }
IntMap m_ints
Definition: DataMap.h:333
StringMap m_strs
Definition: DataMap.h:337
int status() const
Definition: DataMap.h:202
HistVectorMap m_hstvecs
Definition: DataMap.h:339
std::shared_ptr< TGraph > GraphPtr
Definition: DataMap.h:60
GraphMap m_grfs
Definition: DataMap.h:341
FloatMap m_flts
Definition: DataMap.h:335
HistMap m_hsts
Definition: DataMap.h:338
FloatVectorMap m_fltvecs
Definition: DataMap.h:336
IntVectorMap m_intvecs
Definition: DataMap.h:334
QTextStream & endl(QTextStream &s)
void DataMap::setFloat ( Name  name,
float  val 
)
inline

Definition at line 133 of file DataMap.h.

133 { m_flts[name] = val; }
static QCString name
Definition: declinfo.cpp:673
FloatMap m_flts
Definition: DataMap.h:335
void DataMap::setFloatVector ( Name  name,
const FloatVector val 
)
inline

Definition at line 134 of file DataMap.h.

134 { m_fltvecs[name] = val; }
static QCString name
Definition: declinfo.cpp:673
FloatVectorMap m_fltvecs
Definition: DataMap.h:336
void DataMap::setGraph ( Name  name,
TGraph *  pg 
)
inline

Definition at line 178 of file DataMap.h.

178  {
179  m_grfs[name] = GraphPtr(pg);
180  }
static QCString name
Definition: declinfo.cpp:673
std::shared_ptr< TGraph > GraphPtr
Definition: DataMap.h:60
GraphMap m_grfs
Definition: DataMap.h:341
void DataMap::setGraph ( TGraph *  pg)
inline

Definition at line 181 of file DataMap.h.

181  {
182  if ( pg != nullptr ) setGraph(pg->GetName(), pg);
183  }
void setGraph(Name name, TGraph *pg)
Definition: DataMap.h:178
void DataMap::setHist ( Name  name,
TH1 *  ph,
bool  own = false 
)
inline

Definition at line 136 of file DataMap.h.

136  {
137  m_hsts[name] = ph;
138  if ( own && ph != nullptr ) {
139  ph->SetDirectory(nullptr);
140  m_sharedHsts.push_back(std::shared_ptr<TH1>(ph));
141  }
142  }
static QCString name
Definition: declinfo.cpp:673
HistMap m_hsts
Definition: DataMap.h:338
SharedHistVector m_sharedHsts
Definition: DataMap.h:340
void DataMap::setHist ( TH1 *  ph,
bool  own = false 
)
inline

Definition at line 143 of file DataMap.h.

143  {
144  if ( ph != nullptr ) setHist(ph->GetName(), ph, own);
145  }
void setHist(Name name, TH1 *ph, bool own=false)
Definition: DataMap.h:136
void DataMap::setHist ( std::shared_ptr< TH1 >  ph)
inline

Definition at line 146 of file DataMap.h.

146  {
147  m_hsts[ph->GetName()] = ph.get();
148  m_sharedHsts.push_back(ph);
149  }
HistMap m_hsts
Definition: DataMap.h:338
SharedHistVector m_sharedHsts
Definition: DataMap.h:340
void DataMap::setHistVector ( Name  name,
const HistVector hsts,
bool  own = false 
)
inline

Definition at line 150 of file DataMap.h.

150  {
151  const std::string myname = "DataMap::setHistVector: ";
152  m_hstvecs[name] = hsts;
153  if ( own ) {
154  for ( TH1* ph : hsts ) {
155  bool manage = true;
156  for ( std::shared_ptr<TH1>& phShared : m_sharedHsts ) {
157  if ( phShared.get() == ph ) {
158  std::cout << myname << "Ignoring duplicate attempt to manage a histogram." << std::endl;
159  manage = false;
160  break;
161  }
162  }
163  if ( manage ) {
164  ph->SetDirectory(nullptr);
165  m_sharedHsts.push_back(std::shared_ptr<TH1>(ph));
166  }
167  }
168  }
169  }
static QCString name
Definition: declinfo.cpp:673
std::string string
Definition: nybbler.cc:12
HistVectorMap m_hstvecs
Definition: DataMap.h:339
SharedHistVector m_sharedHsts
Definition: DataMap.h:340
QTextStream & endl(QTextStream &s)
void DataMap::setHistVector ( Name  name,
const SharedHistVector hsts 
)
inline

Definition at line 170 of file DataMap.h.

170  {
171  const std::string myname = "DataMap::setHistVector: ";
172  m_hstvecs[name].clear();
173  for ( SharedHistPtr ph : hsts ) {
174  m_hstvecs[name].push_back(ph.get());
175  m_sharedHsts.push_back(ph);
176  }
177  }
static QCString name
Definition: declinfo.cpp:673
std::string string
Definition: nybbler.cc:12
HistVectorMap m_hstvecs
Definition: DataMap.h:339
SharedHistVector m_sharedHsts
Definition: DataMap.h:340
std::shared_ptr< TH1 > SharedHistPtr
Definition: DataMap.h:62
void DataMap::setInt ( Name  name,
int  val 
)
inline

Definition at line 131 of file DataMap.h.

131 { m_ints[name] = val; }
static QCString name
Definition: declinfo.cpp:673
IntMap m_ints
Definition: DataMap.h:333
void DataMap::setIntVector ( Name  name,
const IntVector val 
)
inline

Definition at line 132 of file DataMap.h.

132 { m_intvecs[name] = val; }
static QCString name
Definition: declinfo.cpp:673
IntVectorMap m_intvecs
Definition: DataMap.h:334
DataMap& DataMap::setStatus ( int  stat)
inline

Definition at line 130 of file DataMap.h.

130 { m_stat = stat; return *this; }
int m_stat
Definition: DataMap.h:332
void DataMap::setString ( Name  name,
String  val 
)
inline

Definition at line 135 of file DataMap.h.

135 { m_strs[name] = val; }
static QCString name
Definition: declinfo.cpp:673
StringMap m_strs
Definition: DataMap.h:337
int DataMap::status ( ) const
inline

Definition at line 202 of file DataMap.h.

202 { return m_stat; }
int m_stat
Definition: DataMap.h:332

Member Data Documentation

FloatMap DataMap::m_flts
private

Definition at line 335 of file DataMap.h.

FloatVectorMap DataMap::m_fltvecs
private

Definition at line 336 of file DataMap.h.

GraphMap DataMap::m_grfs
private

Definition at line 341 of file DataMap.h.

HistMap DataMap::m_hsts
private

Definition at line 338 of file DataMap.h.

HistVectorMap DataMap::m_hstvecs
private

Definition at line 339 of file DataMap.h.

IntMap DataMap::m_ints
private

Definition at line 333 of file DataMap.h.

IntVectorMap DataMap::m_intvecs
private

Definition at line 334 of file DataMap.h.

SharedHistVector DataMap::m_sharedHsts
private

Definition at line 340 of file DataMap.h.

int DataMap::m_stat
private

Definition at line 332 of file DataMap.h.

StringMap DataMap::m_strs
private

Definition at line 337 of file DataMap.h.


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