[ CCUnit project page ] | [ CCUnit home page ] |
Linked list container. More...
![]() |
Data Structures | |
struct | CCUnitList |
list container. More... | |
Modules | |
ListCell | |
Linked list cell. | |
ListIterator | |
List iterator. | |
Typedefs | |
typedef struct CCUnitList | CCUnitList |
list container. | |
Functions | |
CCUnitList * | ccunit_initList (CCUnitList *list) |
Initialize list object. | |
CCUnitList * | ccunit_newList () |
Create new list object. | |
void | ccunit_addList (CCUnitList *list, void *contents) |
Add element to list object. | |
void | ccunit_deleteList (CCUnitList *list, void(*deleteContents)(void *)) |
Delete list object. | |
CCUnitListIterator * | ccunit_initListIterator (const struct CCUnitList *list, struct CCUnitListIterator *it) |
initialize list iterator. | |
CCUnitListIterator * | ccunit_newListIterator (const struct CCUnitList *list) |
create new list iterator. | |
bool | ccunit_hasNextListIterator (struct CCUnitListIterator *it) |
Check is there next element of iterator. | |
void * | ccunit_nextListIterator (struct CCUnitListIterator *it) |
Get next element. | |
void | ccunit_deleteListIterator (struct CCUnitListIterator *it) |
delete list iterator. |
Linked list container.
typedef struct CCUnitList CCUnitList |
list container.
void ccunit_addList | ( | CCUnitList * | list, | |
void * | contents | |||
) |
Add element to list object.
list | List object. | |
contents | A pointer to an object to register in the list. |
Referenced by addTestDef(), ccunit_addTestCase(), ccunit_addTestFunc(), and readTestCase().
void ccunit_deleteList | ( | CCUnitList * | list, | |
void(*)(void *) | deleteContents | |||
) |
Delete list object.
list | Deleting list. | |
deleteContents | A pointer to the function which the object registered in the list is deleted from. |
Referenced by destroy(), destroyTestCaseDef(), and destroyTestSuiteDef().
void ccunit_deleteListIterator | ( | struct CCUnitListIterator * | it | ) | [inline] |
delete list iterator.
it | iterator to delete. |
References CCUnitListIterator::isAllocated, and safe_free.
Referenced by printFailures().
bool ccunit_hasNextListIterator | ( | struct CCUnitListIterator * | it | ) |
Check is there next element of iterator.
it | An iterator. |
References CCUnitListIterator::current.
Referenced by ccunit_nextListIterator().
CCUnitList * ccunit_initList | ( | CCUnitList * | list | ) |
Initialize list object.
list | initializing list. |
Referenced by ccunit_newTestCase(), ccunit_newTestFixture(), ccunit_newTestSuiteDef(), and newTestCaseDef().
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 CCUnitListIterator::current, head, and CCUnitListIterator::isAllocated.
Referenced by _ccunit_endTest(), _ccunit_startTest(), ccunit_newListIterator(), printPrototypes(), printSuite(), printTestCase(), and run().
CCUnitList * ccunit_newList | ( | ) | [inline] |
Create new list object.
CCUnitListIterator* ccunit_newListIterator | ( | const struct CCUnitList * | list | ) |
create new list iterator.
list | An owner list of iterator. |
References ccunit_initListIterator(), and CCUnitListIterator::isAllocated.
void* ccunit_nextListIterator | ( | struct CCUnitListIterator * | it | ) |
Get next element.
it | An Iterator. |
References ccunit_hasNextListIterator(), CCUnitListCell::contents, CCUnitListIterator::current, and CCUnitListCell::next.
Referenced by _ccunit_endTest(), _ccunit_startTest(), printFailures(), printPrototypes(), printSuite(), printTestCase(), and run().
|
hosts this site. | Send comments to: CCUnit Developer |
Generated on Sun Aug 29 2010 10:59:32 for CCUnit by ![]() |