Container< Element > Class Template Reference

#include <collection.h>

List of all members.

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]


Detailed Description

template<class Element>
class Container< Element >

Definition at line 512 of file collection.h.


Constructor & Destructor Documentation

template<class Element >
Container< Element >::Container (  )  [inline]

template<class Element >
Container< Element >::~Container (  )  [inline]


Member Function Documentation

template<class Element >
bool Container< Element >::append ( int  i  )  [inline]

template<class Element >
bool Container< Element >::append (  )  [inline]

template<class Element >
bool Container< Element >::append ( Element *  element,
int  i 
) [inline]

template<class Element >
bool Container< Element >::append ( Element *  element  )  [inline]

template<class Element >
bool Container< Element >::append0 (  )  [inline]

template<class Element >
bool Container< Element >::append0 ( Element *  element  ) 

template<class Element >
Ptr< Element > * Container< Element >::append1 ( Element *  element,
int  i 
) [inline]

template<class Element >
bool Container< Element >::checkPool ( char *  msg,
Pool< Element > *  pool 
) [inline]

template<class Element >
Element* Container< Element >::Current ( int  i  )  [inline]

Definition at line 573 of file collection.h.

References Container< Element >::current1.

template<class Element >
Element* Container< Element >::Current (  )  [inline]

Definition at line 572 of file collection.h.

References Container< Element >::current.

Referenced by Domain::interaction().

template<class Element >
Element* Container< Element >::First ( int  i  )  [inline]

Definition at line 562 of file collection.h.

References Container< Element >::first1.

template<class Element >
Element* Container< Element >::First (  )  [inline]

Definition at line 561 of file collection.h.

References Container< Element >::first.

Referenced by Domain::interaction().

template<class Element >
void Container< Element >::FirstNext ( int  i  )  [inline]

Definition at line 540 of file collection.h.

References Container< Element >::first1.

template<class Element >
void Container< Element >::FirstNext (  )  [inline]

Definition at line 539 of file collection.h.

References Container< Element >::first.

Referenced by Domain::interaction().

template<class Element >
void Container< Element >::FirstPrev ( int  i  )  [inline]

Definition at line 542 of file collection.h.

References Container< Element >::first1.

template<class Element >
void Container< Element >::FirstPrev (  )  [inline]

Definition at line 541 of file collection.h.

References Container< Element >::first.

template<class Element >
Ptr<Element>* Container< Element >::getFirstPtr ( int  i  )  [inline]

Definition at line 577 of file collection.h.

References Container< Element >::first1.

template<class Element >
Ptr<Element>* Container< Element >::getFirstPtr (  )  [inline]

Definition at line 576 of file collection.h.

References Container< Element >::first.

template<class Element >
Ptr<Element>* Container< Element >::getLastPtr (  )  [inline]

Definition at line 578 of file collection.h.

References Container< Element >::last.

template<class Element >
Element* Container< Element >::getNext ( int  i  )  [inline]

Definition at line 567 of file collection.h.

References Container< Element >::current1.

template<class Element >
Element* Container< Element >::getNext (  )  [inline]

Definition at line 566 of file collection.h.

References Container< Element >::current.

template<class Element >
Element* Container< Element >::getPrev ( int  i  )  [inline]

Definition at line 571 of file collection.h.

References Container< Element >::current1.

template<class Element >
Element* Container< Element >::getPrev (  )  [inline]

Definition at line 570 of file collection.h.

References Container< Element >::current.

template<class Element >
Ptr<Element>* Container< Element >::getPtr ( int  i  )  [inline]

Definition at line 575 of file collection.h.

References Container< Element >::current1.

template<class Element >
Ptr<Element>* Container< Element >::getPtr (  )  [inline]

Definition at line 574 of file collection.h.

References Container< Element >::current.

template<class Element >
void Container< Element >::go ( Ptr< Element > *  p,
int  i 
) [inline]

Definition at line 560 of file collection.h.

References Container< Element >::current1.

template<class Element >
void Container< Element >::go ( Ptr< Element > *  p  )  [inline]

Definition at line 559 of file collection.h.

References Container< Element >::current.

template<class Element >
void Container< Element >::goFirst ( int  i  )  [inline]

Definition at line 536 of file collection.h.

References Container< Element >::current1, and Container< Element >::first1.

template<class Element >
void Container< Element >::goFirst (  )  [inline]

template<class Element >
void Container< Element >::goFirstNext ( int  i  )  [inline]

Definition at line 538 of file collection.h.

References Container< Element >::current1, and Container< Element >::first1.

template<class Element >
void Container< Element >::goFirstNext (  )  [inline]

Definition at line 537 of file collection.h.

References Container< Element >::current, and Container< Element >::first.

template<class Element >
void Container< Element >::goLast ( int  i  )  [inline]

Definition at line 548 of file collection.h.

References Container< Element >::current1, and Container< Element >::last.

template<class Element >
void Container< Element >::goLast (  )  [inline]

Definition at line 547 of file collection.h.

References Container< Element >::current, and Container< Element >::last.

template<class Element >
void Container< Element >::goLastNext ( int  i  )  [inline]

Definition at line 546 of file collection.h.

References Container< Element >::current1, and Container< Element >::last.

template<class Element >
void Container< Element >::goLastNext (  )  [inline]

Definition at line 545 of file collection.h.

References Container< Element >::current, and Container< Element >::last.

template<class Element >
void Container< Element >::goNext ( int  i  )  [inline]

Definition at line 550 of file collection.h.

