diff options
author | Thomas White <taw@physics.org> | 2011-02-08 19:10:27 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:13 +0100 |
commit | e980ed54dc29e025587aba47390727c500aec8f1 (patch) | |
tree | a818f47cf8f00c034c59e7df8d825965d217d1c9 /src/reflist.h | |
parent | 606a2cd5432fe342d73ab8f37a1b383142c52fdb (diff) |
Work on making iteration work
Diffstat (limited to 'src/reflist.h')
-rw-r--r-- | src/reflist.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/reflist.h b/src/reflist.h index 78aadf2a..e25a16ad 100644 --- a/src/reflist.h +++ b/src/reflist.h @@ -19,6 +19,7 @@ typedef struct _reflist RefList; typedef struct _reflection Reflection; +typedef struct _reflistiterator RefListIterator; #define INDICES signed int h, signed int k, signed int l @@ -56,8 +57,8 @@ extern Reflection *add_refl(RefList *list, INDICES); extern void delete_refl(Reflection *refl); /* Iteration */ -extern Reflection *first_refl(RefList *list); -extern Reflection *next_refl(Reflection *refl); +extern Reflection *first_refl(RefList *list, RefListIterator **iterator); +extern Reflection *next_refl(Reflection *refl, RefListIterator *iter); /* Voodoo */ extern void optimise_reflist(RefList *list); |