Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
|
A datatype allowing easy traversal over all of the ServiceJobs within a ServiceJobSet. More...
#include <service_job_set_iterator.h>
Public Member Functions | |
ServiceJobSetIterator * | AllocateServiceJobSetIterator (ServiceJobSet *set_p) |
Allocate a ServiceJobSetIterator. More... | |
void | InitServiceJobSetIterator (ServiceJobSetIterator *iterator_p, ServiceJobSet *set_p) |
Initialise a ServiceJobSetIterator to point to the first entry in a given ServiceJobSet. More... | |
void | FreeServiceJobSetIterator (ServiceJobSetIterator *iterator_p) |
Free a ServiceJobSetIterator. More... | |
ServiceJob * | GetNextServiceJobFromServiceJobSetIterator (ServiceJobSetIterator *iterator_p) |
Get the next ServiceJob from the Iterator. More... | |
bool | HasServiceJobSetIteratorFinished (const ServiceJobSetIterator *iterator_p) |
Has a ServiceJobSetIterator parsed all of the entries in a ServiceJobSet. More... | |
Data Fields | |
ServiceJobSet * | sjsi_job_set_p |
The ServiceJobSet to traverse. More... | |
ServiceJobNode * | sjs_current_node_p |
The current position in the entries of the ServiceJobSet. More... | |
A datatype allowing easy traversal over all of the ServiceJobs within a ServiceJobSet.
ServiceJobSetIterator * AllocateServiceJobSetIterator | ( | ServiceJobSet * | set_p | ) |
Allocate a ServiceJobSetIterator.
set_p | The ServiceJobSet to iterate over |
NULL
upon error. void InitServiceJobSetIterator | ( | ServiceJobSetIterator * | iterator_p, |
ServiceJobSet * | set_p | ||
) |
Initialise a ServiceJobSetIterator to point to the first entry in a given ServiceJobSet.
iterator_p | The ServiceJobSetIterator to initialise. |
set_p | The ServiceJobSet to iterate over. |
void FreeServiceJobSetIterator | ( | ServiceJobSetIterator * | iterator_p | ) |
Free a ServiceJobSetIterator.
iterator_p | The ServiceJobSetIterator to free. |
ServiceJob * GetNextServiceJobFromServiceJobSetIterator | ( | ServiceJobSetIterator * | iterator_p | ) |
Get the next ServiceJob from the Iterator.
iterator_p | The ServiceJobSetIterator to get the ServiceJob from. |
NULL
if all of the ServiceJobs in the ServiceJobSet have been read. bool HasServiceJobSetIteratorFinished | ( | const ServiceJobSetIterator * | iterator_p | ) |
Has a ServiceJobSetIterator parsed all of the entries in a ServiceJobSet.
iterator_p | The ServiceJobSetIterator to check. |
true
if the end of the ServiceJobSet has been reached, false
otherwise. ServiceJobSet* sjsi_job_set_p |
The ServiceJobSet to traverse.
ServiceJobNode* sjs_current_node_p |
The current position in the entries of the ServiceJobSet.