Last change
on this file since 248 was
243,
checked in by landauf, 17 years ago
|
removed the "directParent" feature - it was a clever but unnecessary feature.
|
File size:
785 bytes
|
Rev | Line | |
---|
[197] | 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: |
---|
[239] | 13 | IdentifierListElement(const Identifier* identifier); |
---|
[197] | 14 | ~IdentifierListElement(); |
---|
| 15 | |
---|
[239] | 16 | const Identifier* identifier_; |
---|
[197] | 17 | IdentifierListElement* next_; |
---|
| 18 | }; |
---|
| 19 | |
---|
| 20 | class IdentifierList |
---|
| 21 | { |
---|
| 22 | public: |
---|
| 23 | IdentifierList(); |
---|
| 24 | ~IdentifierList(); |
---|
[239] | 25 | void add(const Identifier* identifier); |
---|
| 26 | void remove(const Identifier* identifier); |
---|
[241] | 27 | bool isInList(const Identifier* identifier) const; |
---|
[240] | 28 | std::string toString() const; |
---|
[197] | 29 | |
---|
| 30 | IdentifierListElement* first_; |
---|
| 31 | }; |
---|
| 32 | } |
---|
| 33 | |
---|
| 34 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.