|
MOONS Pipeline Reference Manual 0.13.2
|
Functions | |
| moo_rbnlist * | moo_rbnlist_new (void) |
| Create a new moo_rbnlist. | |
| moo_rbnlist * | moo_rbnlist_create (const cpl_frameset *frameset) |
| Create a new moo_rbnlist from the given RBN frameset. | |
| cpl_error_code | moo_rbnlist_load_single (const moo_rbnlist *self, moo_detector_type type, int level) |
| Load the type part for all RBN in the rbnlist. | |
| cpl_size | moo_rbnlist_get_size (const moo_rbnlist *self) |
| Get the number of RBN in the rbnlist. | |
| moo_rbn * | moo_rbnlist_get (moo_rbnlist *self, int i) |
| Get the RBN at the position i in the list. | |
| hdrl_imagelist * | moo_rbnlist_get_image (const moo_rbnlist *self, moo_detector_type type) |
| Get the all the images of the type part in the rbnlist. | |
| cpl_imagelist * | moo_rbnlist_get_single_data (const moo_rbnlist *self, moo_detector_type type) |
| Get the type data part for all RBN in the rbnlist. | |
| cpl_imagelist * | moo_rbnlist_get_single_qual (const moo_rbnlist *self, moo_detector_type type) |
| Get the type QUAL part for all RBN in the rbnlist. | |
| cpl_error_code | moo_rbnlist_set (moo_rbnlist *self, moo_rbn *rbn, cpl_size pos) |
| Insert a RBN into an moo_rbnlist. | |
| cpl_error_code | moo_rbnlist_push (moo_rbnlist *self, moo_rbn *rbn) |
| Insert a RBN a the end of moo_rbnlist. | |
| moo_rbn * | moo_rbnlist_unset (moo_rbnlist *self, cpl_size pos) |
| Remove a RBN from a RBN list. | |
| void | moo_rbnlist_empty (moo_rbnlist *self) |
| Empty an moo_rbnlist and deallocate all its RBN. | |
| void | moo_rbnlist_unwrap (moo_rbnlist *self) |
| Free memory used by a moo_rbnlist object, except the RBN. | |
| void | moo_rbnlist_delete (moo_rbnlist *self) |
| Free all memory used by a moo_rbnlist object including the RBN. | |
| moo_rbnlist * moo_rbnlist_create | ( | const cpl_frameset * | frameset | ) |
Create a new moo_rbnlist from the given RBN frameset.
The returned object must be deallocated using moo_rbnlist_delete(). Possible cpl_error_code set in this function:
Definition at line 71 of file moo_rbnlist.c.
References moo_rbn_create(), moo_rbnlist_new(), and moo_rbnlist_push().
| void moo_rbnlist_delete | ( | moo_rbnlist * | self | ) |
Free all memory used by a moo_rbnlist object including the RBN.
| self | The RBN list or NULL |
NULL, nothing is done and no error is set. Definition at line 529 of file moo_rbnlist.c.
References moo_rbnlist_empty(), and moo_rbnlist_unwrap().
| void moo_rbnlist_empty | ( | moo_rbnlist * | self | ) |
Empty an moo_rbnlist and deallocate all its RBN.
| self | The RBN list or NULL |
NULL nothing is done and no error is set.After the call the moo_rbn list can be populated again. It must eventually be deallocted with a call to moo_rbnlist_delete().
Definition at line 473 of file moo_rbnlist.c.
References moo_rbn_delete(), and moo_rbnlist_unset().
Referenced by moo_rbnlist_delete().
| moo_rbn * moo_rbnlist_get | ( | moo_rbnlist * | self, |
| int | i | ||
| ) |
Get the RBN at the position i in the list.
| self | the list of RBN |
| i | position in the list |
Possible cpl_error_code set in this function:
Definition at line 186 of file moo_rbnlist.c.
References moo_rbnlist_get_size().
Referenced by moo_combine_sky().
| hdrl_imagelist * moo_rbnlist_get_image | ( | const moo_rbnlist * | self, |
| moo_detector_type | type | ||
| ) |
Get the all the images of the type part in the rbnlist.
| self | the list of RBN |
| type | the type of extension to load |
TAS number is 1 or 2.
Possible cpl_error_code set in this function:
Definition at line 212 of file moo_rbnlist.c.
References moo_rbn_get_single(), and moo_rbn_single_get_image().
| cpl_imagelist * moo_rbnlist_get_single_data | ( | const moo_rbnlist * | self, |
| moo_detector_type | type | ||
| ) |
Get the type data part for all RBN in the rbnlist.
| self | the list of RBN |
| type | the type of extension to load |
TAS number is 0 or 1.
Possible cpl_error_code set in this function:
Definition at line 260 of file moo_rbnlist.c.
References moo_rbn_get_single(), and moo_rbn_single_get_data().
| cpl_imagelist * moo_rbnlist_get_single_qual | ( | const moo_rbnlist * | self, |
| moo_detector_type | type | ||
| ) |
Get the type QUAL part for all RBN in the rbnlist.
| self | the list of RBN |
| type | the type of extension to load |
TAS number is 0 or 1.
Possible cpl_error_code set in this function:
Definition at line 294 of file moo_rbnlist.c.
References moo_rbn_get_single(), and moo_rbn_single_get_qual().
| cpl_size moo_rbnlist_get_size | ( | const moo_rbnlist * | self | ) |
Get the number of RBN in the rbnlist.
| self | the list of RBN |
Possible cpl_error_code set in this function:
Definition at line 163 of file moo_rbnlist.c.
Referenced by moo_rbnlist_get().
| cpl_error_code moo_rbnlist_load_single | ( | const moo_rbnlist * | self, |
| moo_detector_type | type, | ||
| int | level | ||
| ) |
Load the type part for all RBN in the rbnlist.
| self | the list of RBN |
| type | the type of extension to load |
| level | Mask error level |
TAS number is 0 or 1.
Possible cpl_error_code set in this function:
Definition at line 104 of file moo_rbnlist.c.
References moo_rbn_load_single().
| moo_rbnlist * moo_rbnlist_new | ( | void | ) |
Create a new moo_rbnlist.
The returned object must be deallocated using moo_rbnlist_delete().
Definition at line 56 of file moo_rbnlist.c.
Referenced by moo_rbnlist_create().
| cpl_error_code moo_rbnlist_push | ( | moo_rbnlist * | self, |
| moo_rbn * | rbn | ||
| ) |
Insert a RBN a the end of moo_rbnlist.
| self | The moo_rbnlist |
| rbn | The RBN to insert |
No action occurs if a RBN is inserted more than once into the same position. It is allowed to insert the same RBN into two different positions in a list.
The RBN is inserted at the end in the RBN list. If the RBN already there is only present in that one location in the list, then the RBN is deallocated.
The added RBN is owned by the moo_rbnlist object, which deallocates it moo_rbnlist_delete is called. Other option is to use moo_rbnlist_unset to recover ownership of the RBN, in which case the moo_rbnlist object is not longer responsible for deallocating it.
Possible cpl_error_code set in this function:
Definition at line 409 of file moo_rbnlist.c.
References moo_rbnlist_set().
Referenced by moo_rbnlist_create().
| cpl_error_code moo_rbnlist_set | ( | moo_rbnlist * | self, |
| moo_rbn * | rbn, | ||
| cpl_size | pos | ||
| ) |
Insert a RBN into an moo_rbnlist.
| self | The moo_rbnlist |
| rbn | The RBN to insert |
| pos | The list position (from 0 to number of RBN) |
It is allowed to specify the position equal to the number of RBN in the list. This will increment the size of the rbnlist.
No action occurs if a RBN is inserted more than once into the same position. It is allowed to insert the same RBN into two different positions in a list.
The RBN is inserted at the position pos in the RBN list. If the RBN already there is only present in that one location in the list, then the RBN is deallocated.
The added RBN is owned by the moo_rbnlist object, which deallocates it moo_rbnlist_delete is called. Other option is to use moo_rbnlist_unset to recover ownership of the RBN, in which case the moo_rbnlist object is not longer responsible for deallocating it.
Possible cpl_error_code set in this function:
Definition at line 345 of file moo_rbnlist.c.
References moo_rbn_delete().
Referenced by moo_rbnlist_push().
| moo_rbn * moo_rbnlist_unset | ( | moo_rbnlist * | self, |
| cpl_size | pos | ||
| ) |
Remove a RBN from a RBN list.
| self | The moo_rbnlist |
| pos | The list position (from 0 to number of RBN-1) |
The specified RBN is not deallocated, it is simply removed from the list. The pointer to the RBN is returned to let the user decide to deallocate it or not. Eventually, the RBN will have to be deallocated with moo_rbn_delete().
Possible cpl_error_code set in this function:
Definition at line 435 of file moo_rbnlist.c.
Referenced by moo_rbnlist_empty().
| void moo_rbnlist_unwrap | ( | moo_rbnlist * | self | ) |
Free memory used by a moo_rbnlist object, except the RBN.
| self | The RBN list or NULL |
NULL nothing is done and no error is set. Definition at line 509 of file moo_rbnlist.c.
Referenced by moo_rbnlist_delete().