FACT++  1.0
bool FactGui::CheckSize ( const DimData d,
size_t  sz,
bool  print = true 
) const
inlineprivate

Definition at line 639 of file FactGui.h.

References DimData::name, print(), and DimData::size().

640  {
641  if (d.size()==0)
642  return false;
643 
644  if (d.size()!=sz)
645  {
646  if (print)
647  cerr << "Size mismatch in " << d.name << ": Found=" << d.size() << " Expected=" << sz << endl;
648  return false;
649  }
650 
651  return true;
652  }
const std::string name
Definition: DimData.h:6
void print(std::ostream &out) const
size_t size() const
Definition: DimData.h:39

+ Here is the call graph for this function: