|
CCUnit
2.1
A C Unit Testing Library
|
List iterator. More...
|
Data Structures | |
| struct | CCUnitListIterator |
| list iterator. More... | |
Typedefs | |
| typedef struct CCUnitListIterator | CCUnitListIterator |
| list iterator. | |
Functions | |
| CCUnitListIterator * | ccunit_newListIterator (const struct CCUnitList *list) |
| create new list iterator. | |
| CCUnitListIterator * | ccunit_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. | |
List iterator.
| typedef struct CCUnitListIterator CCUnitListIterator |
list iterator.
|
inline |
delete list iterator.
| it | iterator to delete. |
References isAllocated, and safe_free.
Referenced by printFailures().

| bool ccunit_hasNextListIterator | ( | struct CCUnitListIterator * | it | ) |
Check is there next element of iterator.
| it | An iterator. |
References current.
Referenced by ccunit_nextListIterator().

|
inline |
initialize list iterator.
| list | An owner list of iterator. |
| it | Iterator to initialize. |
References current, CCUnitList::head, and isAllocated.
Referenced by _ccunit_endTest(), _ccunit_startTest(), ccunit_addFailure(), ccunit_newListIterator(), printPrototypes(), printSuite(), printTestCase(), and run().

| CCUnitListIterator* ccunit_newListIterator | ( | const struct CCUnitList * | list | ) |
create new list iterator.
| list | An owner list of iterator. |
References ccunit_initListIterator(), and isAllocated.
Referenced by ccunit_failures().


| void* ccunit_nextListIterator | ( | struct CCUnitListIterator * | it | ) |
Get next element.
| it | An Iterator. |
References ccunit_hasNextListIterator(), CCUnitListCell::contents, current, and CCUnitListCell::next.
Referenced by _ccunit_endTest(), _ccunit_startTest(), ccunit_addFailure(), printFailures(), printPrototypes(), printSuite(), printTestCase(), and run().


|
|
hosts this site. | Send comments to: CCUnit Developer |
Generated on Sat Jul 13 2013 15:09:15 for CCUnit by
1.8.1.1
|