Last change
on this file since 222 was
221,
checked in by landauf, 17 years ago
|
- made ObjectList double-linked to allow forward- and backward-iterating. its now a LI(F/L)O list.
- added an iterator to iterate through object-lists. you can iterate forwards and backwards.
iterating forwards is easy: you get "0 1 2 … last"
iterating backwards is a bit tricky: you still get "0" first, but then "last … 2 1".
thats caused by the structure of the for-loop: you get the first element before the iterator knows if you'll increase or decrease it
|
File size:
603 bytes
|
Rev | Line | |
---|
[119] | 1 | PROJECT(Orxonox) |
---|
| 2 | |
---|
| 3 | # create a few variables to simplify life |
---|
[219] | 4 | SET(SRC_FILES orxonox.cc IdentifierList.cc ObjectList.cc Identifier.cc Factory.cc OrxonoxClass.cc BaseObject.cc test1.cc test2.cc test3.cc) |
---|
[221] | 5 | SET(INC_FILES IdentifierIncludes.h Identifier.h Factory.h IdentifierList.h ObjectList.h Iterator.h OrxonoxClass.h BaseObject.h Test.h test1.h test2.h test3.h) |
---|
[119] | 6 | |
---|
| 7 | #Creates an executable |
---|
| 8 | ADD_EXECUTABLE(../bin/main ${SRC_FILES} ${INC_FILES}) |
---|
| 9 | #Links the executable against OGRE and OIS |
---|
[121] | 10 | TARGET_LINK_LIBRARIES(../bin/main ${OGRE_LIBRARIES} ${OIS_LIBRARIES} ${CEGUI_OGRE_LIBRARIES} ${CEGUI_LIBRARIES}) |
---|
Note: See
TracBrowser
for help on using the repository browser.