Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

List Class Reference

#include <List.h>

Inheritance diagram for List:

Object List of all members.

Public Methods

 List ()
virtual ~List ()
virtual void Add (Object *)
virtual void Insert (Object *, int position)
virtual void Assign (Object *, int position)
virtual int Remove (Object *)
virtual void Release ()
virtual void Destroy ()
void Start_Get ()
ObjectGet_Next ()
ObjectGet_First ()
ObjectNext (Object *current)
ObjectPrevious (Object *current)
ObjectLast ()
Objectoperator[] (int n)
ObjectNth (int n)
int Count () const
int Index (Object *)
ObjectCopy ()
List & operator= (List *list)
List & operator= (List &list)
virtual int compare (Object *)

Protected Attributes

listnodehead
listnodetail
listnodecurrent
int current_index
int number

Constructor & Destructor Documentation

List::List  
 

Definition at line 18 of file List.cpp.

References current, current_index, head, number, and tail.

List::~List   [virtual]
 

Definition at line 30 of file List.cpp.

References Destroy().


Member Function Documentation

void List::Add Object   [virtual]
 

Definition at line 79 of file List.cpp.

References head, listnode::next, number, listnode::object, listnode::prev, and tail.

Referenced by PostOffice::_receive(), Assign(), Master::checkReserves(), Copy(), UDPConfirm::insertConfirm(), UDPConfirm::insertItem(), Master::moveTask(), Master::msgClientStatus_On(), Master::msgSlaveReserve(), Master::msgSlaveStatus_Ready(), Master::msgTaskInit(), Master::msgTaskInit_Normal(), operator=(), PostOffice::put_back(), Master::sndMessageToClient(), Master::startTask(), submit_or_reserve_task(), Master::upgradeSlave(), and x2o().

void List::Assign Object  ,
int    position
[virtual]
 

Definition at line 153 of file List.cpp.

References Add(), current_index, head, listnode::next, number, and listnode::object.

virtual int Object::compare Object   [inline, virtual, inherited]
 

To ensure a consistent comparison interface and to allow comparison of all kinds of different objects, we will define a comparison functions.

Definition at line 31 of file Object.h.

Object * List::Copy   [virtual]
 

To allow a deep copy of data structures we will define a standard interface... This member will return a copy of itself, freshly allocated and deep copied.

Reimplemented from Object.

Definition at line 400 of file List.cpp.

References Add(), Object::Copy(), Get_Next(), and Start_Get().

int List::Count   const [inline]
 

Definition at line 139 of file List.h.

Referenced by PostOffice::_receive(), PostOffice::_receive_any(), Master::checkingThread(), UDPConfirm::checkList(), UDPConfirm::checkN(), Master::checkReserves(), UDPConfirm::deleteId(), UDPConfirm::deleteN(), UDPConfirm::isConfirm(), UDPConfirm::isItem(), main(), Master::msgTaskInit(), Master::print_status(), Client::taskCreate(), and ItemSender::~ItemSender().

void List::Destroy   [virtual]
 

Definition at line 59 of file List.cpp.

References current, current_index, head, listnode::next, number, listnode::object, and tail.

Referenced by UDPConfirm::deleteList(), operator=(), and ~List().

Object * List::Get_First  
 

Definition at line 257 of file List.cpp.

References Get_Next(), and Start_Get().

Referenced by PostOffice::_receive(), PostOffice::_receive_any(), checkAfterTask(), PostOffice::put_back(), PostOffice::stopWait(), wakeup_tasks(), x2o(), and ItemSender::~ItemSender().

Object * List::Get_Next  
 

Definition at line 237 of file List.cpp.

References current, current_index, listnode::next, and listnode::object.

Referenced by PostOffice::_receive(), PostOffice::_receive_any(), checkAfterTask(), Master::checkBufferedTasks(), Master::checkingThread(), UDPConfirm::checkList(), UDPConfirm::checkN(), Master::checkReserves(), Copy(), UDPConfirm::deleteId(), UDPConfirm::deleteN(), event_slave_avail(), Get_First(), UDPConfirm::isConfirm(), UDPConfirm::isItem(), Master::msgClientStatus_On(), Master::msgJobCtrl_GetStatus(), Master::msgJobCtrl_Stop(), Master::msgJobCtrl_StopAllName(), Master::msgJobCtrl_StopAllUser(), Master::msgSlaveCtrl_Upgrade(), operator=(), Master::print_status(), UDPConfirm::purgeIn(), PostOffice::put_back(), Master::slaveMatchSlaves(), Master::slaveMatchTasks(), Master::sndJobStatus(), Master::srchJob(), Master::srchReserve(), Master::srchSlaveAddr(), Master::srchSlaveSlaveInfos(), Master::srchSlaveTaskInfos(), Master::srchTask(), PostOffice::stopWait(), Client::taskCreate(), wakeup_tasks(), and ItemSender::~ItemSender().

