[ CCUnit project page ] | [ CCUnit home page ] |
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.
void ccunit_deleteListIterator | ( | struct CCUnitListIterator * | it | ) | [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().
CCUnitListIterator* ccunit_initListIterator | ( | const struct CCUnitList * | list, | |
struct CCUnitListIterator * | it | |||
) | [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_newListIterator(), printFixture(), printPrototypes(), printSuite(), and run().
CCUnitListIterator* ccunit_newListIterator | ( | const struct CCUnitList * | list | ) |
create new list iterator.
list | An owner list of iterator. |
References ccunit_initListIterator(), and isAllocated.
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(), printFailures(), printFixture(), printPrototypes(), printSuite(), and run().
|
hosts this site. | Send comments to: CCUnit Developer |
Generated on Mon Aug 16 2010 21:52:38 for CCUnit by ![]() |