aboutsummaryrefslogtreecommitdiff
path: root/src/reflist.h
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-07-02 23:21:31 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:31 +0100
commit47ba16fe47a0f4802d9744b3886e650fc3ae6fa7 (patch)
treef7b21355eb2109694eed0b527eecb50f4c6d31f7 /src/reflist.h
parent88cd387d8e0e7e1e6271a3df2fe10e7722ee5976 (diff)
Work on documentation
Diffstat (limited to 'src/reflist.h')
-rw-r--r--src/reflist.h20
1 files changed, 17 insertions, 3 deletions
diff --git a/src/reflist.h b/src/reflist.h
index 83a0de90..ffdef55a 100644
--- a/src/reflist.h
+++ b/src/reflist.h
@@ -19,18 +19,32 @@
/**
* RefList:
*
+ * A %RefList represents a list of Bragg reflections.
+ *
* This data structure is opaque. You must use the available accessor functions
* to read and write its contents.
- */
+ *
+ **/
typedef struct _reflist RefList;
/**
* Reflection:
*
+ * A %Reflection represents a single Bragg reflection.
+ *
* This data structure is opaque. You must use the available accessor functions
* to read and write its contents.
- */
+ *
+ **/
typedef struct _reflection Reflection;
+
+/**
+ * RefListIterator:
+ *
+ * A %RefListIterator is an opaque data type used when iterating over a
+ * %RefList.
+ *
+ **/
typedef struct _reflistiterator RefListIterator;
/* Creation/deletion */
@@ -79,7 +93,7 @@ extern Reflection *add_refl(RefList *list,
signed int h, signed int k, signed int l);
/* Iteration */
-extern Reflection *first_refl(RefList *list, RefListIterator **iterator);
+extern Reflection *first_refl(RefList *list, RefListIterator **piter);
extern Reflection *next_refl(Reflection *refl, RefListIterator *iter);
/* Misc */