74 cout <<
"================================================================" << endl;
75 for(
int j=0; j < tabids.size(); j++){
77 if(j < tabids.size()-1) cout <<
",";
79 cout <<
"\n================================================================" << endl;
91 for(
int j=0; j < tabids.size(); j++){
92 if(addidx==tabids.at(j)){
98 tabids.push_back( addidx );
99 pos = tabids.size()-1;
110 for(
int j=0; j < tabids.size(); j++){
117 tabids.push_back( i );
118 pos = tabids.size()-1;
128 for(
int j=0; j < tabids.size(); j++){
135 tabids.push_back( i );
151 vector<string> indexlist;
153 vector<string>::iterator it;
154 sort (indexlist.begin(), indexlist.end());
155 it = unique (indexlist.begin(), indexlist.end());
156 indexlist.resize( it - indexlist.begin() );
160 for(
int i=0; i<indexlist.size(); i++){
162 std::istringstream iss(indexlist.at(i));
164 if (!(iss >> num).fail())
continue;
165 idx += indexlist.at(i);
166 if(i!=indexlist.size()-1)
int newIdx(string i)
Store new index of type "string".
Functions and cointainer for indices.
template string ToString< double >(double number)
template string ToString< int >(int number)
string ToString(T number)
convert to string
string getIdx(int i)
Get index.
string makeId(string a, int id)
return in string format "a+id"
vector< string > tabids
Vector container of the indexes.
void newId(string i)
Store new index of type "string".
void printIDX()
print index list.
template string ToString< float >(float number)
int Idx_size()
Return index list size.
string IndexList()
Index list.
template string ToString< unsigned int >(unsigned int number)