| 123456789101112131415161718192021222324252627282930313233 |
- #include "TokenList.h"
- TokenList::TokenList()
- {
- }
- TokenList::TokenList(const TokenList& orig)
- {
- }
- TokenList::~TokenList()
- {
- list.forEach([](Token* t)
- {
- delete t;
- });
- }
- void TokenList::add(Token* t)
- {
- list.add(t);
- }
- void TokenList::remove(int index)
- {
- list.remove(index);
- }
- void TokenList::forEach(void (*f) (Token*))
- {
- list.forEach(f);
- }
|