printing
parent
81b577eb59
commit
78bbcde7cd
|
|
@ -41,13 +41,9 @@ void Ordering::permuteWithInverse(const Permutation& inversePermutation) {
|
|||
|
||||
/* ************************************************************************* */
|
||||
void Ordering::print(const string& str, const KeyFormatter& keyFormatter) const {
|
||||
cout << str << " ";
|
||||
BOOST_FOREACH(const Ordering::value_type& key_order, *this) {
|
||||
if(key_order != *begin())
|
||||
cout << ", ";
|
||||
cout << keyFormatter(key_order.first) << ":" << key_order.second;
|
||||
}
|
||||
cout << endl;
|
||||
cout << str;
|
||||
BOOST_FOREACH(const Ordering::value_type& key_order, *this)
|
||||
cout << keyFormatter(key_order.first) << ":" << key_order.second << endl;
|
||||
}
|
||||
|
||||
/* ************************************************************************* */
|
||||
|
|
|
|||
|
|
@ -217,7 +217,7 @@ public:
|
|||
/// @{
|
||||
|
||||
/** print (from Testable) for testing and debugging */
|
||||
void print(const std::string& str = "Ordering:", const KeyFormatter& keyFormatter = DefaultKeyFormatter) const;
|
||||
void print(const std::string& str = "Ordering:\n", const KeyFormatter& keyFormatter = DefaultKeyFormatter) const;
|
||||
|
||||
/** equals (from Testable) for testing and debugging */
|
||||
bool equals(const Ordering& rhs, double tol = 0.0) const;
|
||||
|
|
|
|||
Loading…
Reference in New Issue