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

データ構造 | 型定義 | 関数

# ListIterator
[List]

List iterator. [詳細]

ListIteratorのコラボレーション図

## データ構造
struct | CCUnitListIterator
| list iterator. [詳細]
## 型定義
typedef struct CCUnitListIterator | CCUnitListIterator
| list iterator.
## 関数
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.

参照先 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.

参照先 current.

参照元 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.

戻り値:
  Initialized iterator.

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

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

呼出しグラフ:

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

create new list iterator.

引数:

  | list | An owner list of iterator.

戻り値:
  New iterator.

参照先 ccunit_initListIterator(), と isAllocated.

関数の呼び出しグラフ:

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

Get next element.

引数:

  | it | An Iterator.

戻り値:
  pointer to next element object.

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

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

関数の呼び出しグラフ:

呼出しグラフ:

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