1 #ifndef QNANO_NEW_PARAMETER_ID_DEFINED_H 2 #define QNANO_NEW_PARAMETER_ID_DEFINED_H 4 #include "tightbinding/TB_Parameter_List.h" 5 #include "tightbinding/TB_Hopping_Parameter_List.h" 13 std::string get_name()
const{
15 ss<<str<<
" "<<element[0]<<
" "<<element[1];
19 return str==other.str && element[0]==other.element[0] && element[1]==other.element[1];
28 std::cerr<<
"Initializing TB_Parameter_Id from string vector ";
29 for(
size_t i=0; i<strvec.size(); i++){
30 std::cerr<<
"'"<<strvec[i]<<
"', ";
36 element[0]=Reader::readDouble(strvec[1],
"TB_Parameter_Id, element[0]");
37 element[1]=Reader::readDouble(strvec[2],
"TB_Parameter_Id, element[1]");
45 void print(std::ostream &os=std::cout)
const{
46 for(
size_t i=0; i<list.size(); i++){
47 os<<list[i].get_name()<<std::endl;
51 for(
size_t i=0;i<list.size();i++){
52 if(list[i]==other)
return i;
59 std::cerr<<
"TB_Parameter_Id_List:: '"<<element.get_name()<<
"' not found!"<<std::endl;
60 std::cerr<<
"Registered parameters:"<<std::endl;
67 bool add(
const std::string &str,
int e0,
int e1){
70 std::cout<<
"WARNING: TB_Parameter_Id_List: Parameter '"<<
id.get_name()<<
"' already exists!"<<std::endl;
Definition: List_Class.h:27
Definition: TB_Parameter_Id.h:42
Structure that lets one identify a parameter by its name.
Definition: TB_Parameter_Id.h:8