CCUnit  2.1
A C Unit Testing Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Typedefs | Functions
ListIterator
List

List iterator. More...

Collaboration diagram for ListIterator:

Data Structures

struct  CCUnitListIterator
 list iterator. More...

Typedefs

typedef struct CCUnitListIterator CCUnitListIterator
 list iterator.

Functions

CCUnitListIteratorccunit_newListIterator (const struct CCUnitList *list)
 create new list iterator.
CCUnitListIteratorccunit_initListIterator (const struct CCUnitList *list, struct CCUnitListIterator *it)
 initialize list iterator.
void ccunit_deleteListIterator (struct CCUnitListIterator *it)
 delete list iterator.
void * ccunit_nextListIterator (struct CCUnitListIterator *it)
 Get next element.
bool ccunit_hasNextListIterator (struct CCUnitListIterator *it)
 Check is there next element of iterator.

Detailed Description

List iterator.


Typedef Documentation

list iterator.


Function Documentation

void ccunit_deleteListIterator ( struct CCUnitListIterator it)
inline

delete list iterator.

Parameters:
ititerator to delete.

References isAllocated, and safe_free.

Referenced by printFailures().

Here is the caller graph for this function:

bool ccunit_hasNextListIterator ( struct CCUnitListIterator it)

Check is there next element of iterator.

Parameters:
itAn iterator.
Returns:
true if there is next element, or false.

References current.

Referenced by ccunit_nextListIterator().

Here is the caller graph for this function:

CCUnitListIterator* ccunit_initListIterator ( const struct CCUnitList list,
struct CCUnitListIterator it 
)
inline

initialize list iterator.

Parameters:
listAn owner list of iterator.
itIterator to initialize.
Returns:
Initialized iterator.

References current, CCUnitList::head, and isAllocated.

Referenced by _ccunit_endTest(), _ccunit_startTest(), ccunit_addFailure(), ccunit_newListIterator(), printPrototypes(), printSuite(), printTestCase(), and run().

Here is the caller graph for this function:

CCUnitListIterator* ccunit_newListIterator ( const struct CCUnitList list)

create new list iterator.

Parameters:
listAn owner list of iterator.
Returns:
New iterator.

References ccunit_initListIterator(), and isAllocated.

Referenced by ccunit_failures().

Here is the call graph for this function:

Here is the caller graph for this function:

void* ccunit_nextListIterator ( struct CCUnitListIterator it)

Get next element.

Parameters:
itAn Iterator.
Returns:
pointer to next element object.

References ccunit_hasNextListIterator(), CCUnitListCell::contents, current, and CCUnitListCell::next.

Referenced by _ccunit_endTest(), _ccunit_startTest(), ccunit_addFailure(), printFailures(), printPrototypes(), printSuite(), printTestCase(), and run().

Here is the call graph for this function:

Here is the caller graph for this function:

SourceForge.jp hosts this site. Send comments to: CCUnit Developer