Line | |
---|
1 | #ifndef ELEMENTSCOLLECTION_SEEN |
---|
2 | #define ELEMENTSCOLLECTION_SEEN |
---|
3 | |
---|
4 | |
---|
5 | #include <iostream> |
---|
6 | #include <string> |
---|
7 | #include <vector> |
---|
8 | |
---|
9 | #include "abstractElement.h" |
---|
10 | #include "nomdElements.h" |
---|
11 | |
---|
12 | class elementsCollection |
---|
13 | { |
---|
14 | |
---|
15 | vector <abstractElement*> elements_; |
---|
16 | |
---|
17 | public : |
---|
18 | |
---|
19 | elementsCollection() {;} |
---|
20 | ~elementsCollection(); |
---|
21 | |
---|
22 | void raz(); |
---|
23 | unsigned size(); |
---|
24 | abstractElement* addElement(typedElement elemType); |
---|
25 | abstractElement* getElementPointer(string label) const; |
---|
26 | abstractElement* getElementPointerFromIndex(unsigned int index) const; |
---|
27 | abstractElement* getElementPointerFromNumero(int num) const; |
---|
28 | |
---|
29 | int getNumeroFromLabel(string lab); |
---|
30 | |
---|
31 | void eraseElement(string label); |
---|
32 | |
---|
33 | }; |
---|
34 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.