45#ifndef UTILS_UTILITY_HPP
46#define UTILS_UTILITY_HPP
55 inline RealType roundMe(
const RealType& x) {
56 return (x >= 0) ? std::floor(x + 0.5) : std::ceil(x - 0.5);
100 std::vector<std::vector<std::string>::iterator>& cont,
101 std::vector<std::string>& sequence, std::vector<std::string>& result,
102 const std::string& wildCard =
"X");
This basic Periodic Table class was originally taken from the data.cpp file in OpenBabel.
bool replaceWithWildCard(std::vector< std::vector< std::string >::iterator > &cont, std::vector< std::string > &sequence, std::vector< std::string > &result, const std::string &wildCard)
iteratively replace the sequence with wild cards