GIRAFFE Pipeline Reference Manual

A Range Data Type

Functions

GiRange * giraffe_range_new (void)
 Creates a new range. More...
 
GiRange * giraffe_range_create (cxdouble min, cxdouble max)
 Creates a new range from the given minimum and maximum values. More...
 
void giraffe_range_delete (GiRange *self)
 Destroys a range object. More...
 
void giraffe_range_set_min (GiRange *self, cxdouble min)
 Set the minimum of a range. More...
 
cxdouble giraffe_range_get_min (const GiRange *const self)
 Get the minimum of a range. More...
 
void giraffe_range_set_max (GiRange *self, cxdouble max)
 Set the maximum of a range. More...
 
cxdouble giraffe_range_get_max (const GiRange *const self)
 Get the maximum of a range. More...
 

Detailed Description

TBD

Function Documentation

◆ giraffe_range_create()

GiRange* giraffe_range_create ( cxdouble  min,
cxdouble  max 
)

Creates a new range from the given minimum and maximum values.

Parameters
minThe minimum value of the range.
maxThe maximum value of the range.
Returns
A newly allocated range if no errors occurred, or NULL otherwise.

The function creates a new range object. The minimum and maximum values of the created range are initialized with the given minimum value min and the maximum value max.

Definition at line 83 of file girange.c.

Referenced by giraffe_sgcalibration_config_create().

◆ giraffe_range_delete()

void giraffe_range_delete ( GiRange *  self)

Destroys a range object.

Parameters
selfThe range to destroy.
Returns
Nothing.

The function deallocates the memory used by the range object self.

Definition at line 118 of file girange.c.

Referenced by giraffe_fov_build(), giraffe_sgcalibration_config_destroy(), and giraffe_wlcalibration_config_destroy().

◆ giraffe_range_get_max()

cxdouble giraffe_range_get_max ( const GiRange *const  self)

Get the maximum of a range.

Parameters
selfThe range to be queried.
Returns
The current maximum of the range.

The function queries the maximum value of the given range self.

Definition at line 213 of file girange.c.

Referenced by giraffe_fov_build().

◆ giraffe_range_get_min()

cxdouble giraffe_range_get_min ( const GiRange *const  self)

Get the minimum of a range.

Parameters
selfThe range to be queried.
Returns
The current minimum of the range.

The function queries the minimum value of the given range self.

Definition at line 167 of file girange.c.

Referenced by giraffe_fov_build().

◆ giraffe_range_new()

GiRange* giraffe_range_new ( void  )

Creates a new range.

Returns
A newly allocated range if no errors occurred, or NULL otherwise.

The function creates a new range object. The minimum and maximum values of the created range are initialized to 0.0.

Definition at line 58 of file girange.c.

◆ giraffe_range_set_max()

void giraffe_range_set_max ( GiRange *  self,
cxdouble  max 
)

Set the maximum of a range.

Parameters
selfThe range to be updated.
maxThe value to be set as maximum.
Returns
Nothing.

The function updates the maximum value of the given range self with max.

Definition at line 190 of file girange.c.

Referenced by giraffe_fov_build().

◆ giraffe_range_set_min()

void giraffe_range_set_min ( GiRange *  self,
cxdouble  min 
)

Set the minimum of a range.

Parameters
selfThe range to be updated.
minThe value to be set as minimum.
Returns
Nothing.

The function updates the minimum value of the given range self with min.

Definition at line 144 of file girange.c.

Referenced by giraffe_fov_build().


This file is part of the GIRAFFE Pipeline Reference Manual 2.16.10.
Documentation copyright © 2002-2006 European Southern Observatory.
Generated on Thu Dec 15 2022 21:18:52 by doxygen 1.9.1 written by Dimitri van Heesch, © 1997-2004