Commit 23bd51ac by Maarten L. Hekkelman

removed ItemReference operator<<

parent 9e200b94
...@@ -460,11 +460,6 @@ namespace detail ...@@ -460,11 +460,6 @@ namespace detail
template<size_t N> template<size_t N>
struct ItemReference::item_value_as<char[N]> struct ItemReference::item_value_as<char[N]>
{ {
// static const char* convert(const ItemReference& ref)
// {
// return ref.c_str();
// }
static int compare(const ItemReference& ref, const char (&value)[N], bool icase) static int compare(const ItemReference& ref, const char (&value)[N], bool icase)
{ {
return icase ? cif::icompare(ref.c_str(), value) : std::strcmp(ref.c_str(), value); return icase ? cif::icompare(ref.c_str(), value) : std::strcmp(ref.c_str(), value);
...@@ -499,12 +494,6 @@ namespace detail ...@@ -499,12 +494,6 @@ namespace detail
} }
}; };
inline std::ostream& operator<<(std::ostream& os, const ItemReference& rhs)
{
os << rhs.c_str();
return os;
}
// some helper classes to help create tuple result types // some helper classes to help create tuple result types
template<typename... C> template<typename... C>
struct getRowResult struct getRowResult
......
...@@ -2748,7 +2748,7 @@ void Row::swap(size_t cix, ItemRow* a, ItemRow* b) ...@@ -2748,7 +2748,7 @@ void Row::swap(size_t cix, ItemRow* a, ItemRow* b)
else else
{ {
if (VERBOSE) if (VERBOSE)
std::cerr << "In " << childCat->mName << " changing " << linkChildColName << ": " << r[linkChildColName] << " => " << (i ? i->mText : "") << std::endl; std::cerr << "In " << childCat->mName << " changing " << linkChildColName << ": " << r[linkChildColName].as<float>() << " => " << (i ? i->mText : "") << std::endl;
r[linkChildColName] = i ? i->mText : ""; r[linkChildColName] = i ? i->mText : "";
} }
} }
......
...@@ -3462,14 +3462,14 @@ void WriteCrystallographic(std::ostream& pdbFile, Datablock& db) ...@@ -3462,14 +3462,14 @@ void WriteCrystallographic(std::ostream& pdbFile, Datablock& db)
boost::format kCRYST1("CRYST1%9.3f%9.3f%9.3f%7.2f%7.2f%7.2f %-11.11s%4.4d"); boost::format kCRYST1("CRYST1%9.3f%9.3f%9.3f%7.2f%7.2f%7.2f %-11.11s%4.4d");
pdbFile << (kCRYST1 pdbFile << (kCRYST1
% r["length_a"] % r["length_a"].as<double>()
% r["length_b"] % r["length_b"].as<double>()
% r["length_c"] % r["length_c"].as<double>()
% r["angle_alpha"] % r["angle_alpha"].as<double>()
% r["angle_beta"] % r["angle_beta"].as<double>()
% r["angle_gamma"] % r["angle_gamma"].as<double>()
% symmetry % symmetry
% r["Z_PDB"]) << std::endl; % r["Z_PDB"].as<double>()) << std::endl;
} }
int WriteCoordinateTransformation(std::ostream& pdbFile, Datablock& db) int WriteCoordinateTransformation(std::ostream& pdbFile, Datablock& db)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment