[ CCUnit project page ] |  | [ CCUnit home page ]

データ構造 | モジュール | 型定義 | 関数

# List
[モジュール階層]

Linked list container. [詳細]

Listのコラボレーション図

## データ構造
struct | CCUnitList
| list container. [詳細]
## モジュール
| ListCell

| Linked list cell.
| ListIterator

| List iterator.
## 型定義
typedef struct CCUnitList | CCUnitList
| list container.
## 関数
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.

参照元 addTestDef(), ccunit_addTestCase(), ccunit_addTestFunc(), と 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.

参照元 destroy(), destroyTestCaseDef(), と destroyTestSuiteDef().

呼出しグラフ:

void ccunit_deleteListIterator | ( | struct CCUnitListIterator * | it | ) | `[inline]`

delete list iterator.

引数:

  | it | iterator to delete.

参照先 CCUnitListIterator::isAllocated, と safe_free.

参照元 printFailures().

呼出しグラフ:

bool ccunit_hasNextListIterator | ( | struct CCUnitListIterator * | it | ) |

Check is there next element of iterator.

引数:

  | it | An iterator.

戻り値:
  true if there is next element, or false.

参照先 CCUnitListIterator::current.

参照元 ccunit_nextListIterator().

呼出しグラフ:

CCUnitList * ccunit_initList | ( | CCUnitList * | list | ) |

Initialize list object.

引数:

  | list | initializing list.

戻り値:
  initialized list.

参照元 ccunit_newTestCase(), ccunit_newTestFixture(), ccunit_newTestSuiteDef(), と 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.

戻り値:
  Initialized iterator.

参照先 CCUnitListIterator::current, head, と CCUnitListIterator::isAllocated.

参照元 _ccunit_endTest(), _ccunit_startTest(), ccunit_newListIterator(), printPrototypes(), printSuite(), printTestCase(), と run().

呼出しグラフ:

CCUnitList * ccunit_newList | ( |  | ) | `[inline]`

Create new list object.

戻り値:
  new list object.

CCUnitListIterator* ccunit_newListIterator | ( | const struct CCUnitList * | list | ) |

create new list iterator.

引数:

  | list | An owner list of iterator.

戻り値:
  New iterator.

参照先 ccunit_initListIterator(), と CCUnitListIterator::isAllocated.

関数の呼び出しグラフ:

void* ccunit_nextListIterator | ( | struct CCUnitListIterator * | it | ) |

Get next element.

引数:

  | it | An Iterator.

戻り値:
  pointer to next element object.

参照先 ccunit_hasNextListIterator(), CCUnitListCell::contents, CCUnitListIterator::current, と CCUnitListCell::next.

参照元 _ccunit_endTest(), _ccunit_startTest(), printFailures(), printPrototypes(), printSuite(), printTestCase(), と run().

関数の呼び出しグラフ:

呼出しグラフ:

| hosts this site. |  | Send comments to: CCUnit Developer |