Last change
on this file since 7bfc19 was 7bfc19, checked in by Tillmann Crueger <crueger@…>, 15 years ago |
Made the world solely responsible for creating and destroying atoms.
|
-
Property mode
set to
100644
|
File size:
412 bytes
|
Line | |
---|
1 | /*
|
---|
2 | * lists.cpp
|
---|
3 | *
|
---|
4 | * Created on: Feb 24, 2010
|
---|
5 | * Author: crueger
|
---|
6 | */
|
---|
7 |
|
---|
8 | #include "lists.hpp"
|
---|
9 | #include "World.hpp"
|
---|
10 | #include "atom.hpp"
|
---|
11 |
|
---|
12 | // specialized templates for lists
|
---|
13 | // can be directly compiled since no further templatization is needed
|
---|
14 | template <> void removewithoutcheck<atom>(atom *walker)
|
---|
15 | {
|
---|
16 | if (walker != 0) {
|
---|
17 | unlink(walker);
|
---|
18 | walker->getWorld()->destroyAtom(walker);
|
---|
19 | walker = 0;
|
---|
20 | }
|
---|
21 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.