SOSpin is hosted by Hepforge, IPPP Durham
SOSpin  1.0.0
index.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // SOSpin Library
3 // Copyright (C) 2015 SOSpin Project
4 //
5 // Authors:
6 //
7 // Nuno Cardoso (nuno.cardoso@tecnico.ulisboa.pt)
8 // David Emmanuel-Costa (david.costa@tecnico.ulisboa.pt)
9 // Nuno Gonçalves (nunogon@deec.uc.pt)
10 // Catarina Simoes (csimoes@ulg.ac.be)
11 //
12 // ----------------------------------------------------------------------------
13 // This file is part of SOSpin Library.
14 //
15 // SOSpin Library is free software: you can redistribute it and/or modify
16 // it under the terms of the GNU General Public License as published by
17 // the Free Software Foundation, either version 3 of the License, or any
18 // later version.
19 //
20 // SOSpin Library is distributed in the hope that it will be useful,
21 // but WITHOUT ANY WARRANTY; without even the implied warranty of
22 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 // GNU General Public License for more details.
24 //
25 // You should have received a copy of the GNU General Public License
26 // along with SOSpin Library. If not, see <http://www.gnu.org/licenses/>.
27 // ----------------------------------------------------------------------------
28 
29 // index.h created on 27/02/2015
30 //
31 // This file contains the functions necessary to do things
32 // in the SOSpin Library.
33 //
34 // Revision 1.1 28/02/2015 23:19:29 david
35 // Revision 1.1 29/04/2015 17:34:00 nunogon
36 // License updated
37 //
38 
44 #ifndef INDEX_H
45 #define INDEX_H
46 
47 #include <string>
48 #include <cstring>
49 #include <sstream>
50 #include <cstdlib>
51 #include <algorithm>
52 #include <vector>
53 
54 
55 
56 using namespace std;
57 
58 
59 namespace sospin {
60 
62 extern vector<string> tabids;
63 
65 int newIdx(int i);
66 
68 int newIdx(string i);
69 
71 string getIdx(int i);
72 
74 string IndexList();
75 
77 void newId(string i);
78 
80 int Idx_size();
81 
83 string makeId(string a, int id);
84 
86 void printIDX();
87 
89 template<class T>
90 string ToString(T number);
91 
92 }
93 
94 #endif
int newIdx(int i)
Store new index of type "int".
Definition: index.cpp:86
string ToString(T number)
convert to string
Definition: index.cpp:179
string getIdx(int i)
Get index.
Definition: index.cpp:142
string makeId(string a, int id)
return in string format "a+id"
Definition: index.cpp:67
vector< string > tabids
Vector container of the indexes.
Definition: index.cpp:59
void newId(string i)
Store new index of type "string".
Definition: index.cpp:125
void printIDX()
print index list.
Definition: index.cpp:73
int Idx_size()
Return index list size.
Definition: index.cpp:62
string IndexList()
Index list.
Definition: index.cpp:150