#include <collection.h>
Public Member Functions | |
| Container () | |
| ~Container () | |
| bool | islocked () |
| void | lock () |
| void | unlock () |
| int | number () |
| void | setFirst () |
| void | setFirst (int i) |
| void | setFirstLast () |
| void | setFirstLast (int i) |
| void | goFirst () |
| void | goFirst (int i) |
| void | goFirstNext () |
| void | goFirstNext (int i) |
| void | FirstNext () |
| void | FirstNext (int i) |
| void | FirstPrev () |
| void | FirstPrev (int i) |
| bool | isFirstLast () |
| bool | isFirstLast (int i) |
| void | goLastNext () |
| void | goLastNext (int i) |
| void | goLast () |
| void | goLast (int i) |
| void | goNext () |
| void | goNext (int i) |
| void | goPrev () |
| void | goPrev (int i) |
| bool | isFirst () |
| bool | isFirst (int i) |
| bool | isLast () |
| bool | isLast (int i) |
| void | LastNext () |
| void | LastPrev () |
| void | go (Ptr< Element > *p) |
| void | go (Ptr< Element > *p, int i) |
| Element * | First () |
| Element * | First (int i) |
| Element * | Last () |
| Element * | Next () |
| Element * | Next (int i) |
| Element * | getNext () |
| Element * | getNext (int i) |
| Element * | Prev () |
| Element * | Prev (int i) |
| Element * | getPrev () |
| Element * | getPrev (int i) |
| Element * | Current () |
| Element * | Current (int i) |
| Ptr< Element > * | getPtr () |
| Ptr< Element > * | getPtr (int i) |
| Ptr< Element > * | getFirstPtr () |
| Ptr< Element > * | getFirstPtr (int i) |
| Ptr< Element > * | getLastPtr () |
| bool | insert0 (Element *element) |
| bool | insert (Element *element) |
| bool | insert (Element *element, int i) |
| Ptr< Element > * | insert1 (Element *element, int i) |
| bool | insert0 () |
| bool | insert () |
| bool | insert (int i) |
| bool | append0 (Element *element) |
| bool | append (Element *element) |
| bool | append (Element *element, int i) |
| bool | append0 () |
| bool | append () |
| bool | append (int i) |
| Ptr< Element > * | append1 (Element *element, int i) |
| bool | link0 (Ptr< Element > *&ptr) |
| bool | link (Ptr< Element > *&ptr) |
| bool | unlink0 (Ptr< Element > *&ptr) |
| bool | unlink (Ptr< Element > *&ptr) |
| bool | remove0 () |
| bool | remove () |
| bool | remove (int i) |
| bool | remove0 (Ptr< Element > *&ptr) |
| bool | remove (Ptr< Element > *ptr) |
| bool | remove (Ptr< Element > *ptr, int i) |
| bool | checkPool (char *msg, Pool< Element > *pool) |
Private Attributes | |
| int | nptrs |
| bool | locked |
| Ptr< Element > * | first |
| Ptr< Element > * | last |
| Ptr< Element > * | current |
| Ptr< Element > * | first1 [maxcounters] |
| Ptr< Element > * | current1 [maxcounters] |
Definition at line 512 of file collection.h.
Definition at line 2 of file container.h.
References Container< Element >::current, Container< Element >::current1, Container< Element >::first, Container< Element >::first1, Container< Element >::last, Container< Element >::locked, maxcounters, and Container< Element >::nptrs.
Definition at line 11 of file container.h.
References Container< Element >::current, Container< Element >::current1, Container< Element >::first, Container< Element >::first1, Container< Element >::last, maxcounters, and Container< Element >::nptrs.
| bool Container< Element >::append | ( | int | i | ) | [inline] |
Definition at line 82 of file container.h.
References Container< Element >::append0(), Container< Element >::current, Container< Element >::current1, Container< Element >::first, Container< Element >::first1, Container< Element >::locked, maxcounters, and WAIT.
| bool Container< Element >::append | ( | ) | [inline] |
Definition at line 66 of file container.h.
References Container< Element >::append0(), Container< Element >::current, Container< Element >::current1, Container< Element >::first, Container< Element >::first1, Container< Element >::locked, maxcounters, and WAIT.
| bool Container< Element >::append | ( | Element * | element, | |
| int | i | |||
| ) | [inline] |
Definition at line 119 of file container.h.
References Container< Element >::append0(), Container< Element >::current, Container< Element >::current1, Container< Element >::first, Container< Element >::first1, Container< Element >::last, Container< Element >::locked, maxcounters, and WAIT.
| bool Container< Element >::append | ( | Element * | element | ) | [inline] |
Definition at line 101 of file container.h.
References Container< Element >::append0(), Container< Element >::current, Container< Element >::current1, Container< Element >::first, Container< Element >::first1, Container< Element >::last, Container< Element >::locked, maxcounters, and WAIT.
| bool Container< Element >::append0 | ( | ) | [inline] |
Definition at line 30 of file container.h.
References Container< Element >::current, Container< Element >::current1, Container< Element >::first, Container< Element >::first1, Pool< Element >::get(), Container< Element >::last, maxcounters, Container< Element >::nptrs, GridContainer::pool, and Ptr< Element >::prev.
Referenced by Container< Element >::append(), and Container< Element >::append1().
| bool Container< Element >::append0 | ( | Element * | element | ) |
| Ptr< Element > * Container< Element >::append1 | ( | Element * | element, | |
| int | i | |||
| ) | [inline] |
Definition at line 141 of file container.h.
References Container< Element >::append0(), Container< Element >::last, Container< Element >::locked, and WAIT.
| bool Container< Element >::checkPool | ( | char * | msg, | |
| Pool< Element > * | pool | |||
| ) | [inline] |
Definition at line 19 of file container.h.
References Pool< Element >::check(), Container< Element >::current, Container< Element >::first, Pool< Element >::hook, and Container< Element >::nptrs.
| Element* Container< Element >::Current | ( | int | i | ) | [inline] |
| Element* Container< Element >::Current | ( | ) | [inline] |
Definition at line 572 of file collection.h.
References Container< Element >::current.
Referenced by Domain::interaction().
| Element* Container< Element >::First | ( | int | i | ) | [inline] |
| Element* Container< Element >::First | ( | ) | [inline] |
Definition at line 561 of file collection.h.
References Container< Element >::first.
Referenced by Domain::interaction().
| void Container< Element >::FirstNext | ( | int | i | ) | [inline] |
| void Container< Element >::FirstNext | ( | ) | [inline] |
Definition at line 539 of file collection.h.
References Container< Element >::first.
Referenced by Domain::interaction().
| void Container< Element >::FirstPrev | ( | int | i | ) | [inline] |
| void Container< Element >::FirstPrev | ( | ) | [inline] |
| Element* Container< Element >::getNext | ( | int | i | ) | [inline] |
| Element* Container< Element >::getNext | ( | ) | [inline] |
| Element* Container< Element >::getPrev | ( | int | i | ) | [inline] |
| Element* Container< Element >::getPrev | ( | ) | [inline] |
| void Container< Element >::goFirst | ( | int | i | ) | [inline] |
Definition at line 536 of file collection.h.
References Container< Element >::current1, and Container< Element >::first1.
| void Container< Element >::goFirst | ( | ) | [inline] |
Definition at line 530 of file collection.h.
References Container< Element >::current, Container< Element >::current1, Container< Element >::first, Container< Element >::first1, and maxcounters.
Referenced by Domain::interaction().
| void Container< Element >::goFirstNext | ( | int | i | ) | [inline] |
Definition at line 538 of file collection.h.
References Container< Element >::current1, and Container< Element >::first1.
| void Container< Element >::goFirstNext | ( | ) | [inline] |
Definition at line 537 of file collection.h.
References Container< Element >::current, and Container< Element >::first.
| void Container< Element >::goLast | ( | int | i | ) | [inline] |
Definition at line 548 of file collection.h.
References Container< Element >::current1, and Container< Element >::last.
| void Container< Element >::goLast | ( | ) | [inline] |
Definition at line 547 of file collection.h.
References Container< Element >::current, and Container< Element >::last.
| void Container< Element >::goLastNext | ( | int | i | ) | [inline] |
Definition at line 546 of file collection.h.
References Container< Element >::current1, and Container< Element >::last.
| void Container< Element >::goLastNext | ( | ) | [inline] |
Definition at line 545 of file collection.h.
References Container< Element >::current, and Container< Element >::last.
| void Container< Element >::goNext | ( | int | i | ) | [inline] |
| void Container< Element >::goNext | ( | ) | [inline] |
Definition at line 549 of file collection.h.
References Container< Element >::current.
Referenced by Domain::interaction().
| void Container< Element >::goPrev | ( | int | i | ) | [inline] |
| void Container< Element >::goPrev | ( | ) | [inline] |
| bool Container< Element >::insert | ( | int | i | ) | [inline] |
Definition at line 326 of file container.h.
References Container< Element >::current, Container< Element >::current1, Container< Element >::first, Container< Element >::first1, Container< Element >::insert0(), Container< Element >::locked, maxcounters, and WAIT.
| bool Container< Element >::insert | ( | ) | [inline] |
Definition at line 309 of file container.h.
References Container< Element >::current, Container< Element >::current1, Container< Element >::first, Container< Element >::first1, Container< Element >::insert0(), Container< Element >::locked, maxcounters, and WAIT.
| bool Container< Element >::insert | ( | Element * | element, | |
| int | i | |||
| ) | [inline] |
Definition at line 365 of file container.h.
References Container< Element >::current, Container< Element >::current1, Container< Element >::first, Container< Element >::first1, Container< Element >::insert0(), Container< Element >::locked, maxcounters, and WAIT.
| bool Container< Element >::insert | ( | Element * | element | ) | [inline] |
Definition at line 347 of file container.h.
References Container< Element >::current, Container< Element >::current1, Container< Element >::first, Container< Element >::first1, Container< Element >::insert0(), Container< Element >::locked, maxcounters, and WAIT.
| bool Container< Element >::insert0 | ( | ) | [inline] |
Definition at line 276 of file container.h.
References Container< Element >::current, Container< Element >::current1, Container< Element >::first, Container< Element >::first1, Pool< Element >::get(), Container< Element >::last, maxcounters, Ptr< Element >::next, Container< Element >::nptrs, GridContainer::pool, and Ptr< Element >::prev.
Referenced by Container< Element >::insert(), and Container< Element >::insert1().
| bool Container< Element >::insert0 | ( | Element * | element | ) |
| Ptr< Element > * Container< Element >::insert1 | ( | Element * | element, | |
| int | i | |||
| ) | [inline] |
Definition at line 387 of file container.h.
References Container< Element >::current, Container< Element >::current1, Container< Element >::first, Container< Element >::first1, Container< Element >::insert0(), Container< Element >::locked, maxcounters, and WAIT.
| bool Container< Element >::isFirst | ( | int | i | ) | [inline] |
Definition at line 554 of file collection.h.
References Container< Element >::current1, and Container< Element >::first1.
| bool Container< Element >::isFirst | ( | ) | [inline] |
Definition at line 553 of file collection.h.
References Container< Element >::current, and Container< Element >::first.
Referenced by Domain::interaction().
| bool Container< Element >::isFirstLast | ( | int | i | ) | [inline] |
Definition at line 544 of file collection.h.
References Container< Element >::first1, and Container< Element >::last.
| bool Container< Element >::isFirstLast | ( | ) | [inline] |
Definition at line 543 of file collection.h.
References Container< Element >::first, and Container< Element >::last.
Referenced by Domain::interaction().
| bool Container< Element >::isLast | ( | int | i | ) | [inline] |
Definition at line 556 of file collection.h.
References Container< Element >::current1, and Container< Element >::last.
| bool Container< Element >::isLast | ( | ) | [inline] |
Definition at line 555 of file collection.h.
References Container< Element >::current, and Container< Element >::last.
Referenced by Domain::interaction().
| bool Container< Element >::islocked | ( | ) | [inline] |
| Element* Container< Element >::Last | ( | ) | [inline] |
| void Container< Element >::LastNext | ( | ) | [inline] |
| void Container< Element >::LastPrev | ( | ) | [inline] |
Definition at line 194 of file container.h.
References Container< Element >::current, Container< Element >::current1, Container< Element >::first, Container< Element >::first1, Container< Element >::link0(), Container< Element >::locked, maxcounters, and WAIT.
Definition at line 163 of file container.h.
References Container< Element >::current, Container< Element >::current1, Container< Element >::first, Container< Element >::first1, Container< Element >::last, maxcounters, Ptr< Element >::next, Container< Element >::nptrs, and Ptr< Element >::prev.
Referenced by Container< Element >::link().
| void Container< Element >::lock | ( | ) | [inline] |
| Element* Container< Element >::Next | ( | int | i | ) | [inline] |
| Element* Container< Element >::Next | ( | ) | [inline] |
| int Container< Element >::number | ( | ) | [inline] |
Definition at line 525 of file collection.h.
References Container< Element >::nptrs.
Referenced by Domain::interaction().
| Element* Container< Element >::Prev | ( | int | i | ) | [inline] |
| Element* Container< Element >::Prev | ( | ) | [inline] |
Definition at line 524 of file container.h.
References Container< Element >::current, Container< Element >::current1, Container< Element >::first, Container< Element >::first1, Container< Element >::locked, maxcounters, Container< Element >::remove0(), and WAIT.
Definition at line 512 of file container.h.
References Container< Element >::locked, Container< Element >::remove0(), and WAIT.
| bool Container< Element >::remove | ( | int | i | ) | [inline] |
Definition at line 451 of file container.h.
References Container< Element >::current, Container< Element >::current1, Container< Element >::first, Container< Element >::first1, Container< Element >::locked, maxcounters, Container< Element >::remove0(), and WAIT.
| bool Container< Element >::remove | ( | ) | [inline] |
Definition at line 431 of file container.h.
References Container< Element >::current, Container< Element >::current1, Container< Element >::first, Container< Element >::first1, Container< Element >::locked, maxcounters, Container< Element >::remove0(), and WAIT.
Referenced by Domain::interaction(), and Domain::run().
Definition at line 473 of file container.h.
References Container< Element >::current, Container< Element >::current1, Container< Element >::first, Container< Element >::first1, Container< Element >::last, maxcounters, Container< Element >::nptrs, GridContainer::pool, and Pool< Element >::put().
| bool Container< Element >::remove0 | ( | ) | [inline] |
Definition at line 409 of file container.h.
References Container< Element >::current, Container< Element >::current1, Container< Element >::first, Container< Element >::first1, Container< Element >::last, maxcounters, Container< Element >::nptrs, GridContainer::pool, and Pool< Element >::put().
Referenced by Container< Element >::remove().
| void Container< Element >::setFirst | ( | int | i | ) | [inline] |
Definition at line 527 of file collection.h.
References Container< Element >::first1, and Container< Element >::last.
| void Container< Element >::setFirst | ( | ) | [inline] |
Definition at line 526 of file collection.h.
References Container< Element >::first, and Container< Element >::last.
Referenced by Domain::interaction().
| void Container< Element >::setFirstLast | ( | int | i | ) | [inline] |
Definition at line 529 of file collection.h.
References Container< Element >::first1, and Container< Element >::last.
| void Container< Element >::setFirstLast | ( | ) | [inline] |
Definition at line 528 of file collection.h.
References Container< Element >::first, and Container< Element >::last.
Referenced by Domain::interaction().
Definition at line 261 of file container.h.
References Container< Element >::current, Container< Element >::current1, Container< Element >::first, Container< Element >::first1, Container< Element >::locked, maxcounters, Container< Element >::unlink0(), and WAIT.
Definition at line 211 of file container.h.
References Container< Element >::current, Container< Element >::current1, Container< Element >::first, Container< Element >::first1, Container< Element >::last, maxcounters, Ptr< Element >::next, Container< Element >::nptrs, and Ptr< Element >::prev.
Referenced by Container< Element >::unlink().
| void Container< Element >::unlock | ( | ) | [inline] |
Definition at line 517 of file collection.h.
Referenced by Container< Element >::append(), Container< Element >::append0(), Container< Element >::checkPool(), Container< Element >::Container(), Container< Element >::Current(), Container< Element >::getNext(), Container< Element >::getPrev(), Container< Element >::getPtr(), Container< Element >::go(), Container< Element >::goFirst(), Container< Element >::goFirstNext(), Container< Element >::goLast(), Container< Element >::goLastNext(), Container< Element >::goNext(), Container< Element >::goPrev(), Container< Element >::insert(), Container< Element >::insert0(), Container< Element >::insert1(), Container< Element >::isFirst(), Container< Element >::isLast(), Container< Element >::link(), Container< Element >::link0(), Container< Element >::Next(), Container< Element >::Prev(), Container< Element >::remove(), Container< Element >::remove0(), Container< Element >::unlink(), Container< Element >::unlink0(), and Container< Element >::~Container().
Ptr<Element> * Container< Element >::current1[maxcounters] [private] |
Definition at line 517 of file collection.h.
Referenced by Container< Element >::append(), Container< Element >::append0(), Container< Element >::Container(), Container< Element >::Current(), Container< Element >::getNext(), Container< Element >::getPrev(), Container< Element >::getPtr(), Container< Element >::go(), Container< Element >::goFirst(), Container< Element >::goFirstNext(), Container< Element >::goLast(), Container< Element >::goLastNext(), Container< Element >::goNext(), Container< Element >::goPrev(), Container< Element >::insert(), Container< Element >::insert0(), Container< Element >::insert1(), Container< Element >::isFirst(), Container< Element >::isLast(), Container< Element >::link(), Container< Element >::link0(), Container< Element >::Next(), Container< Element >::Prev(), Container< Element >::remove(), Container< Element >::remove0(), Container< Element >::unlink(), Container< Element >::unlink0(), and Container< Element >::~Container().
Definition at line 517 of file collection.h.
Referenced by Container< Element >::append(), Container< Element >::append0(), Container< Element >::checkPool(), Container< Element >::Container(), Container< Element >::First(), Container< Element >::FirstNext(), Container< Element >::FirstPrev(), Container< Element >::getFirstPtr(), Container< Element >::goFirst(), Container< Element >::goFirstNext(), Container< Element >::insert(), Container< Element >::insert0(), Container< Element >::insert1(), Container< Element >::isFirst(), Container< Element >::isFirstLast(), Container< Element >::link(), Container< Element >::link0(), Container< Element >::remove(), Container< Element >::remove0(), Container< Element >::setFirst(), Container< Element >::setFirstLast(), Container< Element >::unlink(), Container< Element >::unlink0(), and Container< Element >::~Container().
Ptr<Element> * Container< Element >::first1[maxcounters] [private] |
Definition at line 517 of file collection.h.
Referenced by Container< Element >::append(), Container< Element >::append0(), Container< Element >::Container(), Container< Element >::First(), Container< Element >::FirstNext(), Container< Element >::FirstPrev(), Container< Element >::getFirstPtr(), Container< Element >::goFirst(), Container< Element >::goFirstNext(), Container< Element >::insert(), Container< Element >::insert0(), Container< Element >::insert1(), Container< Element >::isFirst(), Container< Element >::isFirstLast(), Container< Element >::link(), Container< Element >::link0(), Container< Element >::remove(), Container< Element >::remove0(), Container< Element >::setFirst(), Container< Element >::setFirstLast(), Container< Element >::unlink(), Container< Element >::unlink0(), and Container< Element >::~Container().
Definition at line 517 of file collection.h.
Referenced by Container< Element >::append(), Container< Element >::append0(), Container< Element >::append1(), Container< Element >::Container(), Container< Element >::getLastPtr(), Container< Element >::goLast(), Container< Element >::goLastNext(), Container< Element >::insert0(), Container< Element >::isFirstLast(), Container< Element >::isLast(), Container< Element >::Last(), Container< Element >::LastNext(), Container< Element >::LastPrev(), Container< Element >::link0(), Container< Element >::remove0(), Container< Element >::setFirst(), Container< Element >::setFirstLast(), Container< Element >::unlink0(), and Container< Element >::~Container().
Definition at line 514 of file collection.h.
Referenced by Container< Element >::append(), Container< Element >::append1(), Container< Element >::Container(), Container< Element >::insert(), Container< Element >::insert1(), Container< Element >::islocked(), Container< Element >::link(), Container< Element >::lock(), Container< Element >::remove(), Container< Element >::unlink(), and Container< Element >::unlock().
Definition at line 513 of file collection.h.
Referenced by Container< Element >::append0(), Container< Element >::checkPool(), Container< Element >::Container(), Container< Element >::insert0(), Container< Element >::link0(), Container< Element >::number(), Container< Element >::remove0(), Container< Element >::unlink0(), and Container< Element >::~Container().
1.5.7.1