Last change
on this file since 244 was
243,
checked in by landauf, 17 years ago
|
removed the "directParent" feature - it was a clever but unnecessary feature.
|
File size:
785 bytes
|
Line | |
---|
1 | #ifndef _IdentifierList_H__ |
---|
2 | #define _IdentifierList_H__ |
---|
3 | |
---|
4 | #include <string> |
---|
5 | |
---|
6 | namespace orxonox |
---|
7 | { |
---|
8 | class Identifier; |
---|
9 | |
---|
10 | class IdentifierListElement |
---|
11 | { |
---|
12 | public: |
---|
13 | IdentifierListElement(const Identifier* identifier); |
---|
14 | ~IdentifierListElement(); |
---|
15 | |
---|
16 | const Identifier* identifier_; |
---|
17 | IdentifierListElement* next_; |
---|
18 | }; |
---|
19 | |
---|
20 | class IdentifierList |
---|
21 | { |
---|
22 | public: |
---|
23 | IdentifierList(); |
---|
24 | ~IdentifierList(); |
---|
25 | void add(const Identifier* identifier); |
---|
26 | void remove(const Identifier* identifier); |
---|
27 | bool isInList(const Identifier* identifier) const; |
---|
28 | std::string toString() const; |
---|
29 | |
---|
30 | IdentifierListElement* first_; |
---|
31 | }; |
---|
32 | } |
---|
33 | |
---|
34 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.