References Container< Element >::current1.

template<class Element >
void Container< Element >::goNext (  )  [inline]

Definition at line 549 of file collection.h.

References Container< Element >::current.

Referenced by Domain::interaction().

template<class Element >
void Container< Element >::goPrev ( int  i  )  [inline]

Definition at line 552 of file collection.h.

References Container< Element >::current1.

template<class Element >
void Container< Element >::goPrev (  )  [inline]

Definition at line 551 of file collection.h.

References Container< Element >::current.

template<class Element >
bool Container< Element >::insert ( int  i  )  [inline]

template<class Element >
bool Container< Element >::insert (  )  [inline]

template<class Element >
bool Container< Element >::insert ( Element *  element,
int  i 
) [inline]

template<class Element >
bool Container< Element >::insert ( Element *  element  )  [inline]

template<class Element >
bool Container< Element >::insert0 (  )  [inline]

template<class Element >
bool Container< Element >::insert0 ( Element *  element  ) 

template<class Element >
Ptr< Element > * Container< Element >::insert1 ( Element *  element,
int  i 
) [inline]

template<class Element >
bool Container< Element >::isFirst ( int  i  )  [inline]

Definition at line 554 of file collection.h.

References Container< Element >::current1, and Container< Element >::first1.

template<class Element >
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().

template<class Element >
bool Container< Element >::isFirstLast ( int  i  )  [inline]

Definition at line 544 of file collection.h.

References Container< Element >::first1, and Container< Element >::last.

template<class Element >
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().

template<class Element >
bool Container< Element >::isLast ( int  i  )  [inline]

Definition at line 556 of file collection.h.

References Container< Element >::current1, and Container< Element >::last.

template<class Element >
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().

template<class Element >
bool Container< Element >::islocked (  )  [inline]

Definition at line 522 of file collection.h.

References Container< Element >::locked.

template<class Element >
Element* Container< Element >::Last (  )  [inline]

Definition at line 563 of file collection.h.

References Container< Element >::last.

template<class Element >
void Container< Element >::LastNext (  )  [inline]

Definition at line 557 of file collection.h.

References Container< Element >::last.

template<class Element >
void Container< Element >::LastPrev (  )  [inline]

Definition at line 558 of file collection.h.

References Container< Element >::last.

template<class Element >
bool Container< Element >::link ( Ptr< Element > *&  ptr  )  [inline]

template<class Element >
bool Container< Element >::link0 ( Ptr< Element > *&  ptr  )  [inline]

template<class Element >
void Container< Element >::lock (  )  [inline]

Definition at line 523 of file collection.h.

References Container< Element >::locked.

template<class Element >
Element* Container< Element >::Next ( int  i  )  [inline]

Definition at line 565 of file collection.h.

References Container< Element >::current1.

template<class Element >
Element* Container< Element >::Next (  )  [inline]

Definition at line 564 of file collection.h.

References Container< Element >::current.

template<class Element >
int Container< Element >::number (  )  [inline]

Definition at line 525 of file collection.h.

References Container< Element >::nptrs.

Referenced by Domain::interaction().

template<class Element >
Element* Container< Element >::Prev ( int  i  )  [inline]

Definition at line 569 of file collection.h.

References Container< Element >::current1.

template<class Element >
Element* Container< Element >::Prev (  )  [inline]

Definition at line 568 of file collection.h.

References Container< Element >::current.

template<class Element >
bool Container< Element >::remove ( Ptr< Element > *  ptr,
int  i 
) [inline]

template<class Element >
bool Container< Element >::remove ( Ptr< Element > *  ptr  )  [inline]

Definition at line 512 of file container.h.

References Container< Element >::locked, Container< Element >::remove0(), and WAIT.

template<class Element >
bool Container< Element >::remove ( int  i  )  [inline]

template<class Element >
bool Container< Element >::remove (  )  [inline]

template<class Element >
bool Container< Element >::remove0 ( Ptr< Element > *&  ptr  )  [inline]

template<class Element >
bool Container< Element >::remove0 (  )  [inline]

template<class Element >
void Container< Element >::setFirst ( int  i  )  [inline]

Definition at line 527 of file collection.h.

References Container< Element >::first1, and Container< Element >::last.

template<class Element >
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().

template<class Element >
void Container< Element >::setFirstLast ( int  i  )  [inline]

Definition at line 529 of file collection.h.

References Container< Element >::first1, and Container< Element >::last.

template<class Element >
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().

template<class Element >
bool Container< Element >::unlink ( Ptr< Element > *&  ptr  )  [inline]

template<class Element >
bool Container< Element >::unlink0 ( Ptr< Element > *&  ptr  )  [inline]

template<class Element >
void Container< Element >::unlock (  )  [inline]

Definition at line 524 of file collection.h.

References Container< Element >::locked.


Member Data Documentation

template<class Element >
Ptr<Element> * Container< Element >::current [private]

template<class Element >
Ptr<Element> * Container< Element >::current1[maxcounters] [private]

template<class Element >
Ptr<Element>* Container< Element >::first [private]

template<class Element >
Ptr<Element> * Container< Element >::first1[maxcounters] [private]

template<class Element >
Ptr<Element> * Container< Element >::last [private]

template<class Element >
bool Container< Element >::locked [private]

template<class Element >
int Container< Element >::nptrs [private]


The documentation for this class was generated from the following files:

Generated on Tue May 26 16:10:36 2009 for ReMoDy by  doxygen 1.5.7.1