int List::Index Object  
 

Definition at line 272 of file List.cpp.

References head, listnode::next, number, and listnode::object.

Referenced by Master::msgSlaveStatus_Ready().

void List::Insert Object  ,
int    position
[virtual]
 

Definition at line 103 of file List.cpp.

References current_index, head, listnode::next, number, listnode::object, listnode::prev, and tail.

Object * List::Last  
 

Definition at line 385 of file List.cpp.

References listnode::object, and tail.

Object * List::Next Object   current
 

Definition at line 294 of file List.cpp.

References head, listnode::next, and listnode::object.

Object * List::Nth int    n
 

Definition at line 343 of file List.cpp.

References current, current_index, head, listnode::next, number, and listnode::object.

List & List::operator= List &    list
 

Definition at line 418 of file List.cpp.

References Add(), Object::Copy(), Destroy(), Get_Next(), and Start_Get().

List& List::operator= List *    list [inline]
 

Definition at line 155 of file List.h.

Object* List::operator[] int    n [inline]
 

Definition at line 133 of file List.h.

Object * List::Previous Object   current
 

Definition at line 319 of file List.cpp.

References listnode::object, listnode::prev, and tail.

void List::Release   [virtual]
 

Definition at line 40 of file List.cpp.

References current, current_index, head, listnode::next, number, and tail.

Referenced by Master::checkReserves(), event_job_status(), Master::msgSlaveCtrl_Upgrade(), JobEntry::~JobEntry(), Master::~Master(), and PostOffice::~PostOffice().

int List::Remove Object   [virtual]
 

Definition at line 183 of file List.cpp.

References current, current_index, head, listnode::next, number, listnode::object, listnode::prev, and tail.

Referenced by PostOffice::_receive(), PostOffice::_receive_any(), checkAfterTask(), Master::checkBufferedTasks(), Master::checkingThread(), UDPConfirm::checkList(), Master::checkReserves(), UDPConfirm::deleteId(), UDPConfirm::deleteItem(), Master::deleteTask(), event_slave_avail(), Master::moveTask(), Master::msgClientStatus_On(), Master::msgJobCtrl_Stop(), Master::msgSlaveStatus_Ready(), Master::msgTaskCtrl_Stop(), Master::msgTaskInit(), Master::msgTaskInit_Reserve(), UDPConfirm::purgeIn(), and x2o().

void List::Start_Get   [inline]
 

Definition at line 121 of file List.h.

Referenced by Master::checkBufferedTasks(), Master::checkingThread(), UDPConfirm::checkList(), UDPConfirm::checkN(), Master::checkReserves(), Copy(), UDPConfirm::deleteId(), UDPConfirm::deleteN(), event_slave_avail(), Get_First(), UDPConfirm::isConfirm(), UDPConfirm::isItem(), Master::msgClientStatus_On(), Master::msgJobCtrl_GetStatus(), Master::msgJobCtrl_Stop(), Master::msgJobCtrl_StopAllName(), Master::msgJobCtrl_StopAllUser(), Master::msgSlaveCtrl_Upgrade(), operator=(), Master::print_status(), UDPConfirm::purgeIn(), Master::slaveMatchSlaves(), Master::slaveMatchTasks(), Master::sndJobStatus(), Master::srchJob(), Master::srchReserve(), Master::srchSlaveAddr(), Master::srchSlaveSlaveInfos(), Master::srchSlaveTaskInfos(), Master::srchTask(), and Client::taskCreate().


Member Data Documentation

listnode* List::current [protected]
 

Definition at line 168 of file List.h.

Referenced by Destroy(), Get_Next(), List(), Nth(), Release(), and Remove().

int List::current_index [protected]
 

Definition at line 169 of file List.h.

Referenced by Assign(), Destroy(), Get_Next(), Insert(), List(), Nth(), Release(), and Remove().

listnode* List::head [protected]
 

Definition at line 162 of file List.h.

Referenced by Add(), Assign(), Destroy(), Index(), Insert(), List(), Next(), Nth(), Release(), and Remove().

int List::number [protected]
 

Definition at line 174 of file List.h.

Referenced by Add(), Assign(), Destroy(), Index(), Insert(), List(), Nth(), Release(), and Remove().

listnode* List::tail [protected]
 

Definition at line 163 of file List.h.

Referenced by Add(), Destroy(), Insert(), Last(), List(), Previous(), Release(), and Remove().


The documentation for this class was generated from the following files:
Generated on Mon Nov 25 12:46:38 2002 for qadpz by doxygen1.2.18