1#ifndef PSEUDO_ELEMENT_HPP
2#define PSEUDO_ELEMENT_HPP
38 typedef std::map<std::string, properties>
map_type;
43 for (
unsigned ii = 1; ii <
symbol_.size(); ii++)
57 for (map_type::iterator it =
map().begin(); it !=
map().end(); ++it) {
90 "/pseudopotentials/elements.dat";
92 std::ifstream
file(filename.c_str());
95 std::cerr <<
"Internal error: cannot open file '" << filename <<
"'."
129 str.erase(0, str.find_first_not_of(chars));
135 str.erase(str.find_last_not_of(chars) + 1);
Definition: element.hpp:34
element(int atomic_number)
Definition: element.hpp:49
double mass() const
Definition: element.hpp:73
static std::string & ltrim(std::string &str, const std::string &chars="\t\n\v\f\r ")
Definition: element.hpp:127
int atomic_number() const
Definition: element.hpp:71
static std::string & rtrim(std::string &str, const std::string &chars="\t\n\v\f\r ")
Definition: element.hpp:133
std::string symbol_
Definition: element.hpp:146
const std::string & symbol() const
Definition: element.hpp:69
static std::string trim(std::string str, const std::string &chars="\t\n\v\f\r ")
Definition: element.hpp:140
double vdw_radius() const
Definition: element.hpp:75
element(const std::string &symbol="none")
Definition: element.hpp:41
std::map< std::string, properties > map_type
Definition: element.hpp:38
bool valid() const
Definition: element.hpp:65
double charge() const
Definition: element.hpp:67
static map_type & map()
Definition: element.hpp:84
static std::string get()
Definition: share_directory.hpp:32
!The assertions are ignored if the code is compiled in not debug when !prints out the assertion the file
Definition: global.h:58
!The assertions are ignored if the code is compiled in not debug when !prints out the assertion string
Definition: global.h:58
Definition: anygrid.hpp:27
Definition: element.hpp:78
double mass_
Definition: element.hpp:80
double vdw_radius_
Definition: element.hpp:81
int z_
Definition: element.hpp:79