87 std::string id_cells =
"";
88 std::string bin_cells =
"";
90 std::string i_id = std::to_string(i_entry.first);
91 int i_id_len = i_id.size();
92 std::string i_ll = std::to_string(i_entry.second->first());
93 int i_ll_len = i_ll.size();
94 std::string i_ul = std::to_string(i_entry.second->second());
95 int i_ul_len = i_ul.size();
96 id_cells +=
"|" + std::string(len,
' ') + i_id + std::string(std::max(1, len - i_id_len + 1),
' ') +
"|";
97 bin_cells +=
"|" + i_ll + std::string(std::max(1, len - i_ll_len),
' ') +
"|" + i_ul + std::string(std::max(1, len - i_ul_len),
void printAxis() const
Prints axis information to the B2INFO stream.
int findBin(ParticleWeightingBinLimits *bin) const
Returns id of bin with given bin limits Returns out-of-range binID if can't find.
const int m_outOfRangeBinID
ID of out-of-range bin.
bool isOverlappingBin(ParticleWeightingBinLimits *bin)
Return TRUE if bin exists or overlaps with existing.
int addBin(ParticleWeightingBinLimits *bin)
Check if bin exists and creates it if not.
Just pair of numbers - min and max values of bin border.