DRAMA C++ Intro   Class Hierarchy   Alphabetical List of types   List of Classes   File List   Class Member Index   File Members Index   Related Pages  

Static Public Member Functions | Friends | List of all members
GitTaskActiveList Class Reference

Manage the list of active tasks. More...

#include <gittask.h>

Static Public Member Functions

static void ReInit ()
 Reinitialise the list. More...
 
static void Insert (GitTask *t)
 Put a task onto the active list. More...
 

Friends

class GitTaskActiveListIterator
 

Detailed Description

Manage the list of active tasks.

We have two lists, the Known tasks and the Active tasks. The former is only used to setup the later during initialisation/reset. These are very simple lists since that is all we require. No deletion is necessary as the objects we are listing contain all the necessay store. We use the "nextKnown" and "nextActive" fields.

Warning
This is a very special purpose list which is integrated with the GitTask:: class. The only things of interest to do is to insert tasks, use the iterator and ReInit the list, which relies on the known task list being set up.

The active list may be desroyed by invoking GitTask::DeActive() on each task and then invoking GitTaskActiveList::ReInit

See also
GitTaskActiveListIterator
GitTaskKnownList
GitTask

Member Function Documentation

static void GitTaskActiveList::Insert ( GitTask t)
static

Put a task onto the active list.

This only does something if the task is not already on the list.

Parameters
tThe task.
static void GitTaskActiveList::ReInit ( )
static

Reinitialise the list.

This causes the list to be reset to empty.


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

Click here for the DRAMA home page and here for the AAO home page.

For more information, contact tjf@aao.gov.au 

Generated on Mon Feb 22 2016 13:58:31 for AAO DRAMA C++ Interfaces by doxygen 1.8.10