diff options
author | Thomas White <taw@physics.org> | 2015-05-18 14:44:59 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2015-05-19 13:57:53 +0200 |
commit | 48daaeb56d995f2db90c056c403ca3d00a181184 (patch) | |
tree | 85d66d90e02be948a53a48b187bf7a2ea48660a6 /libcrystfel/src/reflist.c | |
parent | 585602b57f77e0e45c0489aee0f4a30b1a7a830f (diff) |
Add {get,set}_flag()
Diffstat (limited to 'libcrystfel/src/reflist.c')
-rw-r--r-- | libcrystfel/src/reflist.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/libcrystfel/src/reflist.c b/libcrystfel/src/reflist.c index 795894a1..ccc421f3 100644 --- a/libcrystfel/src/reflist.c +++ b/libcrystfel/src/reflist.c @@ -102,6 +102,7 @@ struct _refldata { /* User-specified temporary values */ double temp1; double temp2; + int flag; }; @@ -546,6 +547,22 @@ double get_temp2(const Reflection *refl) } +/** + * get_flag: + * @refl: A %Reflection + * + * The integer flag value can be used according to the needs of the calling + * program. + * + * Returns: the flag for this reflection. + * + **/ +int get_flag(const Reflection *refl) +{ + return refl->data.flag; +} + + /********************************** Setters ***********************************/ /** @@ -772,6 +789,21 @@ void set_temp2(Reflection *refl, double temp) } +/** + * set_flag + * @refl: A %Reflection + * @flag: New flag value + * + * @flag is an integer value which can be used according to the needs of the + * calling program. + * + **/ +void set_flag(Reflection *refl, int flag) +{ + refl->data.flag = flag; +} + + /********************************* Insertion **********************************/ static Reflection *rotate_once(Reflection *refl, int dir) |